WordPress.org

Ready to get started?Download WordPress

Forums

Widgets not loading in Pink Twilight Theme (3 posts)

  1. zeeb
    Member
    Posted 6 years ago #

    My site is http://creativeclown.com

    My theme has a functions.php file that says to load dynamic sidebar. But the sidebar.php file does not mention the dynamic sidebar. I tried to add the code for that, but the widgets still didn't show up. I could find the open

      so I'm not sure I put the code in the right place. I removed it, but hope someone might have time to look at the code and see if you can figure out what I need to do? The theme is supposedly widget ready.
  2. TrishaM
    Member
    Posted 6 years ago #

    look in your theme's sidebar.php file - these are the lines that register the sidebar as "dynamic":

    <?php if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar() ) : ?>
  3. zeeb
    Member
    Posted 6 years ago #

    Thanks, Trisha. I had that code, but can't figure out where to put it in the sidebar.php file.

    I'll paste the code in my sidebar.php file here:

    <div id="menu">
    <ul class="main">
    <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.

  4. <h2>Author</h2>
    <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
  5. -->

    • <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  6. <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

  7. <h2>Archives</h2>

      <?php wp_get_archives('type=monthly'); ?>
  8. <h2>Categories</h2>

      <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
  9. <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    <?php get_links_list(); ?>

  10. <h2>Meta</h2>

  11. <?php } ?>

    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags