• Resolved dgr30

    (@dgr30)


    this is right under my nose i’m sure. i’m trying to add a sidebar to display ‘pull out’ text to highlight different info than what’s in the body of a post. that sidebar will be called ‘did you know?’ how do do this for just a few pages but not all? thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • As always, there are several ways to do this.
    1) You can install a plugin like Widget Logic (coding required) or Widget Context and build out a logic for when and where widgets are shown (assuming you want to customize which widgets show in a sidebar). Then add in a standard Text widget and enter whatever text/html you want to do and use the plugin to tell on which page or post that widget should appear.

    2) You can read up in the WordPress documentation about the Sidebar and how to register your own custom sidebars. Then using WordPress’ templates, you can create custom “sidebar-myCustomSidebar.php” and call that in the appropriate page or post template to render your custom sidebar.

    Thread Starter dgr30

    (@dgr30)

    thanks that worked fine! (i used widget context btw)

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