Hello - I am just reviewing the default Exampla Theme that comes with Blocs (WP Extension), after purchasing Blocs (not yet sure if it fits my needs)
I saw in the source that several bloc- classes are added.
How can I quickly remove these? I would like a pure BS4 class management and no tertiary classes in the produced code.
I found only this thread Responsiveness problem but that actually does not end up showing how we can remove these classes.
I already figured out that the HTML comments and IDs can be changed (so for example from bloc-0 to my-div, etc) but couldnāt yet figure out how to remove the bloc-lg and other such Classes
Can you name a few of these classes? I want to determine if theyāre in use and what for.
Blocs has features I think to remove unused classes. Iām not sure if this is only for classes added manually by the user. But again we need to make sure these classes arenāt needed.
If the classes arenāt needed then you can certainly make a request to have them removed if itās possible. Itās not really a Bug. but you might want to get official support so you know whatās possible or not.
For example page-loading-blocs-notification, bloc, bloc-lg, bloc-no-padding-lg and so on and forth.
Also, there are custom HTML elements such as blocsnav, and so on.
For example the simple Exampla theme that comes with the app will already show a lot such classes and elements but I also see this in full scratch fresh projects.
Iāll check what this feature āremove linksā or clean links or how it is called does - I have seen it as well during first look.
Would really be cool if we would get pure clean BS4 HTML and no custom classes, elements and such from the app itself.
You would only be able to manually remove those after export via a code editor. There is no current way to do so or change names for output via he app itself. When removing them you would need to rework things yourself to keep any functionality which they provide.
Iāve been reading some of your posts and frustrations. Some of which may just be attributed to you not quite yet understanding certain Blocs features, settings and workflow of using a new app. With others it seems more relative to advanced expectations and that you are finding certain frustrations and limitations.
I think you will definitely find use in Blocs for sure. Though you may also get milage out of other tools like Bootstrap Studio or Pinegrow. Iām not adverting those apps over Blocs, each has their advantages and benefits. Based upon some of your posts / comments they might also prove beneficial as part of your overall workflow and desire for visual tooling.
Looking at the classes mentioned, you are correct that youād need to rewrite those features. If you canāt have any other classes I donāt see a work around for that.
I really do want to help, but I think what you are asking might be impossible if not simply impractical for Blocs.
Itās worth noting that Norm has done a great job of keeping the Blocs output minimal and clean. His bar is actually pretty high in comparisons. Building a GUI means some additional classes 99% of the time to be honest. The ones that donāt have that are simple drag and drop without most of Blocs capabilities.
Iām hard pressed to think of any projects Iāve worked on professionally that have such a requirement, thatās probably gonna matter in the end. If you really are within that percent that needs this, youāre going to find itās tough to get what Blocs offers and meet that restriction to be honest.
@smileBeda Like others have mentioned, youāll need to do this after export with a code editor. It doesnāt take much time and āfind and replaceā comes in very handy here.
Iāve used BSS, Pinegrow and Pingendo and Blocs does output the cleanest code. BSS, for example, outputs a ton of inline elementsā¦fun!
Keep working and growing with it and learning it. Having become a recent user myself, I can definitely understand the frustration, but it is definitely a tool worth learning.
This community forum and itās many talented folks are never at a loss to help out. You canāt put a price on that.
I believe both BSS & PInegrow directly resist having you assign a class before using their visual CSS tools. So thats where any inline CSS comes from if a user does not then use the proper features to prevent its presence. Neither app forces or requires you to leave the styles inline. I honestly donāt know why either BSS and Pinegrow donāt approach that aspect a bit differently as they certainly could.
With Blocs Class Editor you canāt really progress without first providing / assigning a class. But likewise certain limitations regarding editing source are present. Blocs sticks to its intentions to ensure its workflow ideal.
Agreed with everyone here, and thanks a lot for all your inputs and sorry the later reply, the forum does not let me reply more than one post each 24 hours or something like thatā¦
Thatās probably because youāre a new user. While I do not remember that when I was new, Iām sure itāll be gone after a certain time or number of post.