I'm working on a new website that is using Nectar Slider for its headers. I can change the tag of the header to H1 from within the Nectar Slider menu (instead of default). I also found CSS to turn the bold off in H1 mode.
Unfortunately, the H1 formatting looks terrible and inconsistent when viewed on a mobile device (like a smartphone). Problems include text that is much bigger than it should be, or using more space than is actually available (e.g. cropped text), etc.
I would be very happy if the H1 tag would behave the exact same way as it does in the "default" option mode - just with the H1 tag in use.
Is there fast CSS I can copy and paste to just duplicate the "default" header tag experience (probably H2) to the H1 tag for Nectar Slider headers?
Thank you for this idea. The responsive settings work well for "default" tags (I think H2). However, with H1, it's the same mess with giant letters. For example, if you get it looking OK with your phone in vertical position, it is badly sized when you change the phone to horizontal position. This is not a problem with the "default" tag. I also tried custom sizing for mobile phone in the Nectar Slider settings on the page itself - and that works well for the "default" typography. A mess with H1.
Default typography works perfectly and consistently. H1 - I just can't use it reliably.
The mobile overrides work well for "default" tag no problem (that's what I did originally). But H1 behaves very differently and inconsistently; especially when changing the phone's position from vertical to horizontal.
Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):
@media only screen and (min-width: 690px) and (max-width: 999px) {
.nectar-slider-wrap[data-full-width="false"] .swiper-slide .content {
padding: 0 20px !important;
}
.swiper-slide .content h1 {
font-size: 34px !important;
line-height: 42px !important;
}
}
I have a hint at what the problem COULD be (even with your CSS mods).
First, I'm using Firefox on an Android smartphone
The first time the page loads with H1, it's bad (phone is vertical). Rotate the phone (horizontal), it's still bad. Rotate back (vertical), and formatting is correct. Rotate back to horizontal - bad again (for horizontal).
Try on an Android smartphone with Firefox. The behavior is very inconsistent compared to default / H2. Just tried on Google Chrome on smartphone - same results as described above.
I don't think this is about speed or image sizing. What is happening is when the H1 tag is used, the Nectar Slider (the header portion) becomes unstable on smartphones. To rule out the optimization question, I tried to completely disable WP Fastest Cache (beyond turning off its minify features) - and it made no difference in the outcome.
I really value your theme - it has been a life saver for us.
I do have a remaining problem. As far as I can tell, everything looks great on Android phones (Chrome, Firefox) and PC. HOWEVER, the H1 tag in the Nectar Slider header causes the heading and the subheading to collide with one another on iPad Tablets (Safari).
The site is live now with H1 tags. The problem goes away if I use the "default" tag option in Nectar Slider. I suspect I need custom CSS for Safari.
My current CSS is just as before:
-----
.center-btn { margin: 0 auto; display: table; } body .fa.fa-linkedin:before { content: "\e605"; } @media only screen and (min-width: 690px) and (max-width: 999px) { .nectar-slider-wrap[data-full-width="false"] .swiper-slide .content { padding: 0 20px !important; } .swiper-slide .content h1 { font-size: 34px !important; line-height: 42px !important; } }
OK - more info that is helpful. If it is portrait mode (like you pictured below) - it is OK (I wasn't able to test for this before). When it is in landscape mode - it is crunched as I described.
Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):
These CSS changes I've been making; do you think they are standard requirements when working with a theme like this, or is it possible that a future version of Salient will automatically factor in these considerations for a novice like me?
I'm working on a new website that is using Nectar Slider for its headers. I can change the tag of the header to H1 from within the Nectar Slider menu (instead of default). I also found CSS to turn the bold off in H1 mode.
Unfortunately, the H1 formatting looks terrible and inconsistent when viewed on a mobile device (like a smartphone). Problems include text that is much bigger than it should be, or using more space than is actually available (e.g. cropped text), etc.
I would be very happy if the H1 tag would behave the exact same way as it does in the "default" option mode - just with the H1 tag in use.
Is there fast CSS I can copy and paste to just duplicate the "default" header tag experience (probably H2) to the H1 tag for Nectar Slider headers?
Hey Again,
Try using the New Responsive Typography Settings in here : http://prntscr.com/gnf951 .
Best.
ThemeNectar Support Team
Can you reshare the screenshot? The link doesn't work. All help appreciated!
Sure,
Thanks
ThemeNectar Support Team
Thank you for this idea. The responsive settings work well for "default" tags (I think H2). However, with H1, it's the same mess with giant letters. For example, if you get it looking OK with your phone in vertical position, it is badly sized when you change the phone to horizontal position. This is not a problem with the "default" tag. I also tried custom sizing for mobile phone in the Nectar Slider settings on the page itself - and that works well for the "default" typography. A mess with H1.
Default typography works perfectly and consistently. H1 - I just can't use it reliably.
Hey Again,
The Nectar Slider has Mobile overrides as well so you might have to alter those:
Thanks
ThemeNectar Support Team
The mobile overrides work well for "default" tag no problem (that's what I did originally). But H1 behaves very differently and inconsistently; especially when changing the phone's position from vertical to horizontal.
Hey,
Please provide the page url so that i can write up the custom css for whats possible.
Thanks
ThemeNectar Support Team
https://tifca.com/home-update-v5_h1 this page is redirecting to the homepage ?.
ThemeNectar Support Team
Still redirecting.
ThemeNectar Support Team
Please turn off Minification in the WP fastest cache plugin.
Thanks
ThemeNectar Support Team
Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):
Thanks
ThemeNectar Support Team
It didn't make a difference for me. This is what my custom CSS box looks like now:
-----
.center-btn {
margin: 0 auto;
display: table;
}
body .fa.fa-linkedin:before {
content: "\e605";
}
@media only screen and (min-width: 690px) and (max-width: 999px) {
.nectar-slider-wrap[data-full-width="false"] .swiper-slide .content {
padding: 0 20px !important;
}
.swiper-slide .content h1 {
font-size: 34px !important;
line-height: 42px !important;
}
}
I have a hint at what the problem COULD be (even with your CSS mods).
First, I'm using Firefox on an Android smartphone
The first time the page loads with H1, it's bad (phone is vertical). Rotate the phone (horizontal), it's still bad. Rotate back (vertical), and formatting is correct. Rotate back to horizontal - bad again (for horizontal).
Try on an Android smartphone with Firefox. The behavior is very inconsistent compared to default / H2. Just tried on Google Chrome on smartphone - same results as described above.
Hello Neil,
Please try optimizing your site using this guide and see whether that helps:http://themenectar.com/docs/salient/performance-optimization-guide/.
Thanks.
Hi Judith,
I don't think this is about speed or image sizing. What is happening is when the H1 tag is used, the Nectar Slider (the header portion) becomes unstable on smartphones. To rule out the optimization question, I tried to completely disable WP Fastest Cache (beyond turning off its minify features) - and it made no difference in the outcome.
I'm reposting my current CSS text as a cut and paste to make sure there are no errors in what I have.
I think I solved the problem! Of course, this was (likely) all my fault.
Contributing factors:
I have more optimizations to do, but this is largely solved for me. Thank you for your time and patience!
Hello Neil,
Sorry for the delayed turnaround, we had a huge backlog of tickets to clear that were on the queue.
We are glad you were able to get a workaround.
Thanks.
Hi Judith,
I really value your theme - it has been a life saver for us.
I do have a remaining problem. As far as I can tell, everything looks great on Android phones (Chrome, Firefox) and PC. HOWEVER, the H1 tag in the Nectar Slider header causes the heading and the subheading to collide with one another on iPad Tablets (Safari).
The site is live now with H1 tags. The problem goes away if I use the "default" tag option in Nectar Slider. I suspect I need custom CSS for Safari.
My current CSS is just as before:
-----
.center-btn {
-----margin: 0 auto;
display: table;
}
body .fa.fa-linkedin:before {
content: "\e605";
}
@media only screen and (min-width: 690px) and (max-width: 999px) {
.nectar-slider-wrap[data-full-width="false"] .swiper-slide .content {
padding: 0 20px !important;
}
.swiper-slide .content h1 {
font-size: 34px !important;
line-height: 42px !important;
}
}
http://www.tifca.com
Hi Neil,
I have checked the page on Ipad on safari browser and I am not seeing any issues, please let us know the model from which you are experiencing this.
Thanks
iPad Air 5 Safari.
OK - more info that is helpful. If it is portrait mode (like you pictured below) - it is OK (I wasn't able to test for this before). When it is in landscape mode - it is crunched as I described.
Hi There,
This is what I am seeing from the specified device:
Please share a screenshot of what you are getting.
Thanks.
Screenshot of crunched text (landscape mode Safari)
Hey Again,
Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):
Thanks
ThemeNectar Support Team
FANTASTIC! This fixed everything. Thank you!
These CSS changes I've been making; do you think they are standard requirements when working with a theme like this, or is it possible that a future version of Salient will automatically factor in these considerations for a novice like me?
You can keep them for now as they should not cause issue even with updates.
Best
ThemeNectar Support Team