RLM Remove redundant CSS class names...

User 2680560 Photo


Registered User
11 posts

I'm well into building our new site using RLM. I have created a number of class names / rules that have since become redundant and are getting in the way. I should like to remove them. Does anyone have suggestions as to how to 'clean up' these redundant classes.

Thanks

Richard C
User 187934 Photo


Senior Advisor
18,768 posts
Online Now

Remove them in your RLM project and reexport it.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
https://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
https://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2680560 Photo


Registered User
11 posts

Thanks Eric.

I've tried to work out how to do that with no success so far. Can you tell me how to remove them please.

Thanks

Richard C
User 187934 Photo


Senior Advisor
18,768 posts
Online Now

For now go to each element that has that class and click on the properties tab. Then backspace the class out inside the Class input on the right hand side near the top. It would be nice to be able to remove an entire class from a project without going to each element.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
https://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
https://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2680560 Photo


Registered User
11 posts

Thanks again Eric.

The problem is the redundant classes are no longer assigned to an element. As I have progressed in the page development I have created and assigned new and more appropriate classes.

Perhaps the only answer is to edit the stylesheet after exporting which I think could be long and laborious!

Richard C

PS - love the lab - we have 4 and as someone said to me recently - "the more people I meet the more I love my dog!"




User 187934 Photo


Senior Advisor
18,768 posts
Online Now

So your saying that old unused classes are still being applied to the style sheet even though your not using them on any of your pages?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
https://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
https://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 271657 Photo


Administrator
3,816 posts

There are many tools to do this for you. They scan your live site, so not the RLMP files.
Firefox add on:
https://addons.mozilla.org/en-US/firefo … selectors/
In Chrome:
http://blackbe.lt/removing-unused-css-s … rome-tool/
Stand-alone program:
https://github.com/geuis/helium-css
If you're into preprocessors:
http://addyosmani.com/blog/removing-unused-css/
There are many more out there, some paid, some free. Finding what best suits you is the challenge.:)
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 2680560 Photo


Registered User
11 posts

Eric

Sorry for delay in replying. Redundant class name are appearing in the drop down box in the class section of the properties panel. Having gone through quite a learning curve on rlm I have created classes that are no longer needed. I am assuming they will be exported to the css stylesheet when I publish or export the site. If unused classes are ignored during the compilation then that's fine. I am concerned that if they end up being included then it will add to the bloat which of course we should try to avoid.

Thanks

Richard C
User 2680560 Photo


Registered User
11 posts

Paintbrush - thanks, I will look at those.
User 187934 Photo


Senior Advisor
18,768 posts
Online Now

So you haven't exported and checked?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
https://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
https://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.