Restrict An Action Hook To Home Page

  • bobsled

    #8452

    I’m just starting to use action hooks and can really see their benefit. But just one question. Is it possible to restrict an action hook to one page; ie Home Page only. I’m using an image widget inside a ‘Before Content-Main’ hook and would like it appear on the Home page only. Thanks in advance.

    Mod

    Kenneth John Odle

    #41194

    Use the WIdget Logic plugin with is_home()

    bobsled

    #41195

    Ok, will do. Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

  • You must be logged in to reply to this topic.