Adding a Logo & Text to Header
This support request was posted in BBQ by kswaney
- kswaney July 19, 2014 at 6:25 pm
Hi There,
I have uploaded my custom logo and its all working well. What I’d like to do is add some text inside the H1 so that both the logo image and text are displayed on desktop mode (and I’ll use CSS to hide it on iphones etc).
I’ve looked through the php and am having trouble understanding where to place the code. What i’d like to have is some text that is wrapped in a class, inserted in between the php added H1 tags. Hopefully that makes sense.
Is that possible? Where do I insert the extra html?
Thanks!
KateJuanfra Aldasoro July 19, 2014 at 6:40 pmHi Kate,
I hope you’re doing well today and thanks for writing.
The logo is displayed with a function that is filterable. The name of the function is nice_logo and it is within the Theme Framework.
What you can do, is add some php function in your functions.php file in order to alter the default args and set some text for the ‘after_title’ parameter.
I’ve set an example for you, you can find it here: https://gist.github.com/juanfra/2b01d8cf5762827ab66f
Best,
Juan.kswaney July 19, 2014 at 7:58 pmWow!
Thanks so much for the fast reply! I’m not very good at php and you totally made it easy for me to do.
You must be logged in to reply to this topic.