Page 1 of 1

override html code generated by web builder

Posted: Sun Nov 28, 2021 1:37 pm
by smile
Hello,

How can i override this css menu code (or any code for that matter):
<li role="menuitem" class="nav-item"><a class="nav-link" href="./products.html" target="_self">products</a>
to this code
<li role="menuitem" class="nav-item"><a class="nav-link withsubmenu" href="./products.html" target="_self">products</a>

Re: override html code generated by web builder

Posted: Sun Nov 28, 2021 1:53 pm
by Pablo
Sorry, that is not possible.
WYSIWYG Web Builder is not an HTML editor. The HTML does not exist, until you publish the page.

Re: override html code generated by web builder

Posted: Sun Nov 28, 2021 2:04 pm
by BaconFries
As already mentioned by Pablo WYSIWYG Web Builder is not a HTML Editor so it not possible to manually edit the HTML from within the software. The only way to edit the HTML is to open the source code externally with the likes of Notepad make the changes to it save and publish the page. Note you will need to repeat this if again if you reopen the project ,(.wbs) with the software again and save this is due to the HTML being overwritten. Also note that this cannot be made possible in any future updates to make it possible to edit the HTML as it only exists once you publish.

Re: override html code generated by web builder

Posted: Sun Nov 28, 2021 2:40 pm
by alan_sh
What you may be able to do is make a suggestion for an option for the circumstances where you may need it. So, the resultant html at publish time will be what you want
But you have to be very prescriptive and provide a good case and examples of where it will be needed.

Alan

Re: override html code generated by web builder

Posted: Tue Nov 30, 2021 11:04 pm
by smile
I hope that the CSS menu finally gets the option I need and this can be done.
viewtopic.php?f=28&t=90173&start=15

However the override html code generated by web builder is helpful in other scenarios. A list that would replace generated code to user code for a given page would be very nice.