- This topic has 11 replies, 3 voices, and was last updated 10 years, 1 month ago by
Tom.
-
AuthorPosts
-
June 7, 2016 at 1:54 am #199945
Baba
Hello. Tom
I am now struggling on GP theme not showing LOGO image on the header. I have reselected the logo image data (and cropped properly) but still same result.I appreciate your assistance if there is a way to solve this.
The issue can be under this website
http://typograffit.com
GP Version:1.3.31June 7, 2016 at 9:28 am #200021Tom
Lead DeveloperLead DeveloperAre you using a child theme? If so, any custom page templates or custom functions?
June 7, 2016 at 12:15 pm #200091Baba
Thanks for the quick reply.
yes I am using the child theme.
I don’t think i am using custom templates or functions.thx
June 7, 2016 at 2:59 pm #200136Tom
Lead DeveloperLead DeveloperIs there anything in the functions.php file found in “Appearance > Editor”?
June 8, 2016 at 1:13 am #200227Baba
Yes, we have added few codes regarding woocommerce & WPML.
Could this be causing the issue?June 8, 2016 at 10:32 am #200311Tom
Lead DeveloperLead DeveloperAnything referencing the generate_header_items() function?
If the logo is set in “Customize > Site Identity” but it’s not showing up, it means you’re either overwriting the generate_header_items() function, or the header.php file in your child theme.
June 8, 2016 at 11:33 am #200335Nate Heath
I noticed the same thing on http://www.ValleyViewChiro.com today. My logo image was gone. I did realize that I had copied the header.php into my child theme because I needed to load some custom code into the <body> tag for Google Adwords custom phone numbers.
I am guessing I should just trash the child header.php file. Where would be the best place to put that code to get it into the <body> tag.
As always, thanks!
June 8, 2016 at 12:38 pm #200354Tom
Lead DeveloperLead DeveloperI would use GP Hooks and the wp_head hook 🙂
June 15, 2016 at 3:51 pm #202333Nate Heath
OK, so I finally got back to getting this all fixed.
There is a <script>…</script> that goes into the head, which I threw into the wp_head hook.
The second part is onload=”…;” snippet that is in the <body> tag, can I put another body tag into the wp_head hook?
Thanks.
June 15, 2016 at 4:15 pm #202339Tom
Lead DeveloperLead DeveloperI’m not sure what you mean?
Definitely don’t add another
<body>tag, there can be only one.June 15, 2016 at 6:36 pm #202356Nate Heath
Yeah that is what I thought. Basically there are two pieces of code to add into the page. One in the head and one within the body tag. I am wondering if there is any way to add into the body tag or if I just need to do it within the child theme and make sure it doesn’t break on update.
thanks,
June 15, 2016 at 11:31 pm #202380Tom
Lead DeveloperLead DeveloperIf you’re using GP Hooks you can add it into the “Before Header” hook – that fires directly inside the body tag 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.