• Resolved Matt

    (@slammeddime)


    Here’s what my shortcode looks like:

    [slider interval="1000" controls="true" bullets="true" wrap="true"]
    [slide title="Strava" image="https://www.thefitcoder.net/wp-content/uploads/2015/10/strava.jpg" caption="Strava Caption" active="active"/]
    [slide title="Runkeeper" image="https://www.thefitcoder.net/wp-content/uploads/2015/10/runkeeper.jpg" caption="Run Keeper"/]
    [/slider]

    But the HTML that is spit out looks like:

    <div id="oscitas-slider-1" class="carousel ebs-carousel slide " data-ride="carousel" data-interval="1000" data-pause="" data-wrap="true">
    <ol class="carousel-indicators"></ol>
    <div class="carousel-inner " ></div>
    <a class="left carousel-control" href="#oscitas-slider-1" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left"></span>
      </a>
      <a class="right carousel-control" href="#oscitas-slider-1" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right"></span>
      </a></div>

    As you can see, the carousel-inner is missing all of the content.

    https://wordpress.org/plugins/easy-bootstrap-shortcodes/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Matt

    (@slammeddime)

    Looks like this might be an issue with something on my hosting provider, as I tested it locally and it worked fine. I’ll have to dig into it a little more.

    Thread Starter Matt

    (@slammeddime)

    The conflict is actually Jetpack – it has a ‘slide’ short code in it’s Shortcodes plugin. There is a filter (jetpack_shortcodes_to_include) to modify the shortcodes that jetpack will use, so it might be worthwhile to remove the presentations.php item from that array in this plugin to avoid conflicts. Or at least note it in the documentation.

    🙂

    Plugin Author osCitas Themes

    (@oscitas)

    Hi,

    To resolve this issue we have provided the option where you can set your own prefix for the shorcodes such as if you will set prefix to ebs_ then it will generate the slider shortcode as ebs_slide and will not conflict with any other shortcode.

    Thanks.

    Thread Starter Matt

    (@slammeddime)

    yeah, the issue with that is that I’d have to go back through now and edit all of the posts and pages that utilize this plugin otherwise it breaks those pages (unless I’m missing some code in your plugin that updates all instances of the shortcode when that option changes). I added my own filter for the jetpack shortcodes and removed the presentations item which works great. Hopefully this will help someone else in the future.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Slider shortcode doesn't display properly’ is closed to new replies.