Hi,
I couldn’t find on the tutorial or in the forum the way to keep an EXTERNAL css file, as I did with my previous theme (Atahualpa, extremely flexible). I do not want to keep my css code INSIDE the theme.
How and where can I tell Newspaper to use an external CSS file? (I have made a child Newspaper).
In my previous theme, I used the instruction:
<link rel=”stylesheet” type=”text/css” media=”all” href=”/wp-content/themes/atahualpa_child/migueldimase.css” />
Thanks in advance
Hi,
The child theme provided with the theme includes by default a stylesheet and functions file. CSS code you enter in the child theme stylesheet will be loaded, no need to do anything else than activate the child theme
– https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks
Yes, I know, but even having a child, I want to keep a css file outside the theme (migueldimase.css) because the edition is much faster, I can use my favorite editor (Notepadd++), etc. That’s why I asked you how can I do that?
You could queue another stylesheet if that is required, try as suggested in these topics
– https://wpsites.net/wordpress-themes/second-style-sheet-theme/
– https://stackoverflow.com/questions/24742016/how-to-include-multiple-stylesheets-with-wp-enqueue-style-using-wordpress
– https://developer.wordpress.org/themes/basics/including-css-javascript/
– https://www.quora.com/How-do-I-add-multiple-CSS-style-sheets-in-your-Wordpress-Child-Theme
– https://code.tutsplus.com/tutorials/loading-css-into-wordpress-the-right-way–cms-20402
Because it could be useful for someone else and as a kind of clausure, after reading all your references I want you to know that I choose to work with the child style.css file and Notepadd++, copying styles as needed from my “historic” migueldimase.css file, instead of queueing it (to prevent performance issues, etc.)
What I mainly wanted was to be able to use an external editor AND an insurance against the possibility that an upgrade or some malfunction stepped on my custom styles, using a file that “did not belong” to the theme.
Thanks again for your assistance, Simion.