Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION push data to get_footer()
I have created a very simple component which will insert the html of a Nivo Slider at a specific point in a page. I need to insert code after the Jquery script has loaded at the bottom of the page so would like to know how I can add the code to the get_footer() function. Is this possible please?
use Hooks.

The footer hook is called: theme-footer

Place the following code in the themes functions.php (create if not there) This will get loaded automatically.

function myFooter(){
    echo get_component('your_componenet_name');

add_action( 'theme-footer', 'myFooter', array());  // if you function takes no arguments.
My Github Repos: Github
Website: DigiMute
Thank you - perfect. :-)

Users browsing this thread: 1 Guest(s)