Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] Custom widget not visible but space is still there. (http://forum.bytesforall.com/showthread.php?t=17096)

gr870sfunk Mar 22, 2012 11:35 AM

[SOLVED] Custom widget not visible but space is still there.
 
I have a custom widget area in the header for a call to action (http://www.togetherwesoar.org/the-fa...arter-schools/ and it is on basically every page, except the TV Ad category (ttp://www.togetherwesoar.org/category/tv-ads/).

Here's my problem: the stupid space for the widget is still there.

I have tried all of the following using ".category-3" and ".category-tv-ads" to no avail:
HTML Code:

...#call-to-action_widget{
display: none;
}

...#header #call-to-action_widget{
display: none;
}

...#call-to-action_widget{
display: none;
}

...#header #call-to-action_widget .bfa_widget_area{
display: none;
}

...#call-to-action_widget .bfa_widget_area{
display: none;
}

Any help would be GREATLY appreciated! Thanks!!

juggledad Mar 22, 2012 11:51 AM

use the plugin 'widget logic' to NOT display the widgt on that page.

gr870sfunk Mar 22, 2012 01:28 PM

I currently am using a similar plugin called "Display Widgets" and i've never run into a problem with it.

I installed widget logic, but either it's not working or i'm not doing it right.

I put the following into the widget logic field:

HTML Code:

!is_page('tv-ads')
After creating two new pages, i'm noticing that the space is in EVERY new page....

juggledad Mar 22, 2012 01:42 PM

i'm fond of widget logic, but try the one you have and see what happens

gr870sfunk Mar 22, 2012 02:07 PM

the plugin i use has you either show or hide pages, categories, etc... with a box checked next to them and I have them set on "show on checked". None of the pages or the category have the box checked next to them which is why the widget isn't actually showing up.

It's the space where the widget should be that won't go away. I turned off plugins and nothing has seemed to work.

HTML Code:

        <td id="header" colspan="1">
...
<div id="header-container">
<div id="logo">
        <a href="http://www.togetherwesoar.org"><img src="http://togetherwesoar.org/wp-content/themes/atahualpa/images/SOAR-logo-header.jpg"  alt="SOAR: Sounds Options for Academic Reform"/></a>
</div>
<div id="homeimage"><div id="imagecontainer" class="header-image-container" style="background: url('http://www.togetherwesoar.org/wp-content/themes/atahualpa/images/header/header3.jpg') top center no-repeat;"><div class="codeoverlay"></div><div class="opacityright">&nbsp;</div></div></div>
</div>
<div id="call-to-action_widget" class="bfa_widget_area"></div>
                </td>

if you look in the code - the widget is still showing up, but there's nothing in the div tags.

gr870sfunk Mar 22, 2012 02:23 PM

ok nevermind - i found out what the problem was...I'm an idiot.

I had the "header-container" surrounding my header image and logo set to a height of 300px. Once I switched it to 200 (which it should have been in the first place), everything went to where it should be. Just had to adjust the margin-top property for the call to action widgets....

*facepalm* Ugh- just shows you what more and more digging can lead to.

Thanks for your help though, Juggle.


All times are GMT -6. The time now is 03:53 PM.

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