[SOLVED] Issue with creating a double cell widget
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:
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 |
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'); ?> 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 |
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/ |
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.
|
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
|
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 { |
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;} |
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?
|
Also negative padding doesn't work.
|
Hi
Let me quote from my last posting Quote:
|
You have a 5px right margin set on div#text-18
|
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 http://school.discoveryeducation.com...ges/thanks.gif
|
All times are GMT -6. The time now is 04:06 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.