Why Load Two Of The Same Style Sheets When Kirki Is Not Active
-
I have a quick question, my theme TotalPress is being reviewed right now and I had to do some correcting of issues.
I deactivated Kirki and then I looked at the page source and I noticed it loads the themes style sheet:
<link rel='stylesheet' id='totalpress-css' href='https://localhost/forge/wp-content/themes/totalpress/style.css?ver=1.0.14' type='text/css' media='all' />
and then it loads this style sheet right under it:
<link rel='stylesheet' id='totalpress_no-kirki-css' href='https://localhost/forge/wp-content/themes/totalpress/style.css' type='text/css' media='all' />
and then right after it loads this:
<style id='totalpress_no-kirki-inline-css' type='text/css'> .grid-container,.inside-top-sidebar,.inside-header,.top-bar,.inside-footer-widgets,.inside-footer{max-width:1200px;}body{color:#3f3f3f;font-family:Source Sans Pro;font-weight:400;font-size:17px;line-height:1.5;letter-spacing:0;text-transform:none;}a{color:#b02329;}a:hover,a:focus{color:#3f3f3f;}.site-branding{text-align:left;}.header-sidebar{text-align:right;}.inside-top-sidebar{text-align:right;} </style>
Curious as to why it loads two of the same stylesheet? I am using the fallback PHP Class
class-my-theme-kirki.php file
.Shouldn’t it just load the
_no-kirki-inline-css
along with the themes main stylesheet?
- The topic ‘Why Load Two Of The Same Style Sheets When Kirki Is Not Active’ is closed to new replies.