

I therefore do not include any Google Fonts that are also offered as CDN, but store them locally. From Google’s PageSpeed point of view, however, this is an additional request that should be saved in order to reduce the overall loading time. Of course it means that CDN has an advantage, because the browser may already have these files in the cache. However, one note from my personal point of view: for the best possible performance of a theme, it should not integrate external files.
ENQUEUE BOOTSTRAP WORDPRESS HOW TO
You should be able to find out more in the developer tools of your browser.īy the way, here is a description of how to integrate current Bootstrap CDNs: From the docs: In the event a child theme is being used, the parent theme directory URI will be returned You probably want getstylesheetdirectoryuri. However, I have a guess: if you are working locally, you might not be using an SSL certificate? If so, your browser could block access to external servers whose URLs are accessed via SSL, which is why it doesn’t work. 1 gettemplatedirectoryuri always returns the parent theme's URI. Are the URLs not even included in the source code output or are only the URLs apparently not loaded? There is also no precise indication of what “does not work”. Unfortunately, you did not share the problematic source code, so it is difficult to judge what might be wrong with it. This topic was modified 1 year, 1 month ago by marie98. I’m at my wits end and would appreciate any help I can get.

When trying to use one of the new CDN links on the Bootstrap page or the respective local files it stops working again. I have no idea what I’ve been doing wrong. Using other themes that use Bootstrap always worked immediately. This is the ONLY way it has worked so far. But the only way it works is with an old MaxCDN link for an old Bootstrap version.

After searching tons of forums and trying multiple ways of enqueuing styles specifically Bootstrap I finally found a working solution. I’ve been trying to get my own WordPress theme to work for hours now (local xampp server, latest WordPress version, new and untouched installation).
