Tagged: x
-
AuthorPosts
-
September 19, 2016 at 4:28 am #1181086
Hi,
On this site: http://dehartenvriend.nl I have put two phone numbers in the topbar. I have also used ‘ ‘ to add space between them. Now, when switching to mobile phone view the numbers are placed underneath each other but don’t align because of those ‘ ‘. Is there a runaround for this?
September 19, 2016 at 4:44 am #1181111Hi there,
Please update your code to :
<div class="x-column x-1-3 x-sm"><img src="http://dehartenvriend.nl/wp-content/uploads/2016/09/netherlands-flag-xs.png"> 0909 - 2356666 (€ 0,90) </div> <div class="x-column x-1-3 x-sm"> <img src="http://dehartenvriend.nl/wp-content/uploads/2016/09/belgium-flag-xs.png"> 0909 - 2356666 (€ 1,15)</div>
Hope it helps.
September 19, 2016 at 4:51 am #1181119That messes up the desktop view as well.
September 19, 2016 at 5:19 am #1181156Hi there,
Please update topbar content to :
<span style="display: inline-block;"><img src="http://dehartenvriend.nl/wp-content/uploads/2016/09/netherlands-flag-xs.png"> 0909 - 5553555 (€ 0,90)</span> <span style="display: inline-block;"> <img src="http://dehartenvriend.nl/wp-content/uploads/2016/09/belgium-flag-xs.png"> 02 - 5884961 (€ 1,15)</span>
Hope it helps.
September 19, 2016 at 10:19 am #1181559Nope, it is the spaces ( ) that cause it.
September 19, 2016 at 10:22 am #1181572I put the ( )’s behind the first phone number which works for the mobile phone view, but not for the tablet view.
September 19, 2016 at 10:31 am #1181593Okay, so now it doesn’t work on any screen size.
September 19, 2016 at 10:38 am #1181607Hi There,
Add this code to Appereance > Customizer > Header > Topobar Content:
<span style="display: inline-block;"><img src="http://dehartenvriend.nl/wp-content/uploads/2016/09/netherlands-flag-xs.png"> 0909 - 5553555 (€ 0,90)</span> <span class="span2" style="display: inline-block;"><img src="http://dehartenvriend.nl/wp-content/uploads/2016/09/belgium-flag-xs.png"> 02 - 5884961 (€ 1,15)</span>
Add this code to Appereance > Customizer > Custom > CSS
@media(min-width: 480px) { span.span2 { padding-left: 20px; } } @media(max-width: 767px) { span.span2 { margin-top: 10px; } } @media (max-width: 767px) { .x-topbar .p-info { text-align: left !important; margin-left: 10%; } }
Adjust margin-left if necessary.
Hope it helps
Joao
September 20, 2016 at 5:53 pm #1183813I’ll check it next thing in the morning.
Another issue: the flag icon and the phone numbers don’t align correctly. The flag is positioned slightly lower than the text. How can I fix that?
September 20, 2016 at 8:28 pm #1184013Hi there,
Please add this code in the customizer:
.x-topbar .p-info span img { position: relative; top: -5px; }
September 21, 2016 at 3:45 am #1184319You guys rock!
September 21, 2016 at 3:58 am #1184328Glad we were able to help 🙂
September 21, 2016 at 5:12 pm #1185480Hi,
Adjusted that last bit of code to ‘top: -3px’. But… while it looks perfect in Safari it doesn’t look so great in Firefox, where I’d have to use ‘-10px’ to get anything aligned (but then it is too much in Safari…). Any suggestions as to why this is and how to prevent it?
Love you guys!
September 21, 2016 at 11:01 pm #1185913Hello There,
After further investigation, it appears that you have inserted an invalid code in your topbar content. Please do update it and make use of this code instead:
<span style="display: inline-block;"><img src="http://dehartenvriend.nl/wp-content/uploads/2016/09/netherlands-flag-xs.png"> 0909 - 5553555 (€ 0,90pm)</span> <span class="span2" style="display: inline-block;"><img src="http://dehartenvriend.nl/wp-content/uploads/2016/09/belgium-flag-xs.png"> 02 - 5884961 (€ 1,15pm)</span> <span class="span2" style="display: inline-block;"><a href="http://dehartenvriend.nl/credits/"><img src="http://dehartenvriend.nl/wp-content/uploads/2016/09/credits-flag-xs.png"> KOOP CREDITS</a></span>
Please let us know how it goes.
September 22, 2016 at 4:48 am #1186229Okay, done but that didn’t change how it looks in Firefox. Checked Safari and Chrome and both look okay, just not Firefox.
-
AuthorPosts