Change the style of a single menu item (background + color) - Pipeline 7.0.2

Hi,

I’d like to change the style of a link in our menu so that it has a black background and white writing (like a button). The link will be placed in the first position in the menu (taking the current place of our holiday boutique - see screenshot). It will be a link to our Black Friday sale.

The store theme is Pipeline (7.0.2).

https://sojaco.ca/en

Thanks in advance! :folded_hands:

2 Likes

Hey @marilouaudet

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Hi @marilouaudet

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
a[href="/en/pages/boutique-des-fetes"].navlink.navlink--toplevel {
    background: black;
    height: fit-content; 
    color: white; 
}

.menu__item.child {
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

1 Like

It worked well! Thanks a lot :slightly_smiling_face: