• I’ve been using WordPress for a while now for a WordPress-hosted blog (https://elleinwonderland.wordpress.com), and I just recently decided to create a WordPress blog on my own server for a band website–https://elconmusic.com/blog.

    My server is hosted by Siteground, which I’ve found to be very helpful, especially when it came to installing WordPress and add-ons, seeing how my knowledge of PHP/MySQL is extremely limited.

    I’m using one of the themes that they provided, siteground-wp33 1.0, since it fit in pretty well with the feel of the original site, and at this point I don’t have enough skills to completely build my own theme. At this point, I’ve gotten the theme to a point that I’m okay with. The only thing that really bothers me is that I can’t seem to add or delete any of the sidebar widgets.

    Currently, the built-in widgets for the sidebar include pages, archive, categories, links (blogroll), and meta. However, if I go to add an events calendar, an RSS feed, or even a search, nothing will change in the sidebar. The PHP for it sidebar.php confuses me, so it would be GREATLY appreciated if someone could help me decipher what it means, and how I can possibly add these widgets.

    Sorry for the following mumbo-jumbo…here’s what’s inside sidebar.php:

    `<div id=”sidebar”>

      <?php wp_list_pages(‘title_li=<h2>Pages</h2>’ ); ?>

    • <h2>Archives</h2>
      <?php wp_get_archives(‘type=monthly’); ?>

    <?php wp_list_categories(‘show_count=1&title_li=<h2>Categories</h2>’); ?>

    <?php if ( is_home() || is_page() ) { ?>
    <?php wp_list_bookmarks(); ?>

    • <h2>Admin</h2>
      <?php wp_register(); ?>

    • <?php wp_loginout(); ?>
    • <?php wp_meta(); ?>

    <?php } ?>

    <? $sg = ‘banner’; include “templates.php”;?>
    </div>`

Viewing 1 replies (of 1 total)
  • When I tried that out; I replaced all of that with:

    <div id="sidebar">
    <ul>
    <?php if(function_exists('dynamic_sidebar') && dynamic_sidebar()) : else : ?>
    <?php endif; ?>
    </ul>
    </div>

    And it seemed to work perfectly fine for me. Any one else have any suggestions?

Viewing 1 replies (of 1 total)
  • The topic ‘Widgets do not show on blog theme’ is closed to new replies.