Page 1 of 1
What is the purpose of the wb in HTML, etc...
Posted: Wed Sep 25, 2024 9:38 pm
by Mary Abigail
Hi
just wondering... could someone tell me what's the purpose of the
wb on the html code of each WWB object, like layout grids, buttons, css classes, etc?
Let me show an example... if i want to edit the code later or pass the code to another coworker for instance... does he/she have to put the
wb on each WWB object? or will it stop working? there should be an option in WWB to remove that part of the code i suppose or am i wrong? please clarify me
thanks in advance!
Re: What is the purpose of the wb in HTML, etc...
Posted: Wed Sep 25, 2024 10:46 pm
by BaconFries
From the sensei or senseis himself..
Pablo wrote: ↑Fri Oct 06, 2023 11:16 am
No, it is not possible to change the wb_prefix.
The prefix is used to identify div wrappers which control the positioning and sizing behavior of elements.
Not only is this used internally, but also by (third party) extensions. So, changing the prefix could break the functionality of scripts and CSS.
To answer from myself there is no option to remove and why would you want to. Please note WB is not a HTML Editor it is a HTML Generator this means no code exists till you publish. And any code changes made manually externally in the HTML will get overwritten if opened again in the software
making it pointless to do so unless you never plan to open again in the software. Another issue is making changes can break the layout structure of the html example of this marking changes to the likes of images there position may move or text may move over other text if extra lines are added. So generally all changes should be made in the software to ensure nothing breaks.
Re: What is the purpose of the wb in HTML, etc...
Posted: Wed Sep 25, 2024 10:56 pm
by crispy68
Many times the wb prefix is added when there is an additional container/div needed/added for particular objects.
I know Pablo can weigh in on this in more detail but you can't remove it as it is needed to make the code work.
Re: What is the purpose of the wb in HTML, etc...
Posted: Wed Sep 25, 2024 11:22 pm
by Mary Abigail
I got it! thanks!