How add this code below title?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7278 Reply

    André

    Are you okay?
    I need to add a javascript code under the title.
    How do I do that?

    Best

    <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
    JAVASCRIPT GOES HERE

    So..
    <title>My title blog</title>
    JAVASCRIPT GOES HERE

    #7279 Reply

    Ron
    Keymaster

    Use the wp_head action hook. This is a an action hook implemented in all themes and is not specific to Frontier.

    Example:

    add_action( 'wp_head', 'add_stuff_to_head' );
    
    function add_stuff_to_head() {
    ?>
       // Your script goes here
    <?php
    }
    #7280 Reply

    André

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: How add this code below title?
Your information:




Is this spam?  
YES   NO

ronangelo © 2012 - 2017 Frontier Theme
css.php