Archived topic
How to replace existing CSS class in bulk
6 replies · Started by marc on December 2, 2021
Hey guys,
I'd like to know if there is a way to change in bulk existing CSS classes on my site.
I used a specific word for a CSS class in the advanced tab -> additional CSS class , that I used for a global element (which I added to most of my pages one by one and then converted to block) and I'd like to replace that word/class.
Is there a way to do it in bulk? I would hate to have to go and replace it on every pages (several times per pages).
Thanks a lot for your help.
Marc
Just to be more specific, I want to replace this existing CSS because it actually means a word and I don't want it to appear several time on the source code of the page.
Hi there,
i think you will need to do a search and replace in your databases post content tables.... if you're concerned that word will be crawled as content, then don't be as its part of the markup.
Thanks David. I guess better search and replace should do the trick then.
Yeah that was my concern indeed.
Search and Replace 'should' do.
But it won't be crawled so maybe best to leave it alone :)
I did it yesterday, worked like a charmed :) thanks for your help David (feel free to close this ticket)
Glad to hear that!!!