In HubSpot themes, CSS files are typically stored in the theme's CSS folder. Ensure your style.css file is located in this folder.
However, double-check the path to your CSS file. It should be relative to the theme root directory. Also, you can create any page and share it with us.
I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member. Thanks!
I have created a theme with three pages home, about and contact the html of all three is showing but the css is not getting attached in them the code i sent you is from the base file The base file that collects all the pages I have
What other details do you need me to send you to correct this file
Hey, @MHussain8👋 Thanks for sharing your code. But you didn't tell the community much about what you're expecting to happen. Without seeing the page live or having more details, it's challenging for our community members to assist you.
I have some basic troubleshooting suggestions for you since we don't know what you've already tried on your own:
File Path: Ensure the path in {{ require_css(get_asset_url('../css/style.css')) }} is correct.
Caching: Add a query string to the URL to force a refresh — '?hsDebug=true&hsCacheBuster'
Check Console: Look for errors in the browser’s console indicating issues with loading the CSS file.
Inspect Elements: Use developer tools to verify if the styles are applied.