Widget Logic
Adding certain widgets to specific pages (3 posts)

  1. aldrin1
    Posted 3 years ago #

    Hello, Im trying to add a widget to my homepage as well as my "private parties" page. Here is my website: http://www.divadancenyc.com

    I am using this code: is_front_page() && !is_page('private-parties')
    but it doesn't work. Can anybody help?




  2. mayalperry13
    Posted 3 years ago #

    I need help with this, as well. I am reading over the directions and steps and STILL can't figure it out. Most of these issues are not resolved so I'm guessing the creators have no intention of addressing these issues and just want us to figure it out for ourselves.

  3. MarkHedley
    Posted 2 years ago #

    This should be is_front_page() || is_page('private-parties')

    ie Is the page the home page OR private-parties page. Using && is checking if they are both is_front_page() AND !is_page('private-parties') which could be but I guess in your case not.

    Although I just realised you had !is_page('private-parties') means it would ONLY go on your home page unless they were both the same!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.