Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1181120

    Hello,

    I would like to add some meta tags in my header, but Im afraid to make it directly in header.php file, what other way can I have to do it.

    Example:

    <META NAME=”…..” CONTENT=”……”

    Thank you

    #1181279

    Hey Junior,

    You can use a function in functions.php instead:

    function add_header_meta_tags(){
    ?>
    YOUR META TAGS GO HERE
    <?php
    }
    add_action('wp_head', 'add_header_meta_tags');

    Best regards,
    Rikard

    #1181282

    Thank you so much!!

    #1181299

    Hi,

    Glad Rikard could help!

    Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add custom meta tags’ is closed to new replies.