• Resolved ghmercado

    (@ghmercado)


    I created a special category page as per instructions on the Category Templates page. It’s now called category-33.php

    I would now like to create a sidebar especially for it, so I made a sidebar33.php, changed <?php get_sidebar(); ?> on the category-33.php file into <?php get_sidebar33(); ?>then went into wp-includes/template-functions-general.php and added this line:


    function get_sidebar33() {
    if ( file_exists( TEMPLATEPATH . '/sidebar33.php') )
    load_template( TEMPLATEPATH . '/sidebar33.php');
    else
    load_template( ABSPATH . 'wp-content/themes/default/sidebar.php');
    }

    Guess what? It doesn’t work.

    So my questions:

    1. My theme (Dandyna’s I Love Colours) does not have a function.php file. Where do I find the functions for my theme?
    2. help?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I want a different sidebar to appear on specific pages’ is closed to new replies.