blogger CSS disappeared or can't find

Sometimes in blogger.com, when you try to edit CSS (Theme > Customize > Advanced > Add CSS), you find it missing!


This is usually a result of changes made to your Theme's HTML, such as adding a CSS file or a script.

However, you'll notice that nothing has changed on your site - so clearly your custom CSS is still there.

Whilst I'm not exactly sure what the cause is, my guess it that this is not a bug, but rather a symptom of design. Without being able to see code base of blogger, my guess is when you first select your theme, there an initialisation script that runs which instantiates a reference point for "add CSS" component. However, when you make custom changes to the HTML, this reference point is lost either due to it not being updated, or possibly - it is overwritten to be empty. 

How to fix

When you 'add CSS', blogger just appends it onto the theme's HTML page within the  <b:skin> tag.

So the fix is to grab it back!
(a bit hacky i know but it works)


STEP 1: navigate to Theme > ... > Edit HTML



STEP 2: Click into the code editor, then hit CTRL-F (or CMD-F) and search for </b:skin> 



STEP 3: Select all your custom CSS between }} and </b:skin>, then CUT it (CTRL/CMD-X).


Finaly return to add CSS and paste it back in.



Hopefully this won't happen too often as you won't be needing to edit HTML too much.

It's also useful to keep a backup copy of your CSS in a style sheet locally.

Hope that helps!



SNAPPED!

Comments

  1. The article was up to the point and described the information about education and learning. Thanks to blog author for wonderful and informative post. AA Meetings

    ReplyDelete
  2. Thanks for sharing this valuable post its very informative and very helpful apart from that if anyone looking for e accounting institute in delhi so Contact Here-+91-9311002620 Or Visit Website- https://www.htsindia.com/Courses/Tally/e-accounting-training-course

    ReplyDelete
  3. The best golf bag on the market are durable, lightweight and affordable, allowing you to focus on what’s really important: getting round your local course in fewer strokes than your opponents. There are a whole host of different golf bags on the market, designed to suit all ages, abilities and budgets. To help you cut through the noise, we’re here to give you the lowdown on the best that money can buy.

    ReplyDelete
  4. The first thing to remember is that teenage years are a phase in life where a lot of changes will happen and the transition from child to adult means that the type of clubs that you select now may be transitional but could become a longer-term fixture if you select wisely Golf Clubs For Ladies
    .

    ReplyDelete

Post a Comment

Popular posts from this blog

Append to a json file python

Setup Mailhog mail server on Ubuntu