Menu transparent on Homepage Theme Craft 15.2.0
Topic summary
A user reports that the menu appears transparent on their homepage using the Craft 15.2.0 theme on scanditure.com.
Proposed Solutions:
Three community members offered CSS-based fixes:
-
Solution 1 & 2 (similar approaches): Add CSS code to the
theme.liquidfile before the</body>tag that targets the homepage template specifically and adjusts header/menu styling -
Solution 3: Add CSS code to the
base.cssfile targeting#menu-drawerwithbackground: transparent
One responder requested clarification on whether the issue involves the menu drawer specifically.
Status: Multiple solutions provided but no confirmation yet from the original poster on which approach resolved the issue or if the problem persists.
@GiudFabri123 Can you please share this page link?
@GiudFabri123 add this code to the theme.liquid file, before tag
{% if template.name == "index" %}
{% endif %}
Do you mean menu drawer? like this?
If it is, try this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “theme. Liquid” file. Find the tag and paste the code below before the tag.
{% if template.name == 'index' %}
{% endif %}
- And Save.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file
#menu-drawer {
background: transparent;
}
Best,
Daisy
