Hello! I would like to make the last line of text a blue color. It is located inside of column inside of multicolumn section.
I can not change
style in css, because all of
s will be affected. Using last-child property also makes changes all over the store for the last-child element.
Any help here, please?
mics
February 21, 2023, 5:13pm
2
Add a class or ID to the paragraph you want to style:
Edit the section or page where the paragraph is located.
Select the paragraph you want to style.
Add a class or ID to the paragraph using the “Styles” or “Edit HTML” options.
Define the style for the class or ID in your CSS:
In your Shopify dashboard, go to Online Store > Themes > Edit code.
Open the theme.scss.liquid file or create a new one.
Add a CSS selector for the class or ID you added to the paragraph.
Define the style properties you want to apply to the paragraph, such as color, font-size, or text-decoration.
Here’s an example of how to add a class to the paragraph and define a custom style in CSS:
Edit the section or page where the paragraph is located.
Select the paragraph you want to style.
Add the class “blue-text” to the paragraph using the “Styles” or “Edit HTML” options.
In your Shopify dashboard, go to Online Store > Themes > Edit code.
Open the theme.scss.liquid file or create a new one.
Add the following code to define the style for the “blue-text” class:
css
.blue-text { color: blue; }
Thank you so much @mics but where exactly I find that HTML for homepage to edit? I have main theme.liquid file
mics
February 21, 2023, 5:44pm
4
This is bit technical but you can try inspect your home page and find the class set for that section go to the theme.liquid and press clt+ f and search for that class and add code there
Hello @artem_mi
To provide you with the most precise solution in this case, could you please share your page URL ( with pass if your store password is enabled )?
Thank you and hope to hear from you.
Best regards,
GemPages Support Team