I have spent a couple of hours combing through the University and related forum, blog posts, etc. I cannot find a solution to my issue.
I have setup a style guide page to edit the default style of my CMS collection. I set the classes to my Rich Text Element. When I go to link it to the CMS collection, it does not apply the classes. From what I understand, the issue is that I need to change the formatting for HTML tags for the site WHEN NESTED IN a cms collection. However, when I am on my style guide page, and I go to change the HTML tag and search for the option to nest it, this option is no where to be found. How does one do this? Is there a button I am missing somewhere? Is my logic off? HELP!
I must be nuts. Not only does doing whatâs outlined in this video fail to surface the âwhen nested insideâ option, Iâve literally never seen it appear. Has it been removed from Webflow? How do I target specific elements or classes based on their parent?
Yep itâs not obvious until you understand that it needs a context for the feature to make sense.
You see it when you have;
Any richtext element that is NOT bound to the CMS
Where the richtext element has a class
And you select an element inside of that richtext element, e.g. a paragraph, or an H2
And then in the class selector you choose e.g. âAll H2âsâ
In that configuration, youâll be prompted to be able to style a specific element type specially within rich text blocks with that class only.
This should help-
Outside of this elements-within-richtext scenario, Webflowâs styling system doesnât expose any way to style things contextually by nested relationships.
Iâve stumbled across this thread as Iâm going mad too.
Iâve built 400ish Webflow projects, but for some reason the âWhen nested inâ feature is not there!
Richtext element is given a class âfooter-textâ. I highlight a H2 heading or a hyperlink, and try to style âwhen nested in footer-textâ and its 100% not there!
Iâve done this hundreds of times before. Honestly, Webflow is getting more and more frustrating.
I had the exact same problem as you guys. Now I found what was the problem for me: The option simply does not exist for rich text elements within components. I unlinked my component, styled the elements using the âwhen nested inâ feature and then created the component again