If I have a plugin that prints (simply) "Hello World", and I want it be outside of the main container, so, like this:
<h1>Hello world!</h1> <div id="content"> . . . </div>
<div id="content"> <h1>Hello world!</h1> . . . </div>
How can I make that work?
I created a child-theme and I don't want to edit the parent theme files (if even needed).
I saw a solution that you can do something like this:
add_action('__before_main_container', 'my_func', 0);
(In the functions.php file)
my_func would print some html, but that is not working for some reason (it doesn't display anything in the page).
Another thing with this, the plugin I use needs to be added like so:
to the page I want it be on. The problem with this is I cant just do:
echo '[plugin id="1"]';
because that would not trigger the plugin!
So, what can I do to make that work?
(I want to do this because I want something specific full-width but not the container itself)
EDIT: Ok I saw that I can override header.php, that's great, but how can I insert the plugin there only for specific pages? or pages that include: