• Resolved michaelbleakley

    (@michaelbleakley)


    Hello i have uploaded the serious women theme and for some reason i am unable to add or remove widget could some one please take a look and see what the problem is ??? i am limitted with using HTML but here is the code in the function file

    if ( function_exists(‘register_sidebar’) ) {
    register_sidebar(array(
    ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h2 class=”widgettitle”>’,
    ‘after_title’ => ‘</h2>’,
    ));

    thank you!

Viewing 1 replies (of 1 total)
  • The author of that theme did not allow for users to add widgets. If you want to modify the code, make a backup first. Then, in sidebar.php, at the top of the file, change this:

    <div id="sidebar">
    
      <?php
        $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');

    to this:

    <div id="sidebar">
    <?php 	/* Widgetized sidebar, if you have the plugin installed. */
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    
      <?php
        $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');

    And at the bottom of the file, change this:

    </div>
    
    </div><!-- ======= sidebar END ======= -->

    to this:

    </div>
    <?php endif; ?>
    
    </div><!-- ======= sidebar END ======= -->
Viewing 1 replies (of 1 total)

The topic ‘widgets not working’ is closed to new replies.