• I need to add some metas and script into <head> and </head> but I think Tromax blocked the option to edit Header.php. How can I do?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello henningmanuel,

    You can use Head & Footer Code plugin.

    Or

    You can use wp_head action to add scripts, css, metas etc. into <head>. Add below code into your current active child theme’s functions.php file or you can create plugin for it.

    function my_custom_head_scripts() {
      ?>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <script>
        /** code **/
      </script>
      <?php
    }
    
    add_action( 'wp_head', 'my_custom_head_scripts' );

    Hope this will helps you.

    Thanks !

Viewing 1 replies (of 1 total)
  • The topic ‘Head’ is closed to new replies.