• Hello,

    i have installed a plugin in my wordpress site, it crashed my portfolio page, it used jquery to load a light box but after i have installed this plugin it makes images load as an image not pop out in a lightbox, my question is; can i load the plugin header only in the homepage rather than in all pages? when i disable the plugin everything else works fine but i still need it ??

    i appreciate any help regarding this topic

    Thanks,
    Karim

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m not sure what plugin you are using, but if you put code inside of if(is_home){}, it should only come up on the main page.

    <?php
    if ( is_home() AND !is_paged() )
    {
    your_plugin_function()//remove this and put your plugin line here.
    }
    ?>

    Thread Starter incoe

    (@incoe)

    Thanks @perfect

    the thing is when the plugin is activated it adds its own header and it appears on all pages, should i try and add this code in the plugin files them selves?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load plugin header in home only?’ is closed to new replies.