Jump to content
Sign in to follow this  
gwiley

Code to 404 page

Recommended Posts

gwiley    3
gwiley

I need to add a snippet of code to the 404 page.  Where is the best place to add it?  I don't want the code 'Global', only run on the 404 page.

 

Thanks in advance!

-gw

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there

 

Add a contentbox (free section you can download from the pagelines store) and add it into the drag and drop template for the 404 page. You can then add the required code into Pagelines>page options>404 so it only affects the 404 page.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
gwiley    3
gwiley

Hmmmm, must not work if the snippet of code is PHP? :startle:

Share this post


Link to post
Share on other sites
James B    436
James B

ah yeah the contentbox will only take html not php. 

 

To use php in a contentbox you'll need to use a plugin like http://wordpress.org/plugins/exec-php/

 

or

 

a wordpress hook/filter.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Rob    547
Rob

I was just about to suggest Shortcode Exec PHP.  That's the standard and best one to use.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×