• I have created a very simple plugin to add an element at the top of all the pages on my website.

    I used the following action and function:

    
    add_action('wp_head' , 'add_custom_element');
    
    function add_custom_element(){
        //Some Code.
    }
    

    Is there is another way/action to add an element at the top of the page just after the <body> element?

    • This topic was modified 7 years, 10 months ago by mdev1.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Adding an element after the body element’ is closed to new replies.