Community Forums › Forums › Archived Forums › Design Tips and Tricks › Thinning down the CSS
Tagged: removing CSS
- This topic has 8 replies, 4 voices, and was last updated 9 years, 1 month ago by paaljoachim.
-
AuthorPosts
-
June 16, 2015 at 4:18 pm #156442paaljoachimMember
Hey
Downloading any Child theme it contains a lot of CSS.
In relation to the amount of CSS I will just adjust a small part.
What can be deleted in a safe way without having it bite me in the behind at a later stage?I use Insepect Element to make temp adjustments and then go into the CSS stylesheet to change the CSS.
Any good advice on this matter?
Have a great day!
I design, instruct, help people to understand WordPress through my tutorials as well as create web sites and hold classes where i teach WordPress and Adobe software. easywebdesigntutorials.com
June 16, 2015 at 4:32 pm #156444Erik D. SlaterMemberI think you are creating more work for yourself there.
You are using a lot more CSS than you realize. You will likely get a bigger "bite in the behind" if you start to pare down things down at this point 🙂
My advice is to leave it alone 🙂
Erik D. Slater: Digital Platform Consultant • LinkedInJune 16, 2015 at 4:37 pm #156445paaljoachimMemberKinda thought so....
I just do not like having such a long file. Scrolling up and down or searching in the file in relation to what I need to change.
I have earlier split it up into smaller CSS files but have lately just left it alone.
I design, instruct, help people to understand WordPress through my tutorials as well as create web sites and hold classes where i teach WordPress and Adobe software. easywebdesigntutorials.com
July 6, 2015 at 6:02 pm #158587GandtMemberPaaljoachim
The 'proper' way to go about this goes hand in hand with your code-editor.
Most decent code editors allow you to collapse blocks of code, which makesmoving around much easier.
What code/text-editor are you using?G
July 6, 2015 at 6:18 pm #158590paaljoachimMemberHey Gandt
Thanks for the reminder!
I spent a feature request to MacRabbit makers of Espresso.
http://macrabbit.com/espresso/As Espresso have a limited collapsing of code. It would be nice to select the section of code that I want to collapse and then just hide it.
I design, instruct, help people to understand WordPress through my tutorials as well as create web sites and hold classes where i teach WordPress and Adobe software. easywebdesigntutorials.com
July 6, 2015 at 6:27 pm #158592GandtMemberPaaljoachim
I then suggest you give sublime text a try. They do allow you to select+collapse text. Even dreamweaver does it too. I was unable to google an equivalent function for Espresso.
G
August 4, 2015 at 10:58 am #161394paaljoachimMemberThanks Gandt!
I design, instruct, help people to understand WordPress through my tutorials as well as create web sites and hold classes where i teach WordPress and Adobe software. easywebdesigntutorials.com
August 4, 2015 at 11:36 am #161397tussleMemberIf your issue is filtering through a lot of code you might want to use a plugin like this ( if much of your code is only for specific pages).
https://wordpress.org/plugins/page-specific-stylesheets/
You can also use a custom css add on for changes - so it's like having 2 stylesheets - you only refer to the one you need.
August 5, 2015 at 12:43 am #161461paaljoachimMemberHey Tussle
That is Interesting I will need to check more into this.
Much of the stylesheet code is generel though but it is interesting knowing about this plugin.
I design, instruct, help people to understand WordPress through my tutorials as well as create web sites and hold classes where i teach WordPress and Adobe software. easywebdesigntutorials.com
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.