GetSimple Support Forum
QUESTION Problem With Adding Hooks - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: QUESTION Problem With Adding Hooks (/showthread.php?tid=8009)



Problem With Adding Hooks - Dale - 2016-02-19

Okay, so I'm new to the rear-end of Get-Simple. I've decided to get started on making plugins. My first plugin requires me to insert HTML dynamically right after the body tag of every page. How would I even go about making a custom hook to do this? Or is there one available out-of-the-box that I am missing?

EDIT: Got that working, now another problem... how do I dynamically push my hook into the header.php after the body tag?


RE: Problem With Adding Hooks - shawn_a - 2016-02-19

After the body tag? You mean footer?


RE: Problem With Adding Hooks - Dale - 2016-02-20

After the opening body tag, I apologize, I should have been more specific.


RE: Problem With Adding Hooks - shawn_a - 2016-02-20

This is inside your theme, so there are no hooks, it is outside of gs control.
There is content-top hook fired from get_content..

Maybe post ehat you are trying to do


RE: Problem With Adding Hooks - Dale - 2016-02-20

(2016-02-20, 11:13:12)shawn_a Wrote: This is inside your theme, so there are no hooks, it is outside of gs control.
There is content-top hook fired from get_content..

Maybe post ehat you are trying to do

I was having quite the brain fart... jQuery is more than suitable for what I need to do. Lol.


RE: Problem With Adding Hooks - shawn_a - 2016-02-20

For custom stuff your best bet is templates or components.