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

    Hi, How can I insert a small html code into the head of a couple of pages please?

    #385858

    Hi sevanah!

    Add this to the bottom of your functions.php file.

    add_action( 'wp_head', 'enfold_customization_add_stuff_to_header' );
    function enfold_customization_add_stuff_to_header() {
        if ( is_page(2) || is_page(3) || is_page(4) ) { 
         echo 'your code here';
        }
    }

    You can check for certain pages there and then insert some code to display in the header.

    Best regards,
    Elliott

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