Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Problem With Adding Hooks
#1
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?
Reply
#2
After the body tag? You mean footer?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
After the opening body tag, I apologize, I should have been more specific.
Reply
#4
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
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
(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.
Reply
#6
For custom stuff your best bet is templates or components.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)