• MaddTechWF

    (@maddtechwf)


    I want to create a single sidebar.php file and then be able to have only certain things show based on the page that it is in.

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Create a sidebar template file called something like sidebar-single.php, then call it in single.php using <?php get_sidebar('single');?>

    Within the new sidebar template, you can define multiple widget-ready areas, or add default markup, that will be displayed based upon the is_single() conditional.

    Chip Bennett

    (@chipbennett)

    The simplest solution is probably to use the Widget Logic Plugin.

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