Hello,
I added a class to certain columns and found that two days later the css changed because the div class you have on it changed. how can I avoid this? If I just write the css with my class alone, it doesn’t work. I have to add the entire element that includes your classes. Please see attached.
Hi Jennine,
The Pro builder assigns a class to each the element on the page which might change at some point so it would be best to avoid targeting elements using the dynamic classes assigned to them.
Instead of writing the code as:
.e3888-38.x-col.non-legal-left-col {
text-align: center;
padding: 0;
}
change it to::
.x-col.non-legal-left-col {
text-align: center;
padding: 0;
}
This is the ideal way if you are adding the code in the Global CSS section of the Wordpress’ Additional CSS panel.
You might also want to check out the Element CSS feature if you want to be able to target the element using the dynamic class assigned to them.
Hope this helps.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.