Support » Plugin: Head, Footer and Post Injections » Individual code per page

Viewing 4 replies - 1 through 4 (of 4 total)
  • This plugin is the best one I’ve found so far a I love it! But you are right, it would be awesome to be able to include or exclude certain pages and / or control individual pages. I don’t think it has this feature at the moment but would love it know if it’s in the roadmap! 🙂

    thereznation

    (@thereznation)

    this plugin is a joke if you can’t do that. I am trying to find a plugin to put javascript code on one particular thank you page and i can’t find anywhere on the internet on how to do that. this is absurd

    nikana2000

    (@nikana2000)

    @thereznation I don’t know if you’ll have better luck than me, but there’s this option

    /* Describe what the code snippet does so you can remember later on */
    add_action('wp_head', 'your_function_name');
    function your_function_name(){
    if(is_single(73790)) {  ?>
    PASTE HEADER CODE HERE
    <?php  }
    };

    from here: https://kinsta.com/knowledgebase/add-code-wordpress-header-footer/

    Plugin Author Stefano Lissa

    (@satollo)

    A simple code can be added directly in header and footer (php is allowed)
    <?php if(is_single(73790)) { ?>
    PASTE HEADER CODE HERE
    <?php } ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.