I added a button and when you press on it new content should come up on top of everything, but if I icnlude my code into header.php it will cover only header, if I include in index.php it will cover only index, so my question is where I should include my code?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
If you want to echo something extremely early, you can do that at I do not quite understand why you need to actualyl output it early, if presentation is controlled with JavaScript (I assume?). You could as well echo it at end of page hidden and position/show when and how is needed on button pressed. |
|||
|
|
|
I guess what you need is wp_register_script() + wp_enqueue_script() Are you talking about PHP or JavaScript??? Your description is simply not sufficient. |
|||
|
|