Extra Classes Parameter Ignored

SOLVE
tstrack
Contributor | Platinum Partner

When I add the extra_classes parameter to a module inside of a Flexible Column it's ignored.

{% widget_container "main_content_wrapper" %}
    {% image "offer_image" label="Offer Image", alt="Offer Image", src="//placehold.it/768x240", extra_classes="mb-30" %}
{% end_widget_container %}

It works fine outside of the Flexible Column.

{% image "offer_image" label="Offer Image", alt="Offer Image", src="//placehold.it/768x240", extra_classes="mb-30" %}

Any ideas as to why? Is it not possible?

0 Upvotes
1 Accepted solution

Accepted Solutions
DaniellePeters
Solution
Top Contributor

Since it's a flexible column, anything that you add on the template level is just a blueprint and can be removed and replaced with some other module on the page editor level. You cannot add classes to modules within flexible columns since they may or may not actually make it to the live page.

 

View solution in original post

3 Replies 3
DaniellePeters
Solution
Top Contributor

Since it's a flexible column, anything that you add on the template level is just a blueprint and can be removed and replaced with some other module on the page editor level. You cannot add classes to modules within flexible columns since they may or may not actually make it to the live page.

 

View solution in original post

tstrack
Contributor | Platinum Partner

That makes sense. Thanks for the clarification!

0 Upvotes
adriancblack
Participant | Partner

Still, let that be my problem, i mean the developers problem. I need to a) stop the weapper from rendering on the live site or b) an option to add extra class regardless if inside flexible column or not.
Becase of this i now have to write a buch of javascript to inject/unwrap when i coud've literaly be done with it wit just 2 css properties. literaly 2 properties. Unaccepted solution

0 Upvotes