• Hi there:

    First up, thank you for an amazing, adaptable, and clear theme!

    I changed some of our non-Wordpress, old-school HTML pages to Bootstrap and wanted a theme to match, and yours did the job brilliantly!

    I have a few questions. The first is our server is quite old, and we haven’t had a chance to move it to a new instance yet. Since loading the theme, the load has been quite heavy (averaging over 2). I suspect it’s loading the Javascript that’s doing it. While the theme comes with Bootstrap and Jquery, I wonder if there’s a way to link to the code at jquery.com and bootstrapcdn.com. I’m not a professional programmer so all I can gather is that it has something to do with functions.php and inc/enqueue.php—beyond that I daren’t touch a thing in case I mess this up.

    Sorry for the amateur question!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi-

    Typically your server/hosting will be the most important thing to optimize, by using some strong caching and maybe even a global CDN like Cloudflare. You can load Bootstrap’s JS from a CDN, but you’d probably see more gains by optimizing your entire hosting environment.

    That being said, if you want to modify the theme, we recommend reviewing the documentation and creating a child theme: https://docs.understrap.com/

    jQuery is provided by WordPress core, so you can replace that with a CDN, but other plugins might rely on it, so just be careful to test thoroughly.

    For understrap, you can copy and then override the understrap_scripts() function in your child theme, but be sure to include the correct CSS files because Understrap theme adds some extras to make sure Bootstrap plays nice with WordPress.

    You’ll want to also review the WordPress documentation for these functions:
    https://developer.www.ads-software.com/reference/functions/wp_dequeue_script/
    https://developer.www.ads-software.com/reference/functions/wp_enqueue_script/

    Thread Starter Jack Yan

    (@jack-yan)

    Thank you for your comprehensive reply and thank you again for a great theme. I think it’s a little beyond my knowledge. Sadly I can’t find any techs here who know how to optimize hosting—been looking for two years!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link to Bootstrap off-site?’ is closed to new replies.