Hi All!
Please can someone assist me.
I would like to add text above the search and cart icons on the Venture theme homepage (see screenshot below).
Thanks in advance!
Hi All!
Please can someone assist me.
I would like to add text above the search and cart icons on the Venture theme homepage (see screenshot below).
Thanks in advance!
@guyv - it will need code editing, do you know how to edit html/liquid?
Hi! Yes, if you provide the code then I can copy and paste it.
@guyv Hello,
We would need more info on the code, as it will be easier to locate the correct div. But if you want to try it, then follow this:
This is the fast solution, so once you have more details on the code or provide with additional settings, you can adjust it better.
Hope it helps.
@guyv Hello,
We would need more info on the code, as it will be easier to locate the correct div. But if you want to try it, then follow this:
This is the fast solution, so once you have more details on the code or provide with additional settings, you can adjust it better.
Hope it helps.
Thanks a lot for your reply!
Iâve added your code (see screenshot below). Please can you assist with the following adjustments:
I would like to align the phone number with my logo on the left (see screenshot below).
I would like to adjust the margin between the phone number and the search and cart icons below it.
I have inserted some of the code from my header.liquid below the screenshot. Let me know if you require any additional code.
Thanks again for your help.
#### +1 888 897 0774
@guyv - I think you changed everything to add announcement bar on top
Hello @guyv ,
You will need to add one more CSS code, but this time in the header. Try to apply:
.gridâtable>.grid__item {
vertical-align: top;
}
As this will set the alignment on the Logo to be top position, as at the moment is it vertically centred.
And now for the margin:
That would be the adjustment.
Thanks for the adjustments!
I have also added the following code to adjust the margin between the search and cart icons and the âAccountâ text below it:
.site-header__search-cart-wrapper {
margin-bottom: -10px
}
Now my issue is the mobile view which looks like this:
On my live site it currently looks like this:
I would like the mobile version to look the same as it does on my live site if possible, i.e. with no phone number on the right hand side.
Is there a way to make all the changes apply only to desktop view and not mobile view?
Thanks for your help!
Hello @guyv ,
I am glad it worked out.
In order to hide it for the mobile just apply this change where i added the class âsmallâhideâ to the heading of the phone number like this:
That should to the trick.
Happy to help.
Great! Itâs almost perfect.
Now that we changed the logo to âvertical-align: topâ, it is slightly too high in mobile view (see screenshot below). Is there code we can use to make the logo âvertical-align: centerâ in mobile view only?
Here is the CSS that I currently have:
.grid--table>.grid__item {
vertical-align: top;
}
.site-header__search-cart-wrapper {
margin-bottom: -40px
}
h3.tel-number {
font-family: "unica one", sans-serif;
color: #ffffff;
margin-bottom: 0px;
}
I removed the class âcolor-whiteâ. Is that okay?
Thanks!
Hello @guyv ,
Try to use media screen on the css for the vertical align on the logo:
@media screen and (min-width:768px) {
.gridâtable>.grid__item {
vertical-align: top;
}
}
You can see if you want to change the screen from 992px, but that would be from tablet to desktop.
Perfect! Thank you so much for your help. I really appreciate it.
Hi! Please can you assist with one more thing. Iâve noticed that the search and cart icons in my sticky navigation bar are vertically aligned top instead of center (see screenshot below). I believe itâs because of the code below which was applied to my header logo.
Is there a way to change the below code so that it only applies to my header logo and no other elements?
Thanks!
@media screen and (min-width:750px) {
.grid--table>.grid__item {
vertical-align: top;
}
}
Hello @guyv ,
Sure, can you go into the header.liquid. Find the the logo, and look for his parent div class:
class=âgrid__item smallâone-half medium-upâtwo-thirds smallâtext-centerâ
and apply new class like this:
class=âgrid__item smallâone-half medium-upâtwo-thirds smallâtext-center logo-leftâ
And then change this:
@media screen and (min-width:750px) {
.logo-left { vertical-align: top; }
}
Hope it is clear.
Thanks a lot! At first it didnât work but I added â!Importantâ and then it worked.