ThemeShaper Forums » Thematic


Sidebars on specific pages only

(2 posts)
  • Started 3 years ago by qG
  • Latest reply from qG
  • This topic is resolved
  1. Hello all,

    I'm new to the forums, and pretty new to web design—I'm running into a few issues with some custom widgets:

    I'm building a "Student_Links_Widget" and I only want it to be displayed in the sidebar of a template page called "students".

    My widget function is as follows:

    function widget($args, $instance) {

    extract($args, EXTR_SKIP);

    //if (is_single()) {

    echo $before_widget;

    if ( !empty( $title ) ) {
    echo $before_title . $title . $after_title;

    echo "HELLO";


    is_single works, and displays the content in the sidebar of a single post page, but is_page('students') does not work.

    What am I doing wrong?
    Thanks in advance,

    Posted 3 years ago #
  2. I just found a plugin that solves this issue.
    Slayers Custom Widgets:

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.