Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cubecolour

    (@numeeja)

    These are not ‘WordPress Widgets’ – ie content managed through the WordPress admin -> appearance -> widgets are they?

    The widgets in your tabs seem to look OK for me, however I don’t know how they are supposed to display.

    How are they not loading correctly?
    Which browsers/devices have you have tried?
    Do they appear the same for all of browsers/devices you have tried?
    How are the widgets being included on the page? – is it via code copied & pasting in from somewhere or are you using a specific plugin with shortcodes?

    Thread Starter ijennings

    (@ijennings)

    Hi Thanks for getting back to me so promptly. This code goes in the tab create the widget
    <div>
    <div id=”leaguetable-widget”
    class=”cleanslate crowdscores-widget”
    data-competition-ids=”2″
    data-team-id=”1″>
    </div> </div>

    Then this java script goes in the page header to populate the wiget and update it
    <script>
    (function(a,b,c,d,e,f){e=a.createElement(b),
    f=a.getElementsByTagName(b)[0]; e.src=c; e.id=d; f.parentNode.insertBefore(e,f)
    })(document,’script’,’https://widgets.crowdscores.com/static/js/widgets.js&#8217;,’crowdscores-widget-js’);
    </script>

    If I put the widget code on the page it populates straight away so it includes the latest data and the shirt images.
    when the page loads.
    If I put the wiget code within a tab it only haly loads. It only updates the data and displays the shirt images after the next update call, and then only in the selected tab. Every time a different tab is selected I have to wait up to 30 seconds until the next update cycle so that it actually displays correctly.

    I have tried it on chrome and ie 9 and also on android browser and it is same on every page. I have also tried it with and without add blocker being enabled.

    Regards

    Ian

    Plugin Author cubecolour

    (@numeeja)

    OK it sounds like this is the same issue that occurs with some, but not all, googlemap or gallery plugins where the map in included via javascript where only the map on the tab that is open on page load is displayed.

    If this is the case, the issue is caused by the content, not the tabs what happens for the affected map & gallery plugins is that javascript calculates the dimensions for the content it includes as zero for any of its content blocks not visible on page load.

    I believe this issue would also occur when the content is included in tabs provided by other tab plugins. The author of the widget code may have a fix for including the content in tabs.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘displaying widgets in tabs’ is closed to new replies.