Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] Issue with creating a double cell widget


  #1  
Old Apr 24, 2012, 07:00 AM
sober's Avatar
sober
 
121 posts · Oct 2010
Hi

I have been for the past two days trying to create a two cell widget and put in above the page title on a page. I was able to make the widget show up but the issue is that it inherits the styling from the table. What happens, the table border and background and colors comes as an additional layer around the widget. I would really appreciate if someone could give me the exact code. I am on 3.7.3 and the code I am using to create the widget is
PHP Code:
<?php if (is_page()) { ?><?php bfa_widget_area('name=pagetop-twin&cells=2&align=9'); ?><?php ?>
You can see the sample at http://www.nonebutchrist.com/privacy-policy/

You can see the twin widgets just above the title "privacy policy" and if you go to the end of the page, you can see a sample table whose styling the twin widgets has inherited as an additional layer around it. All I need is to take out this additional layer without change the table styling.

Jimmy

Last edited by sober; Apr 24, 2012 at 07:36 AM. Reason: to add more
  #2  
Old Apr 24, 2012, 08:35 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Where did you get that code for a new widget area? It should be
HTML Code:
<?php bfa_widget_area('name=pagetop-twin&cells=2&align=9'); ?>
since only the code for new widget areas is allowed.
Where did you put the code?
If you want a two celled widget area above the page title on each page I would put the above code in ATO>Edit Post/Page Info Items>KICKER: "Page" Pages
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Apr 24, 2012, 08:48 AM
sober's Avatar
sober
 
121 posts · Oct 2010
Hi

Thanks for the code and the explanation. I do not have any experience with PHP or coding. The code that I mentioned was just a geusstimate code. Sometimes things worked for me that way. I inserted my code by editing index.php. I have inserted the code you gave in the "post/pages" kicker but nothing has changed. This could be something with caching so I am waiting for the cache to expire. Also, when i use single cell widget, it works perfect as you can see with the widget area just above the double cell widget and I find its strange. I really appreciate your help and hope it would work once the cache expires. The page, again, is at http://www.nonebutchrist.com/privacy-policy/
  #4  
Old Apr 24, 2012, 08:56 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Why not just disable your caching plugin for the time being. Also once you put the code in the kicker area you need to go to a page to "activate" it. Then you should see the new widget areas in Appearance>Widgets.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Apr 24, 2012, 12:48 PM
sober's Avatar
sober
 
121 posts · Oct 2010
I am on a managed wordpress hosting and apparently, caching is not enabled on my blog. I think there is something else with this. I can see the widgets on the widget page in admin panel
  #6  
Old Apr 24, 2012, 01:15 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
first please don't double post. you won't get a faster response

try adding the following th the CSS inserts
HTML Code:
div.post table.bfa_widget_area td {
    background-color: #FFFFFF;
    border-bottom: medium none;
    border-left: medium none;
    border-right: medium none;
    padding: 10px;
    text-align: left;
}
Remember the widgets are styled in the theme options.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Apr 24, 2012, 03:15 PM
sober's Avatar
sober
 
121 posts · Oct 2010
Thank you for the style sheet changes and my very sincere apologies for the double posting. Your code almost solved issue but just a minor margin problem. If you look at the second widget titled "twin widget two", you can see a small padding/margin to the right and the double cell widgets are not aligned completely with the single cell widget above on the right side. i tried different things to use the full width including
HTML Code:
#pagetop-twin_2 {padding-right:-10px;}
but it did not work. If you take a look at the bottom of the page, you can see another two cell widget made with the same code that sits for the full width of the page. Do you have any idea why the top second widget only has this strange right side margin/padding. I would also like to make a small space in the center between the widgets but do not want padding/margin on the left of the first widget and right of the second widget. I really appreciate your help. The page, again, is at http://www.nonebutchrist.com/privacy-policy/

Last edited by juggledad; Apr 24, 2012 at 05:01 PM.
  #8  
Old Apr 24, 2012, 05:15 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I must be dense today, but I can't figure out what widget you are talking about. It looks like you have given each widget a unique title on the page, so which one, i.e 'Page bottom twin two', are you talking about?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Apr 24, 2012, 07:18 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Also negative padding doesn't work.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #10  
Old Apr 24, 2012, 07:28 PM
sober's Avatar
sober
 
121 posts · Oct 2010
Hi

Let me quote from my last posting
Quote:
If you look at the second widget titled "twin widget two",
It is the second widget on the top with the title "twin widget two" just above the page title "Privacy Policy". If you look it closely, you can see a margin/padding to the right which is what I want to do away with. I have used the same code to create the double cell widgets in the bottom and for that there is no such issue and it stretches to the full width. I apologize for the confusion caused

Last edited by sober; Apr 24, 2012 at 07:37 PM.
  #11  
Old Apr 24, 2012, 07:51 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
You have a 5px right margin set on div#text-18
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #12  
Old Apr 24, 2012, 09:17 PM
sober's Avatar
sober
 
121 posts · Oct 2010
THANKS THANKS THANKS THANKS THANKS THANKS THANKS and PAT PAT PAT PAT PAT PAT PAT to both of you. It now looks just the way I want it to be. Thanks again

Bookmarks

Tags
double cell widget issue



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating different page templates without sidebars - (possible permalinks issue) xonline Atahualpa 3 Wordpress theme 4 Apr 5, 2012 12:50 PM
Double width sidebar widget? sky captain Sidebars & Widgets 2 Jun 6, 2011 12:05 PM
A cell that spans more than one cell/column? Sundrop Post-Kicker, -Byline & -Footer 4 Dec 22, 2009 01:51 PM
Background image &amp;amp; form in only 1 cell of a header extra widget cell? kippiper Header configuration & styling 8 Nov 22, 2009 07:58 AM
[SOLVED] Change the cell width in new widget area duping812 New Versions, & Updating 2 Jul 16, 2009 08:19 PM


All times are GMT -6. The time now is 11:47 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.