How to left-align text in image-with-text section in Modular theme?

Hi,

I would like to left-align the text of the image-with-text section in the Modular theme (but only on specific pages/for a specific template).

Unfortunately, I cannot find a variable that defines how the text is aligned in this section/liquid file. Do you know where it is? (FYI: My coding knowledge is very limited).

Thanks a lot!

hi @Tim_I2P

This is PageFly - Free Landing Page Builder.

This can be achieve by using custom css code which more easier for you. Please help me by share your site URL and password if password protected. I will check out the issue and provide you a solution here.

Hope this helps.

Best regards,

PageFly

Hi @Tim_I2P ,

Go to Assets > theme.css and paste this at the bottom of the file:

.gallery-content-inner {
    text-align: left !important;
}

Hope it helps!

Thanks @LitCommerce
This actually does what’s needed, but on every page. Is it possible to restrict it only to one page?

Hi @Tim_I2P ,

Which page do you want to restrict? Please send me the page link, I will check it.

Hi @In2places

This is PageFly - Advanced Page Builder. I would love to give you some recommendations

if you want to set CSS for some pages then you can try the following way

Go to Online Store->Theme->Edit code theme.liquid paste my code before element

{% if handle contains ‘handle page’ %}

…css

{%endif%}

Example

{% if handle contains ‘frontpage’ %}

.gallery-content-inner { text-align: left !important; }

{%endif%}

Best Regards;

PageFly