• WordPress is not recognizing that I have 2 themes I need help!

    my functions look like this:

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

    ?>

    My left sidebar looks like this:

    <!– begin l_sidebar –>

    <div id=”l_sidebar”>
    <ul id=”l_sidebarwidgeted”>
    <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(1) ) : else : ?>

    <li id=”Recent”>
    <h2>Recently Written</h2>

      <?php get_archives(‘postbypost’, 10); ?>

    <li id=”Categories”>
    <h2>Categories</h2>

      <?php wp_list_cats(‘sort_column=name’); ?>

    <li id=”Archives”>
    <h2>Archives</h2>

      <?php wp_get_archives(‘type=monthly’); ?>

    <li id=”Blogroll”>
    <h2>Blogroll</h2>

      <?php get_links(-1, ‘

    • ‘, ‘
    • ‘, ‘ – ‘); ?>

    <li id=”Admin”>
    <h2>Admin</h2>

    <h2>Search</h2>
    <form id=”searchform” method=”get” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”>
    <input type=”text” name=”s” id=”s” size=”30″ value=”search this site…”/></form>

    <?php endif; ?>

    </div>

    <!– end l_sidebar –>

    and my right sidebar looks like this:

    <!– begin r_sidebar –>

    <div id=”r_sidebar”>
    <ul id=”r_sidebarwidgeted”>
    <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(2) ) : else : ?>

    <li id=”Themes”>
    <h2>WP Themes</h2>

    </div>

    <!– end r_sidebar –>

Viewing 3 replies - 1 through 3 (of 3 total)
  • You have a spam link in your footer. Unless you put that link there yourself, you have either been hacked or are using a “sponsored” spam theme.

    You mean two sidebars, don’t you?

    Here’s my functions.php file for a 2-sidebar theme:

    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array('name'=>'sidebar-left',
    'before_widget' => '<li>',
    'after_widget' => '</li>',
    'before_title' => '<h3>',
    'after_title' => '</h3>',
    ));
    register_sidebar(array('name'=>'sidebar-right',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<h3>',
    'after_title' => '</h3>',
    ));
    ?>

    And here’s the sidebar code for each, you know where this code goes, I believe:

    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('sidebar-left') ) : ?>

    And

    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('sidebar-right') ) : ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘widgetizing two themes’ is closed to new replies.