- This topic has 41 replies, 2 voices, and was last updated 2 years, 8 months ago by David.
-
AuthorPosts
-
July 18, 2017 at 7:59 am #351190LeoStaffCustomer Support
You can remove the white line with this:
.desktop-image { line-height: 0; }
I’m not seeing the second half of the CSS being added. Can you clear the caching plugin?
July 18, 2017 at 6:43 pm #351426TullyHi Leo,
That fixed the white space, thanks.
I have cleared the caching plugin (multiple times) but no difference?
July 18, 2017 at 8:52 pm #351448LeoStaffCustomer SupportHmm weird. Can you try disabling the caching plugin first?
I can’t quite tell why the CSS is not getting loaded.
July 19, 2017 at 12:37 am #351500TomLead DeveloperLead DeveloperCan you try adding that CSS to the very top of your custom CSS?
July 19, 2017 at 6:09 pm #351963TullyI’ve moved CSS to the top, and also deactivated the cache plugin but still the same result.
July 19, 2017 at 11:45 pm #352058TomLead DeveloperLead DeveloperAh, you have this in your media query:
max-width: 768x
It should be:
max-width: 768px
July 20, 2017 at 2:05 am #352099TullyGreat thanks! That fixed it. So simple!
However still an issue with the white space – there is no white space between header and menu on desktop or on vertical mobile, but turn mobile on its side and there is white space? Or just resize desktop and there is no white space until as screen shrinks the white space appears, then as it shrinks further the white space disappears again?
Once again, thanks for the amazing support.
July 20, 2017 at 8:28 am #352270LeoStaffCustomer SupportTry this CSS:
@media (max-width: 768px) { .inside-header>:not(:last-child) { margin-bottom: 0; } }
July 20, 2017 at 7:54 pm #352539TullyThanks Leo that’s got it sorted.
July 20, 2017 at 8:22 pm #352548LeoStaffCustomer SupportGlad we could help!
February 8, 2018 at 9:29 pm #491849TullyHi there,
Everything has been working fine, but now for some reason my mobile header is no longer displaying? Site is http://www.workingsheepdogtraining.com.
Thanks.
February 9, 2018 at 8:24 am #492303LeoStaffCustomer SupportHi there,
I can see the mobile header: http://www.screencast.com/t/ve3aVtcYT3Y
Looks like there isn’t a mobile header logo uploaded.
Let me know if this helps 🙂
February 10, 2018 at 2:28 pm #493204TullyHi Leo,
Not sure what you mean? I have different headers to display using CSS and GP Hooks. The hooks code is:
<div class="desktop-image"> <img src="https://workingsheepdogtraining.com/wp-content/uploads/2018/02/Masterclass-Working-SheepdogTraining-Header-1920x480-b.jpg" alt="Working Sheepdog Training Masterclass videos header image" /> </div> <div class="mobile-image"> <img src="https://workingsheepdogtraining.com/wp-content/uploads/2018/02/Masterclass-Working-Sheepdog-Training-Mobile-Header-tall.jpg" alt="Working Sheepdog Training Masterclass videos header image" /> </div>
Regards,
TullyFebruary 10, 2018 at 2:31 pm #493205TullyI copied and pasted the gp hooks code into the last message, however it seems it just displayed the images? How can I copy that code in here for you to see without it just displaying the images? I’ll try something else:
February 10, 2018 at 5:31 pm #493264LeoStaffCustomer SupportYou need to highlight the code and select “code” to make the actual code show up.
I’ve done it for you above.
Do you have CSS to go along with those images?
Might be easier to use the hide-on classes too: https://docs.generatepress.com/article/responsive-display/#using-our-hide-on-classes
-
AuthorPosts
- You must be logged in to reply to this topic.