• Resolved Jayson Garcia

    (@hallowichig0)


    Hi Jose,

    Thank you for this plugin. It is very helpful. I would like to us if we can deactivate the plugin using page template? In the free version there is no option to do this. I do not know if this is available on the pro version.

Viewing 1 replies (of 1 total)
  • Plugin Author Jose Mortellaro

    (@giuse)

    Hi @hallowichig0

    many thanks to you!

    Do you mean only the page template that you can choose in the attributes of the single page? For instance “Template full width”, “Template with sidebar on the left”, or “Template landing page”… Do you mean this kind of template?
    Or the template files like single.php, archive.php..?

    In any case, at the moment it’s not possible with the PRO version either.

    Probably, it will be possible in a future version of FDP PRO, but it’s difficult to say when this feature will be ready and stable.

    For template files like single.php, archive.php.. you have a workaround, already with the free version. You can try to understand on which pages the template files would be called, and then deactivate the unneeded plugins on those pages. If for instance, you want to deactivate some plugins for the template single.php, and you know that the template is called for the blog posts, you can deactivate the plugins in Post Types => Posts. If you need to deactivate plugins for the template file page.php, and you know that the template file is called when you visit a static page, then use the setting Post Types => Pages. For search.php you have the settings Search. For single-produuct.php you have Post Types => Products, and so on.

    But probably you mean the page template, don’t you? In that case, there are no workarounds. But as said probably it will be possible in the future with the PRO version.

    Let me know if you need more clarification.

Viewing 1 replies (of 1 total)

The topic ‘Deactivate plugin base on page template or post template’ is closed to new replies.