- [Instructor] Okay so, in
this video I'm gonna show you
how to add code to the header
or footer of a WordPress page.
Now, the reason that
you may have to do this
is typically is because
there's some kind of a script.
So, in another video, we
showed how to do a redirect.
So, what you can do is you
can download this free plugin,
and it's called OH Add
Script Header Footer.
So, all you have to do is
simply do a search for that.
It's right below this video.
You'll be able to just copy and paste it
when you do a search for that plugin.
And then click Activate.
Now what happens is
when you come over here,
and we click on, sorry
I jumped the gun there,
we click on New, Page,
then what you'll see is right
below the text editor area,
you'll see OH add script.
So, if a script, whether
it's an exit popup
or redirect or whatever,
says put this line of code
in the header, you would
simply put it in this box.
If it says to put it in the footer,
you would put it in this box.
And what's great about
this code or this plugin
is that WordPress recognizes
that this is supposed
to be here, and it won't alter it.
So, that's a big problem
that has been resolved
with this plugin.
