Posts: 4
Threads: 2
Joined: Jan 2016
2016-02-19, 14:56:53
(This post was last modified: 2016-02-19, 15:14:46 by Dale.)
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?
Posts: 6,266
Threads: 181
Joined: Sep 2011
After the body tag? You mean footer?
Posts: 4
Threads: 2
Joined: Jan 2016
2016-02-20, 00:00:15
(This post was last modified: 2016-02-20, 00:00:32 by Dale.)
After the opening body tag, I apologize, I should have been more specific.
Posts: 6,266
Threads: 181
Joined: Sep 2011
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
Posts: 4
Threads: 2
Joined: Jan 2016
(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.
Posts: 6,266
Threads: 181
Joined: Sep 2011
For custom stuff your best bet is templates or components.