Skip to main content

Disable Subscribe on homepage

Answered

Comments

5 comments

  • Official comment
    Support
    • Grow Support Team

    Hey Emma!

    There's no way to disable individual Grow features on a page-by-page basis at this time, but I will log that feedback for you.

    The disable code is the best method to use at this time. It's unlikely that readers will share the homepage over a specific post since most users on the homepage move on to post content quite quickly!

  • Duke Armitage

    Hi Ben, 

    There's a workaround where you'd use PHP to make the script (and the froms) only work on single posts and not pages (not the hompage, terms or privacy policy pages). Would this be okay?
     

    function add_growme_script_for_single_posts_only() {
        if (is_single()) {
            ?>
            <script data-grow-initializer="">
            <!-- Grow by Mediavine Script here -->          
            </script>
            <?php
        }
    }
    add_action('wp_head', 'add_growme_script_for_single_posts_only');
    0
  • Support
    • Grow Support Team

    Hey Talal,

    Most sites use different content selectors for pages and posts, so the majority of publishers won't see Grow's in content features added to pages.

    It's possible this solution could work, but it's not something we've tested or verified. It might negatively impact Subscribe forms appearing across your site, but you are welcome to test and see how it works for you.

    0
  • Duke Armitage

    Hey Ben,

    Thank you. That makes perfect sense. I hope they're well be a better way to control the form visibilty. It'd be tedious to add the code to a few dozen pages.

    0
  • Emma Choi

    Thanks Ben for your answer. In this case I'm not too sure how some bloggers manage it. 

    0

Please sign in to leave a comment.