Adding or editing Class tags
Author: D. Nicholson
Visited 1531,
Followers 1,
Shared 0
Is there a way to change or edit the class tag for a given section right in website x5? I noticed that if I change or edit it else where, the next time that I upload changes from X5 it will overwrite those changes. I then have to edit the html all over again. This is a huge waste of time. Any ideas on this would be very helpful. One thing that I thought of was to enable html on that section and type it in there but I am not sure if that would work. Below is an example of what I am talking about:
<div class="text">Editable text here</div>
Thanks in advance!
Posted on the
Hello D. Nicholson,
It is not possible to change or edit the class given automatically by the program.
These are created automatically by the program and everytime you export the changes you made will be overwritten.
You can as alternative write your own css code and add it in the header section for this class. In this way the class code will be added to the div.
Many thanks!
Author
Thank you for your response! Can you give me an example of css code that would do this?
Hello D. Nicholson,
We do not give support to custom code since it does not depends on the program WebSite X5.
the suggestion I gave you refers to give to the same class the div uses an extra css code in your project. The code what you need to add depends on the css code you want to have on the div.
Many thanks!
Author
Ok, So what I am wanting to do is use a class to make certain parts of the site editable with tools like sitecake or cuchycms. Each section that I want to have editable must have a class of "cushycms" for it to work. Any idea how I can do this inside of X5 so that I dont have to redo this each time I make changes to the site with X5? For example:
<div class="text-inner cushycms" To edit this area, please login.</div>
or
<div class="cushycms" To edit this area, please login.</div>
Thanks for your help. Hopefully someone knows a way to achieve this somehow. Please give examples if possible.
Hello D. Nicholson,
Or you change the code of cushycms by adding the class used by the program or you use the html&widget object and you add the div code with the class in it.
In this way this div will be editable with cushycms but not inside the program.
Many thanks!