What I mean by this is to add an option to output the text with no tag at all. Right now, unless I missed some setting, you can’t do that. The best you can do with the Basic Text is a span or div tag, you can use the Code element but IMO that’s the worst way to do it.
This is useful for something like turning a block into a paragraph tag, have a basic text with a span tag to style it differently inside that block and add another basic text with no tag at all instead of also adding a span/div tag to it which will serve no purpose at all in this scenario.
[ <p> Block ]
[ Basic Text ] Basic text with no tag at all [ Basic Text ]
[ <span> Basic Text ]text to style differently[ </span> Basic Text ]
[ Basic Text ] another basic text with no tag.[ Basic Text ]
[ </p> Block ]
I hope I illustrated it clearly. I’m sure there are other uses for this, thank you.
Hi schubertz,
I don’t quite understand, since you can already set the p-tag for the basic text element (also as a default in theme styles), which would then look like this:
<p class="brxe-text-basic">
Just some text...
<span>Text in a span</span>
Just some more text...
</p>
So you don’t need to add four elements, but instead only one
The issue is not that you can’t do it within the p tag, the issue is doing all that in the Basic Text element is really inefficient IMO.
First, the text box is already very constrained to write something more than a couple sentences. Then you add the span tag into that which you have to write both the opening and closing tags, the class attribute, and finally the class name itself. All of which adds to the length of the whole thing. And that’s just for one span class.
Second, IMO it’s hassle to maintain. Just changing the class name you will have to parse the text before you can change the class name. Again imagine having more than a couple sentences there and a couple class names to change inside that text box.
Third, classes written inside the Basic Text element can not be styled using the element settings. You have to style it in the style sheet or in the Custom CSS code which is ok for those us who are familiar with writing CSS code but not for those who are not.
Fourth, this is related to the second issue, class names written inside of the text box are not saved in the Class Manager. If it can be saved there then the second issue is pretty much addressed.
Fifth, this one is related to the example you have provided. Formatting the writing like that inside the text will make it easier to parse the spans and change the class names but it’s not possible to write it like that. The moment you press enter it will insert a line break tag so it will break the output.
Some of these issues can be solved if the text box has same the full screen option of the Custom CSS panel but some of the issues will still remain. Doing it the way that I did will add some more elements in the structure area but it also adds flexibility.
Sorry for the long reply, I hope I sufficiently conveyed how having an option to choose no tag at all for the Basic Text will be an improvement. Thank you.