WP 5.0. breaks page builder. See fix here

Okay
  Public Ticket #1758924
advanced slider is limited to 6 slides
Open

Comments

  • hoobtron started the conversation

    How can I add slides to the advanced slider?!

    I set the  items number in Carousel options to 9, but nothing changes...

    :-(

  •  295
    Gabriel replied

    Hi, yes, unfortunately advanced slider is limited to 6 slides. Carousel options refers to the number of items you have on a slide in carousel mode.

  • hoobtron replied

    not really satisfying :-/

    Where do I find the php source to tweak it?

  •  295
    Gabriel replied

    There are a couple files that need to be changed:

    wp-content\plugins\hybrid-composer\components\containers.php line 131

    wp-content\plugins\hybrid-composer\admin\components\containers.php line 318

    Add panels to match your slide number. This is what you need to duplicate:

    <div class="panel">
                    <div data-hc-setting="content_6" data-hc-id="main_content_6" data-hc-container="repeater" class="row">
                        <div class="clear"></div>
                        <div class="hc-add-component"><i class="icon-plus-add-2"></i></div>
                    </div>
                    <div class="upload-box upload-row full-input">
                        <span class="close-button"></span>
                        <div class="upload-container">
                            <div data-hc-setting="image_6" data-hc-component="upload" data-upload-link="" data-upload-height="" data-upload-width="" class="upload-btn"></div>
                        </div>
                    </div>
    </div>

    Change _6 to slide number

    Also update this right after the panels:

    <ul class="nav nav-tabs">
                    <li class="active"><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">4</a></li>
                    <li><a href="#">5</a></li>
                    <li><a href="#">6</a></li>
    </ul>

    Let me know if it's working. I can send you the edited files if needed.

  • hoobtron replied

    I tried this now (to get 9 slides) and succeeded only half:

    - in ..\..\containers I let the for loop count to < 10

    - in ..\admin\..\containers I added 3 panels and 3 nav-tabs (with increasing indexes)

    Now, if I add the adv-slider in composer, it shows 9 tabs to add content... BUT, if I add content and see the results, it generates only the slides container:

    <ul class="slides">
    </ul>

    So, there must be another thing to change... any idea?

  •  295
    Gabriel replied

    Tested on my end and it works fine.

    There are 3 indexes you need to update here, maybe this was missing?

    <div class="panel">
                    <div data-hc-setting="content_6" data-hc-id="main_content_6" data-hc-container="repeater" class="row">
                        <div class="clear"></div>
                        <div class="hc-add-component"><i class="icon-plus-add-2"></i></div>
                    </div>
                    <div class="upload-box upload-row full-input">
                        <span class="close-button"></span>
                        <div class="upload-container">
                            <div data-hc-setting="image_6" data-hc-component="upload" data-upload-link="" data-upload-height="" data-upload-width="" class="upload-btn"></div>
                        </div>
                    </div>
    </div>


    Nothing else to update.

    Try to disable / enable hybrid composer, clear browser cache, to make sure changes are loaded.