Timeline for Custom theme – Bootstrap CSS not loading via wp_enqueue_style or otherwise
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 8, 2022 at 6:08 | vote | accept | Sylvester DeMouser | ||
Dec 8, 2022 at 6:07 | answer | added | Sylvester DeMouser | timeline score: -2 | |
Sep 20, 2022 at 3:33 | comment | added | Sylvester DeMouser | I see what the issue is. <link rel="<?php... instead of <link rel="stylesheet" href="<?php... As was in my header.php file. I too often trust the regex when updating multiple files after copy paste etc. Clearly, it was easy to overlook. Didn’t notice it when I did view source as described in o/p, for my eyes going straight to the URL’s (missing the attribute designation). Here, i witness my own embarrassment. Alas, the shame of it all! | |
Sep 19, 2022 at 9:28 | comment | added | Jacob Peattie |
If you can see link href in the source at all then wp_enqueue_style() is working. If fact, that’s the only thing it does. So if it’s done that and the URL is correct then the only issue can be the CSS. What makes you think it’s not applying? Are you sure the styles just aren’t being overwritten by another stylesheet?
|
|
S Sep 19, 2022 at 8:29 | review | First questions | |||
Oct 3, 2022 at 8:32 | |||||
S Sep 19, 2022 at 8:29 | history | asked | Sylvester DeMouser | CC BY-SA 4.0 |