Jump to content
Sign in to follow this  
WebWerx

Adding HTML with a Hook?

Recommended Posts

WebWerx

So now that @pross has shown me how to add PHP (with a DIV!) using a hook, I'd like to learn how to add HTML with a DIV using a hook. In my example, I'd like to simply add a 800 number to top of our site. Here is what I have so far (It breaks the site): http://paste.pagelines.com/4b I know my error is something very obvious.... :">

Share this post


Link to post
Share on other sites
Simon
http://paste.pagelines.com/37

Share this post


Link to post
Share on other sites
WebWerx
@pross: Hmmm. It still doesn't work. The site crashed when I add the code you posted Simon. I have 2 functions referring to the same hook. Would that cause an issue? I have taken my complete functions.php for you to see: http://paste.pagelines.com/78. For the moment the code you gave me has been pulled from the site in order to make it "Work" @catrina: 's & 's are the least of my worries! LOL :O

Share this post


Link to post
Share on other sites
Simon
Dont use numbers in function names. http://paste.pagelines.com/79

Share this post


Link to post
Share on other sites
WebWerx
Tada! Well I get some solace in knowing that @pross was fooled (albeit momentarily). Much appreciated!

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  

×