WordPress.org

Ready to get started?Download WordPress

Forums

Agnosia Bootstrap Carousel by AuSoft
[resolved] How to use plugin with roots theme (10 posts)

  1. kalikid023
    Member
    Posted 1 year ago #

    It seems the shortcode provided for your plugin is not working with roots. When I add it to a page with the IDs I just get a gallery of the images with those IDs not a carousel. Do you have any insight?

    http://wordpress.org/extend/plugins/agnosia-bootstrap-carousel/

  2. Andrés Villarreal
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, thanks for your comments!

    Can you provide an example of the shortcode you're using?

  3. kalikid023
    Member
    Posted 1 year ago #

    It's the same as one of your examples with my pic ids and name changed

    [gallery type="carousel" ids="8,9,10,11" name="topcarousel"]

  4. Andrés Villarreal
    Member
    Plugin Author

    Posted 1 year ago #

    OK, I took a look at Root's code, and the source of the issue is that they're using a modified [gallery] shortcode too, in order to display a gallery with their own styles. In a future version I should have to keep this in mind, but as of now, you can do a quick fix by pasting this code into the lib/custom.php file (or into functions.php) of your theme:

    remove_theme_support( 'bootstrap-gallery' );

    This will remove the usage of Root's modified [gallery] shortcode, so you will be able to use the carousel instead.

    Please let me know if this was of any help!

  5. kalikid023
    Member
    Posted 1 year ago #

    I tried adding:

    remove_theme_support( 'bootstrap-gallery' );

    to /lib/custom.php, functions.php, index.php, and inline on the page, and no luck. Thank you anyway, I guess I'll Have to setup a carousel another way.

  6. kalikid023
    Member
    Posted 1 year ago #

    I tried adding:

    remove_theme_support( 'bootstrap-gallery' );

    to /lib/custom.php, functions.php, index.php, and inline on the page, and no luck. Thank you anyway, I guess I'll Have to setup a carousel another way.

  7. kalikid023
    Member
    Posted 1 year ago #

    By that I mean I did each of those individually, not all at the same time. Just wanted to clarify.

  8. Andrés Villarreal
    Member
    Plugin Author

    Posted 1 year ago #

    That's strange. Are you using a recent version of Roots? Also, be sure that you're not using some other plugin that modifies the [gallery] shortcode on its own.

  9. kalikid023
    Member
    Posted 1 year ago #

    I just downloaded it yesterday from their site and installed it. The only plugin that I have installed thus far is yours, I'm setting up this site bit, by, bit and that is the first part.

  10. grandk8
    Member
    Posted 1 year ago #

    I thought this plugin would be a good one for the roots theme too, but ran into the same issue. Trying remove_theme_support( 'bootstrap-gallery' ); did not work in index.php, custom.php or function.php. I suspect it has to do with roots executes in a different order than different templates. But, adding remove_theme_support( 'bootstrap-gallery' ); in config.php or just commenting out theme_support( 'bootstrap-gallery' ); worked for me.

  11. Andrés Villarreal
    Member
    Plugin Author

    Posted 12 months ago #

    Hi everybody again. This issue has been resolved in version 0.3. Now the plugin is fully compatible with Roots Theme, without having to remove any theme support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.