Forums

Sidebar not showing @ all and footer question (6 posts)

  1. crashprojects
    Member
    Posted 4 months ago #

    Hi all-

    I'm using woothemes "cushy" theme. I had to get rid of the original footer (it was apparently encoded so I couldn't make changes to it, as a wise WP Forum member informed me) and replace it with a really basic. Now, obviously, the footer isn't displaying widgets. Can someone shoot me the code to widgetize a footer? Is it a standard thing or does it vary from theme to theme?

    Also, in the same theme, I have populated the sidebar with a widget or two and the sidebar isn't showing at all. Any suggestions on this?

    Thanks all!

  2. esmi
    Member
    Posted 4 months ago #

    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?>
    [ non widget code goes here]
    <?php endif; ?>

    Is it a standard thing or does it vary from theme to theme?

    It can vary from theme to theme. I have themes where there are 4 or 5 separate widget-ready areas - each with their own markup.

    I have populated the sidebar with a widget or two and the sidebar isn't showing at all.

    Does the sidebar show without the widgets? If yes, then perhaps there's an issue in functions.php.

  3. crashprojects
    Member
    Posted 4 months ago #

    Nope. It shows in the widget administration area obviously but no sign of it on the page @ any time.

    So that code above goes where and will widgetize what? I'd like to have the option for both...

    I hope I'm making sense here!

  4. esmi
    Member
    Posted 4 months ago #

    Nope. It shows in the widget administration area obviously but no sign of it on the page @ any time.

    Then it's not going to show just because you added some widgets! You need to add it to the relevant template file using `<?php get _sidebar();?>

    So that code above goes where

    In footer.php if you want to widgetise the footer.

    and will widgetize what?

    Oh... I dunno. The footer, maybe?

    I'd like to have the option for both...

    As I said, I've created themes with up to 5 widget-ready areas. All completely separate. Widgets aren't "either/or" since 2.8. You can have as many as you want wherever you want.

  5. crashprojects
    Member
    Posted 4 months ago #

    Being that I used a canned theme, I assumed all of these functions already existed in the appropriate places. The get footer function worked fine before I swapped it out for a generic, non-encoded one. Based on the fact that the footer did in fact work fine with widgets with no manual adjustments made to the code, one would assume the same would be with the sidebar, being that the theme was advertised as including both sidebar and footer widget options.

    The sidebar has never appeared, from day one of installing the theme.

    I do see this " <?php get_sidebar(); ?>a" in the "main index template (index.php) but it does NOT appear on the "page.php" file.

    I would imagine that bit of code would need to appear on the "page.php" file but every time I attempt to put there the whole site goes down.

    I guess really all I need to know is where to put this code "<?php get_sidebar(); ?> "

    Thanks-

  6. Vbort44
    Member
    Posted 3 months ago #

    I'm having the exact same problem with the Cushy theme.

Reply

You must log in to post.

About this Topic