Hooks...

Hi,
Is there any way to add hooks to individual pages? I have a script that I want only to run on the homepage. The plugins that I've tried using conflict with Yoast, which is more important. So, I'm looking for the best way to add this.

Thanks,
Brian

Comments

  • Hi Brian,
    Sorry but hooks are set globally.
    thanks
  • Hello Brian -

    Just wondering if you found a solution to this?

    Regards,

    Neil.
  • I managed a quick and messy solution with this php code in the header.php file:

    if (! is_front_page()) do_action( 'mfn_hook_content_before' );

    Regards,

    Neil.
  • I found a plugin called something like "header-footer." I don't recall right off the top of my head. But, if you search for plugins using those terms you should find it.
Sign In or Register to comment.