Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jquisenberry

    (@jquisenberry)

    @littlepackage

    I think the idea to edit the child theme’s header.php is promising.

    Is there a way to persist the edit in case the theme developer publishes an upgraded version?

    Thread Starter jquisenberry

    (@jquisenberry)

    Even though the issue does not appear to be specific to Header and Footer Scripts, I would appreciate any information you can provide about what might be rejecting the code I seek to add.

    In other tests, I was unable to add the <noscript></noscript> tags.

    Thread Starter jquisenberry

    (@jquisenberry)

    Hello,

    Reinstalling the plugin does not resolve the issue. I doubt that there is a permissions issue because I can install one script, such as

    <script type="text/javascript">console.log("testA")</script>

    Even though I cannot install two scripts, such as

    <script type="text/javascript">console.log("testA")</script>
    <script type="text/javascript">console.log("testB")</script>

    I have found that this issue applies not only to the Header and Footer Scripts plugin. I have tried the following techniques, and all produce an error:

    * Plugin Header and Footer Scripts
    * Plugin Insert Headers and Footers
    * Theme Customizer (Appearance -> Customize -> Theme Settings -> Header/Footer Scripts
    * Editing the theme’s functions.php using Appearance -> Theme Editor as follows:

    add_action('wp_head', 'your_function_name0');
    function your_function_name0(){
    ?>
    <script type="text/javascript">console.log("your_function_0");</script>
    <script type="text/javascript">console.log("your_function_1");</script>
    <?php
    };
    
Viewing 3 replies - 1 through 3 (of 3 total)