• Resolved roberttakacs

    (@roberttakacs)


    Hello Fran
    First of all, congratulations for your very nice plugin.
    I’m writing to you because I would like to know if it’s possible to set the plugin loading exclusivelly for the homepage? Because it runs in all my pages and creates conflicts with my shop page images.
    Would you mind help me how to solve this problem?

    Thank you, Robert

    • This topic was modified 7 years, 6 months ago by roberttakacs.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Fran Verona

    (@franverona)

    Hi Robert,

    Thanks for your kind words, and sorry about my delay (lot of work and a deadline in the same week!).

    Regarding your question, I haven’t tried it yet, but I think that is possible to accomplish something like you mentioned. I remember that someone asked me the same question, and I answered this:

    Not at this moment. Plugin is intended to work on every page of your site, but you can alter this behaviour by yourself in particular.

    Go to plugin’s folder, then “methods” and open loadgo_sitewide.php file. Add at the beginning your check to allow or not default’s plugin behaviour. For example:

    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    
    $allowed_id = 1;
    if ( get_the_ID() !== $allowed_id ) exit; // Execute LoadGo only on specific page
    
    $options = get_option('loadgo_options');

    I don’t remember exactly if get_the_ID() function will return a valid value inside a plugin, but I hope you can get the intention.

    I can only recommend you to try something like I described it. I will add this feature soon, but cannot guarantee you a date.

    Best regards,

    -Fran

    Plugin Author Fran Verona

    (@franverona)

    Due to no response for almost 2 months, I will close and mark this as solved. If you still face this problem, feel free to open another topic.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to’ is closed to new replies.