Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1232429

    Is there an example of how I would add code to the header using a filter as opposed to editing core theme files? I am using Snippets plugin that lets me add code without messing with core Enfold files.

    thanks!

    #1232627

    Hey jomo5280,

    If it’s the JavaScript that you need to add you can consider this example:

    
    function avia_add_fontawesome(){
    ?>
    <script src="https://use.fontawesome.com/650859c78a.js"></script>
    <?php
    }
    add_action('wp_head', 'avia_add_fontawesome');
    

    Best regards,
    Victoria

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.