WordPress.org

Ready to get started?Download WordPress

Forums

Sidebars (3 posts)

  1. MaddTechWF
    Member
    Posted 3 years ago #

    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.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    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.

  3. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.