WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] show widgets only on pages of special type (6 posts)

  1. sergwp
    Member
    Posted 5 years ago #

    Hello.

    I want to show some widgets only on the index page, another on categories page, others on topics pages...

    Can somebody advice me a plugin that cad do so?

  2. MichaelH
    Member
    Posted 5 years ago #

    Typically themes use the if(function_exists('register_sidebar')) to handle widgets in a sidebar. You could use Conditional Tags to test for the pages you don't want the widgets.

    But you might also consider some plugins that can help you with that:
    http://konstruktors.com/blog/wordpress/842-wordpress-gpl-widget-context-plugin/

    and
    http://wordpress.org/extend/plugins/slayers-custom-widgets/

    and
    http://wordpress.org/extend/plugins/widget-logic/

  3. bill127300
    Member
    Posted 5 years ago #

    I second the widget-logic. I use it on all my sites for this.

  4. bill127300
    Member
    Posted 5 years ago #

    slayers has a major flaw for me. I use a ton of widgets over my site and the menu for slayers just lists the widget as "text" instead of by the title you gave it. Kind of a pain when I have 40 text widgets.

  5. sergwp
    Member
    Posted 5 years ago #

    Thanks everybody for help, I'll try and choose the best plugin :)

  6. Tom Slayer
    Member
    Posted 5 years ago #

    Yeah, that is a big issue with a simple fix, anyway stay tuned because v 2.0 is due to be released any day now :)

Topic Closed

This topic has been closed to new replies.

About this Topic