I've added an eyebrow menu - but need help with alignment and adding a button

Solved

I've added an eyebrow menu - but need help with alignment and adding a button

valholden02
Shopify Partner
22 0 10

I've added a custom eyebrow menu to this Studio theme: https://financial-alchemy.myshopify.com/ 

 

Password: katie 

 

There are 3 things I can't figure out and would love advice!

1) Aligning the eyebrow menu with the search icon. IE: Having the final N in consultation right above the search icon. 
2) Making Request Consultation into a button. I am also ok to add this separately vs styling the 'last child' option. 

3) Reduce font size by about 25%. 

 

Here is the code I used for the eyebrow menu:

 

<div class="eyebrow">
{% for link in linklists.eyebrow-menu.links %}
<a class="header__menu-item list-menu__item link link--text focus-inset" href="{{ link.url }}">{{ link.title }}</a>
{% endfor %}
</div>
<style>
.eyebrow {
display: flex;
justify-content: right;
}
.eyebrow__link {
margin-right: 50px;
}
</style>

 

Thank you for your consideration / help! 

 

 

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
11973 2341 2520

This is an accepted solution.

Hi @valholden02 

You can do that by changing your code to this version.

 

<div class="eyebrow page-width">
{% for link in linklists.eyebrow-menu.links %}
<a class="header__menu-item list-menu__item link link--text focus-inset" href="{{ link.url }}">{{ link.title }}</a>
{% endfor %}
</div>
<style>
.eyebrow {
display: flex;
justify-content: right;
}
.eyebrow .list-menu__item { 
font-size: 1.2rem; 
}
.eyebrow .list-menu__item[href="/pages/contact"] {
    padding: 8px 20px;
    background-image: linear-gradient(164deg, rgba(188, 86, 49, 1), rgba(188, 86, 49, 1) 100%);
    border-radius: 30px;
    color: #ffffff !important;
    /* font-size: 15px !important; */
    text-decoration: none;
    cursor: pointer;
    text-shadow: none;
}
.eyebrow__link {
margin-right: 50px;
}
</style>

Screenshot 2025-02-24 at 09.43.54.png

 

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 7 (7)

Abdosamer
Shopify Partner
1040 188 225

Hi @valholden02 , Go to theme.liquid file and add the following code before the </body> tag :

<style>
@media(min-width:900px){

header.header.page-width{
  max-width:unset !important;
}
header.header.header--middle-left.header--mobile-center.page-width.header--has-menu.header--has-social{
  padding-right:0 !important

 }
}

.eyebrow a:last-child{
    background-color: #fff;
    color: #000;
    border-radius: 999px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.list-menu__item {
   
    font-size: 1.3rem !important;
}
</style>
Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work

Dan-From-Ryviu
Shopify Partner
11973 2341 2520

This is an accepted solution.

Hi @valholden02 

You can do that by changing your code to this version.

 

<div class="eyebrow page-width">
{% for link in linklists.eyebrow-menu.links %}
<a class="header__menu-item list-menu__item link link--text focus-inset" href="{{ link.url }}">{{ link.title }}</a>
{% endfor %}
</div>
<style>
.eyebrow {
display: flex;
justify-content: right;
}
.eyebrow .list-menu__item { 
font-size: 1.2rem; 
}
.eyebrow .list-menu__item[href="/pages/contact"] {
    padding: 8px 20px;
    background-image: linear-gradient(164deg, rgba(188, 86, 49, 1), rgba(188, 86, 49, 1) 100%);
    border-radius: 30px;
    color: #ffffff !important;
    /* font-size: 15px !important; */
    text-decoration: none;
    cursor: pointer;
    text-shadow: none;
}
.eyebrow__link {
margin-right: 50px;
}
</style>

Screenshot 2025-02-24 at 09.43.54.png

 

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

valholden02
Shopify Partner
22 0 10

This is fantastic. I didn't specify in my original note that I wished the button to fill the bar (IE: no green above / below) and your code did exactly that.

 

Thank you! "Coffee" sent. I'm very grateful! 


Dan-From-Ryviu
Shopify Partner
11973 2341 2520

Thanks and very welcome!

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

mageplaza-cs
Shopify Partner
551 46 85

@Hi @valholden02 ,

You often add the following CSS codes to the <style> card of the following Eyebrow Menu code to solve the above problem:

.eyebrow a:last-child{
    background-color: rgb(255 255 255);
    color: #000;
    border-radius: 100px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.list-menu__item {
    font-size: 1.1rem !important;
}

2025-02-24_09-57.png

Please let me know if it works as expected!

Best regards

 

Mageplaza | Top-Rated Shopify Agency | Trusted by 230,000+ worldwide merchants


If our suggestion works for you, please give it a Like or mark it as a Solution!


Should you have any questions or concerns, feel free to contact us via consultant@mageplaza.com

valholden02
Shopify Partner
22 0 10

Thank you so much for taking the time to answer! I went with another answer as the "solution" as it had subtle styling I liked. 

I hope your answer will be helpful for others who wish to do the same and prefer this style option! 

DaisyVo
Shopify Partner
4460 499 594

Hi @valholden02 

 

I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
2/ Search for "theme.liquid" file: https://prnt.sc/b6xveIKe-Rh2
3/ Open the file and search for </head> tag and add the following code above </head> tag: https://prnt.sc/KWtKYyZkDtYJ

 

Here is the code for Step 3:

 

{% style %}
.eyebrow {
    padding-inline: 6.5rem;
    padding-block: 10px;
}
.eyebrow * {
    font-size: 13px !important;
}
.eyebrow > a:last-child {
    background: #BC5631;
    border-radius: 50px;
}
{% endstyle %}

 

DaisyVo_0-1740368199840.png

 

Please let me know if it works. Thank you!

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution