• I want to be able to have a text widget that appears in my sidebar on only one specific page, but I can’t seem to be able to do it.

    I am using the “Admired” theme which has options for two and three column displays, with two separate sidebar areas – “Main Sidebar” and “Second Sidebar”.

    I hoped that putting the widget into the “Second Sidebar” area and using the three-column display for the chosen page, and the two-column display for all other pages would do it. It does what I want for the chosen page, but on the other pages, it displays the “Main Sidebar” with the “Second Sidebar” below it.

    Any suggestions, please?

    Thanks in advance

    Graham

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php if ( is_page(N) ) : ?>
    <?php get_sidebar(‘sidebar_1’); ?>
    <?php else: ?>
    <?php get_sidebar(‘sidebar_2’); ?>
    <?php endif; ?>

    Kind of thing … ?

    Thread Starter gddik

    (@gddik)

    Thanks John – I’m not a PHP person, or a coder – where would that code go, exactly?

    – Graham

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom sidebar’ is closed to new replies.