-
AuthorPosts
-
August 14th, 2017 at 16:36 #51931
Hi,
I have an image that I want to use for the slider on the landing page–I’ll just have one image, not a slider. The image includes the site logo and title, so I have disabled them from showing in the header section. Is there a way to get the logo to show in the header on all other pages and just not on the landing page?
August 20th, 2017 at 18:03 #52401ZedCryout Creations mastermindLeave the logo active all the time and hide it on the homepage with CSS:
.home #branding #logo { display: none; }
- This reply was modified 7 years ago by Zed. Reason: corrected answer
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.August 21st, 2017 at 15:52 #52534Ok, so I’m just learning CSS and I’m not sure where to put the code you gave me. I tried in “additional CSS”, but that didn’t work, so I tried in various places–in style.css it took it hid it on all the pages.
I was trying to put it in the landing-page.php file and when that didn’t work I deleted the code, but apparently I have a stray bracket or something and now I can’t get into any file at all to try to find my error. I get a “parse error” message. I can’t even logout. I’m stuck. This is not a live website, so not tragic or urgent (but it feels kind of urgent), but is there a way out of this? I tried just closing the browser and now I can’t get back in at all. Is there a way to recover? And if not, how do I just start over?
August 21st, 2017 at 15:53 #52535This reply is private.August 21st, 2017 at 22:08 #52570Ok, I got back in with some help from my hosting company. Phew!
I’m still not sure where to put the css you provided.
August 27th, 2017 at 16:57 #52855ZedCryout Creations mastermindSimple CSS customizations should go in the Additional CSS field in the customizer interface (or you can use a custom CSS plugin to apply extra CSS to your site).
Complex customizations should be performed through child themes.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.August 28th, 2017 at 16:14 #52887I put it in the Additional CSS field–that was the first thing I tried–but it makes the logo/title disappear on every page, not just the homepage. Do I need something in the CSS to specify just the homepage?
September 3rd, 2017 at 17:24 #53159ZedCryout Creations mastermindSorry, I’ve updated the CSS above to make it only apply to the homepage.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.September 4th, 2017 at 19:17 #53202Thank you! I thought it needed something to specify homepage only, but didn’t know what I needed to do.
I had to put a comma between #branding and #logo and now it’s working.
.home #branding, #logo { display: none; }
-
AuthorPosts
The topic ‘Logo on non-home-page only?’ is closed to new replies.