Forums

[resolved] Widget Logic Exclude Homepage (4 posts)

  1. tomewer
    Member
    Posted 6 months ago #

    Hello,

    I would like to use the Widget Logic plugin to exclude a widget from the homepage only. Is there a way to do this?

  2. zoonini
    help me help you
    Posted 6 months ago #

    Try

    if ( ! is_front_page() )

    The ! in front of the conditional means if the page is NOT the front page.

    Ref: http://codex.wordpress.org/Conditional_Tags#The_Front_Page

    My presentation about WP conditionals: http://www.slideshare.net/zoonini/take-control-of-your-templates-with-wordpress-conditionals-8546925

  3. tomewer
    Member
    Posted 6 months ago #

    This did the trick:

    ! is_front_page()

    Thank you!

  4. zoonini
    help me help you
    Posted 6 months ago #

    Oh right, forgot that with Widget Logic you don't need the if parts. ;-) Glad you got it working!

Reply

You must log in to post.

About this Topic