ThemeShaper Forums » Thematic

Widgets don't dissappear from the sidebar

(8 posts)
  • Started 5 years ago by pwc1011
  • Latest reply from pwc1011
  • This topic is resolved
  1. In a previous post is says that when I add widgets to the sidebar through the widget editor, the default widgets are supposed to go away. For me they are not. I end up with the ones I've added, as well as, the default blogroll, rss feed and meta widgets. Do I need to do something differently? I'm still in the early stages, so I haven't really made any other changes.

    Thanks!
    Patrick

    Posted 5 years ago #
  2. Try the "Reset Widgets" button in the Thematic options.

    Posted 5 years ago #
  3. Hey Patrick,

    could you please provide some more details? You're writing about the widget editor? Have you edited the widgets.php?

    Thanks,

    Chris

    Posted 5 years ago #
  4. Ian, i tried the reset widgets button, and it reset the page to remove the widgets i added. unfortunately, the orginal blogroll, meta and rssfeeds stayed.

    Chris, i am using the "widget" page under "appearance" in wordpress to add and remove widgets. i have not edited the widgets.php. from the other post i read, it didn't seem i needed to, and i didn't want to make a change directly to code that might impact things later.

    Patrick

    Posted 5 years ago #
  5. Hey Patrick,

    the described behavior for the reset widgets button is normal .. It'll remove and free up all widgets.

    What happens if you now add one widget to primary aside and one to secondary aside?

    Cheers,

    Chris

    Posted 5 years ago #
  6. Looks like i have to add something to the secondary aside. If I don't add a widget to the secondary aside, all three default widgets show up. If I add any single or combination of widgets to the secondary aside, then only the ones I add show up.

    I guess I didn't understand how it works :-)

    Thanks!
    Patrick

    Posted 5 years ago #
  7. Ok .. if you don't want to add something to secondary aside you can use this code snippet in the child theme's functions.php:

    function conditional_sidebar () {
    if (!is_sidebar_active('primary-aside') ): ?>
    <STYLE type="text/css">
    #primary { display: none }
    </STYLE>
    <?php
    endif;
    if (!is_sidebar_active('secondary-aside') ) : ?>
    <STYLE type="text/css">
    #secondary { display: none }
    </STYLE>
    <?php
    endif;
    }
    //add_action('wp_head', 'conditional_sidebar');

    This will send a display:none if you don't add a widget to primary or secondary aside.

    Cheers,

    Chris

    Posted 5 years ago #
  8. you guys rock! what else is there to say...

    Posted 5 years ago #

RSS feed for this topic

Reply

You must log in to post.