Archived topic
Replace my site logo with a different one on a specific page or category
18 replies · Started by Michelle on July 18, 2022
I added both sets of code into Snippets, hit "apply", cleared my cache, and looked at the page. Nothing changed. The urls of the logo and the sticky header did not go to the url I replaced google.com with.
I also re-enabled Primary Navigation. The mobile became no longer sticky, and tablet and desktop remained unsticky. When I disabled the Primary Nav again, the mobile sticky showed.
1 snippet is using 6619 as the ID, and the other two are using 1431 as the ID, can you make sure the IDs are correct?
And try replace the ‘generate_retina_logo’ with 'generate_retina_logo' in the snippet called Replace RMW logo with DR logo on DR page.
I changed the ID to the Category ID.
I don't know what you mean by this: "And try replace the ‘generate_retina_logo’ with 'generate_retina_logo' in the snippet"
Sorry, what Ying meant is the code I provided here: https://generatepress.com/forums/topic/replace-my-site-logo-with-a-different-one-on-a-specific-page-or-category/#post-2288057 has a slanted quotation mark which causes it not to work. This portion as mention by Ying: ‘generate_retina_logo’. The quotation marks are slanted as opposed to being straight.
I corrected it now. Can you replace the current code you have in Replace RMW logo with DR logo for DR archive category with that?