• Resolved edugsdf

    (@edugsdf)


    I installed the plugin, but I could not find the field to put the astra_body_top hook.

    I used add_action in functions.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @edugsdf,

    Astra Hooks plugin only provide the predefined hooks in which you can append your script. Here is the screenshot of the same: https://bit.ly/2yW5pQa

    For other advanced hook you must consider having Astra Pro which will provide all the hooks that you can use to append your desired script.

    Thread Starter edugsdf

    (@edugsdf)

    Thanks for the answer.

    But I did get using the child thema in functions.php, like this:

    add_action( 'astra_body_top', 'add_tagmanager_script' );
    function add_tagmanager_script() {
        if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) { gtm4wp_the_gtm_tag(); }
    }

    And it works perfectly.

    Then I removed the plugin.

    • This reply was modified 6 years, 5 months ago by edugsdf.
    Plugin Author Nikhil Chavan

    (@nikschavan)

    Hello,

    Yes, this snippet will work. Just for future reference here is a visual representation of all the hooks in the theme – https://developers.wpastra.com/theme-visual-hooks/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘astra_body_top where is ?’ is closed to new replies.