• Resolved mattthev1

    (@mattthev)


    How to deactivate plugin on static homepage?
    If I enter “homepage” into the “Init plugin on the next site pages only” it doesn’t work, I’ve also tried page ID… Only what is working is “/”, but that deactivate the plugin on all pages…
    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    You can add code in – \wp-content\plugins\woocommerce-products-filter\index.php – https://c2n.me/49jPXLK.png

            if(is_front_page()){
                return;
            }

    and do a test

    Thread Starter mattthev1

    (@mattthev)

    Hi,
    thanks for the fast reply, but it is not working. All the WOOF files are still loading on homepage. Do you have any other solution please? Thanks.

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Try in file – wp-content\plugins\woocommerce-products-filter\index.php add code – https://c2n.me/49lG7MD.png

    $init = $pattern_url==$server_link_mask;

    And enter home page url – https://c2n.me/49lGdP0.png

    Do a test please

    Thread Starter mattthev1

    (@mattthev)

    Hi,
    it works like a charm! Thank you very much.
    Would be awesome have it in next release like this or like other plugins have it when you insert “homepage”. Lot of folks would probably use it too because it speeds up the loading times little bit and lower number of files loads.
    Thank you again.

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    I will pass it to developers, they will decide the feasibility of this

    Welcome;)

    • This reply was modified 4 years, 1 month ago by mediawebster.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deactivate plugin on the homepage’ is closed to new replies.