We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Highlight a specific words in multicolumn heading

Highlight a specific words in multicolumn heading

soomin
Tourist
14 0 1

Hello,

I am trying to add a CSS code to the multicolumn heading so I can highlight a specific word or words. This is what I have so far. Can you tell me where I can put the css code. This is the output that I wanted to produce. I tried it, and it worked, but I am not sure where to put it. I have tried it in the theme.liquid file and base.css. 


background: linear-gradient(

        to bottom,

        transparent 0%,

        transparent 55%,

        #e38cba 55%,

        #e38cba 55%

      );

Screenshot 2024-07-15 at 5.52.58 PM.jpg

Screenshot 2024-07-15 at 5.47.35 PM.jpg

Reply 1 (1)

Small_Task_Help
Shopify Partner
1144 55 112

Hi,

 

Modifications in CSS and HTML structure can help

 

Example of CSS

.multicolumn-heading {
    /* Set up styles for multicolumn layout */
    column-count: 2; /* Example: Split into two columns */
    column-gap: 20px; /* Example: Gap between columns */

    /* Style for the heading */
    h2 {
        font-size: 24px; /* Example: Adjust font size */
        line-height: 1.5; /* Example: Adjust line height */
    }

    /* Style for highlighted words */
    h2 .highlight {
        color: #ff0000; /* Example: Highlight color */
        font-weight: bold; /* Example: Highlight font weight */
        /* Add additional styles as needed */
    }
}
To Get Shopify Experts Help, Click Here or E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Developers India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad