• Resolved hectorasencio

    (@hectorasencio)


    Hi Meitar,

    I’m implementing support for Inline Google Spreadsheet Viewer on my custom theme and I getting some troubles with the responsive view, maybe you can help me to find the way to solve it.

    I have a template that renders several shortcodes in a tabbed container, all working like a charm, but on mobile view only the first one gets the plus buttons. The others just overflow the container. Despite I prefer the plus-button mode, it’s ok if it overflow but, if I use datatables_scroll_x="true" it breaks the thead on the other tables (not on the first one).

    Tab content is implemented like this:

    `
    <div class=”tabs-panel is-active” id=”panel1v”>
    <?php
    if ($actividad_1_contenido !== ”) { ?>
    <?php echo do_shortcode(‘[gdoc
    key=”‘ . $actividad_1_contenido . ‘”
    datatables_paging=”true”
    datatables_dom=”lfrtip”
    datatables_searching=”false”
    use_cache=”no”
    datatables_info=”false”
    datatables_ordering=”false”
    ]’); ?>
    <?php } ?>
    </div>
    <div class=”tabs-panel” id=”panel2v”>
    <?php
    if ($actividad_2_contenido !== ”) { ?>
    <?php echo do_shortcode(‘[gdoc
    key=”‘ . $actividad_2_contenido . ‘”
    datatables_paging=”true”
    datatables_dom=”lfrtip”
    datatables_searching=”false”
    use_cache=”no”
    datatables_info=”false”
    datatables_ordering=”false”
    ]’); ?>
    <?php } ?>
    </div>
    <div class=”tabs-panel” id=”panel3v”>
    <?php
    if ($actividad_3_contenido !== ”) { ?>
    <?php echo do_shortcode(‘[gdoc
    key=”‘ . $actividad_3_contenido . ‘”
    datatables_paging=”true”
    datatables_dom=”lfrtip”
    datatables_searching=”false”
    use_cache=”no”
    datatables_info=”false”
    datatables_ordering=”false”
    ]’); ?>
    <?php } ?>
    </div>

    `

    Could it be related to the theme?
    is-active CSS class thing?
    I’m missing something?

    Thanks for your time,
    Hector

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hectorasencio

    (@hectorasencio)

    Hi,

    I didn’t find the solution but a workaround; using class="no-responsive" and adding a little CSS to emulate datatables_scroll_x="true" behaviour, I lost this beautiful plus buttons but tables are scrollable and consistent.

    PD: sorry for duplicate, I don’t find how to edit posts…

    Plugin Author Meitar

    (@meitar)

    Most implementations of tab view containers are extremely poorly done and cause problems. See prior posts on this forum about that. Glad you found a workable solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Responsive mode only apears on first shortcode’ is closed to new replies.