Tagged: removing CSS
June 16, 2015 at 4:18 pm #156442
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!
June 16, 2015 at 4:32 pm #156444Erik D. SlaterMemberJune 16, 2015 at 4:37 pm #156445
Kinda 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.
July 6, 2015 at 6:02 pm #158587GandtMember
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?
GJuly 6, 2015 at 6:18 pm #158590
Thanks for the reminder!
I spent a feature request to MacRabbit makers of 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.
July 6, 2015 at 6:27 pm #158592GandtMember
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.
GAugust 4, 2015 at 10:58 am #161394
August 4, 2015 at 11:36 am #161397tussleMember
If 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).
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 #161461
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.
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.