Title: Add Bootstrap class
Last modified: March 19, 2022

---

# Add Bootstrap class

 *  Resolved [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/)
 * (@uwejacobs)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/add-bootstrap-class/)
 * Activating “Add Bootstrap class” fails with the error message “The results could
   not be loaded”. The developer tools console shows a 404 (Not found) for [https://<mydomain>/wp-json/areoi/bootstrap-classes?_type=query](https://<mydomain>/wp-json/areoi/bootstrap-classes?_type=query).
   Is there something missing or is the link wrong?
 * I really like your plugin. Nice work!
    -  This topic was modified 4 years, 2 months ago by [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [all_bootstrap_blocks](https://wordpress.org/support/users/areoimiles/)
 * (@areoimiles)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/add-bootstrap-class/#post-15476114)
 * Hi [@uwejacobs](https://wordpress.org/support/users/uwejacobs/) thanks for reaching
   out. Glad to hear you like the plugin!
 * I’m struggling to replicate the issue but I have done a bit of digging and the
   issue may be related to your permalink structure / rewrites. When you get a second
   could you login to your WordPress installation then visit [https://<mydomain>/index.php/wp-json/areoi/bootstrap-classes?_type=query](https://<mydomain>/index.php/wp-json/areoi/bootstrap-classes?_type=query)(
   notice the index.php in the url) and see if that returns the expected json?
 * If that works then it may just be a case of updating your permalinks under Settings
   > Permalinks. There is some detail about this here [https://stackoverflow.com/questions/34670533/wordpress-rest-api-wp-api-404-error-cannot-access-the-wordpress-rest-api](https://stackoverflow.com/questions/34670533/wordpress-rest-api-wp-api-404-error-cannot-access-the-wordpress-rest-api)
 * If the above doesn’t work, could you try visiting [https://<mydomain>/wp-json/wp/v2/pages](https://<mydomain>/wp-json/wp/v2/pages)
   to double check that you can access other REST API resources. This should return
   all of the pages in json format. If you don’t see the json then the issue may
   be something to do with your setup.
 * If the REST API is working for other resources but the above doesn’t fix your
   issue, please let me know and I will do some further digging.
 * Thanks
    Miles
 *  Thread Starter [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/)
 * (@uwejacobs)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/add-bootstrap-class/#post-15477725)
 * Hi Miles,
 * Thanks for your quick reply. I believe I figured out what’s going on here. My
   installations are in subdirectories but the /wp-json/ URL doesn’t include the
   subdirectory.
 * When I changed line 267 in assets/js/areoi.js to
 *  url: window.wpApiSettings.root + ‘areoi/bootstrap-classes’,
 * then the bootstrap class list window populated.
 * Regards,
    Uwe
 *  Plugin Author [all_bootstrap_blocks](https://wordpress.org/support/users/areoimiles/)
 * (@areoimiles)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/add-bootstrap-class/#post-15478307)
 * Hi [@uwejacobs](https://wordpress.org/support/users/uwejacobs/),
 * Thanks for taking the time to look into this one! I don’t think I would have 
   spotted that, so much appreciated. I will get it updated today and drop you a
   message once the new release is available.
 * Thanks again,
    Miles
 *  Plugin Author [all_bootstrap_blocks](https://wordpress.org/support/users/areoimiles/)
 * (@areoimiles)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/add-bootstrap-class/#post-15479048)
 * Hi [@uwejacobs](https://wordpress.org/support/users/uwejacobs/),
 * I have released a new update (version 1.1.1) which includes the fix you suggested.
   Thanks again for your help on this one! I’m going to mark this issue as resolved
   but if you need anything else don’t hesitate to get back in touch.
 * Cheers
    Miles
 * P.S: if you like our plugin and are happy with the support we have provided, 
   we would really appreciate it if you could take a few seconds to leave us a positive
   review.
    [https://wordpress.org/support/plugin/all-bootstrap-blocks/reviews/#new-post](https://wordpress.org/support/plugin/all-bootstrap-blocks/reviews/#new-post)
 *  Thread Starter [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/)
 * (@uwejacobs)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/add-bootstrap-class/#post-15479476)
 * Hi Miles,
 * I installed your fix and its working. Thanks for the quick turnaround.
 * I’m the author of the “Complete Bootstrap 4 Shortcodes” plugin. With Bootstrap
   5 now gaining some traction, I pondered what to do with it. Make a copy and adjust
   to Bootstrap 5? Upgrade to Gutenberg blocks? That’s when I stumbled across your
   plugin. It has everything I envisioned and then some. So, going forward I am 
   going to use your plugin for all my WordPress installs.
    I will definitely leave
   feedback, just wanted to work with it for a little bit so I have actually something
   to write about. My native language is German and at some point, I will add a 
   German translation.
 *  Plugin Author [all_bootstrap_blocks](https://wordpress.org/support/users/areoimiles/)
 * (@areoimiles)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/add-bootstrap-class/#post-15486037)
 * Hi [@uwejacobs](https://wordpress.org/support/users/uwejacobs/). No problem at
   all and thanks again for your help on this. If you have any suggestions on how
   to improve the plugin don’t hesitate to send them across.
 * Miles

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Add Bootstrap class’ is closed to new replies.

 * ![](https://ps.w.org/all-bootstrap-blocks/assets/icon-256x256.gif?rev=2617070)
 * [All Bootstrap Blocks](https://wordpress.org/plugins/all-bootstrap-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-bootstrap-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-bootstrap-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/all-bootstrap-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-bootstrap-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-bootstrap-blocks/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [all_bootstrap_blocks](https://wordpress.org/support/users/areoimiles/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/add-bootstrap-class/#post-15486037)
 * Status: resolved