Child theme – preffering style changes – css vs json
-
Hi,
I tried something else on my local website Mamp environment.
I made a child template with the plugin Create Block Theme. Another feature is that you can add fonts!! I always have liked 2014’s theme Lato font.
Did make a child the ‘old fashioned way’ It worked…but yeah, do it right if possible aye?I have a question what is more preffered. Change as much as possible styling in the json theme file? or is the style.css also ok. I can imagine that if you stick with the json file as much as possible that it would be positive for the loading times in the browser?
This works:
/* --- URL without underline --- */ a { text-decoration: none; } /* --- Navigation block without underline --- a:where(:not(.wp-block-navigation)) { text-decoration: none !important; }
Also works is to set all text-decoration to ‘none’ in the Json file.
But it more easier to change this in the style.css, just because it is familier to us. On the other hand it is fun to do something different because it is new and the outcome is/can be more positive in the long-term.Jeroen
- The topic ‘Child theme – preffering style changes – css vs json’ is closed to new replies.