Jump to content

Archived

This topic is now archived and is closed to further replies.

insatiableiam

Adding a hook specifically to a section/textbox on a specific page

Recommended Posts

insatiableiam

So I been reading more with customization, to go more in depth with developing and I am wondering if it's possible to make a specific hook within a section/textbox where I want to load my own html/script on a specific page. I downloaded the hooker plugin and it seems the actions are more global wise than specific? 

 

 

Share this post


Link to post
Share on other sites
Danny

Hi,

 

All sections can be hooked into. However, if you have more than one, then your code will be displayed from all those sections. For example, lets say you use a hook on a TextBox section on your homepage and you have more than one, then the code will be displayed on all your textboxes.

If you want to add your own script, then you shouldn't be using a TextBox, you will want to enqueue it and use the is_page() function

 

http://codex.wordpress.org/Function_Reference/is_page

http://codex.wordpress.org/Function_Reference/wp_enqueue_script


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
meigsmhe

Learning


You cannot quicken the game pace though,mobile management, and there aren't many places within the map where you can build your towers so you may have to plan your strategy out really well.

Share this post


Link to post
Share on other sites

×