• Resolved jtcheng

    (@jtcheng)


    Hi,

    My developers and I are stumped as to how to correct a peculiar signature that occurs with Tabby Tabs.

    Since I can’t upload screenshots here, I’ll try to succintly describe what we’re seeing.

    If you go to the link I called out above (http://s1.temporary-access.com/~allacros/wow/yosemite-bridalveil-fall.html), then click on the MORE expander, you’ll see the tabs from Tabby Tabs (light gray background with white text and light blue active tab highlight).

    The Tabby Tabs begins in the “Home” position on the topleft. You click on any of the tab titles and you get the desired content as expected.

    So far so good.

    However, suppose we left Tabby Tabs at something not “Home” like say “SOUTHSIDE DRIVE”, then scrolled down to click a different tab (below the “LESS”; black background, white text, deeper blue active tab color) like say “DIRECTIONS”.

    This is when Tabby Tabs behaves strangely.

    After clicking “DIRECTIONS”, when you scroll up and go back to the revealed Tabby Tabs again, you’ll see that the content disappeared, but “SOUTHSIDE DRIVE” remained highlighted. Clicking on that tab is unresponsive.

    But if you click on the “Home” tab, the content from Southside Drive came back. If you click on any other Tabby Tab, the content shows up IN ADDITION TO the Southside Drive content. If you click on “SOUTHSIDE DRIVE” again, the content disappears again.

    It’s as if SOUTHSIDE DRIVE tabby tab and the “Home” tabby tab swapped places with a little bit of a weird artifact of superposition of tabby tabs content if other tabby tabs were clicked after the advent of the signature.

    So we’re trying to figure out how to get Tabby Tabs to correctly highlight the “Home” tab when we click on a different non-tabby-tab event (i.e. PHOTOS, DIRECTIONS, VIDEO, MORE INFO). I think if we do that, then the behavior will not be perceived by the users as buggy.

    If you could shed light on how we can correct this, we’d be very grateful! So far, this plugin is great aside from this behavior.

    Thanks in advance.

    The page I need help with: [log in to see the link]

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

    (@numeeja)

    I cannot see a tab with the title ‘home’, and I can’t see the issue on the page in firefox 58.0.1 MacOS.

    It looks like there is a dummy/empty tabby shortcode without a title parameter before the other tabby shortcodes, which is unusal.

    Also the style of the tabs has been altered with additionaal css rules with a lot of !important declarations rather than by replacing the tabby styles as outlined in the documentation.

    Thread Starter jtcheng

    (@jtcheng)

    Is it possible to somehow show you screenshots to try to show you the issue? We’ve seen this signature consistently on different computers with different browsers – Chrome, Firefox, IE across PC and Mac. I recognize trying to follow the steps outlined in the initial inquiry may not be the best way to communicate.

    There isn’t a tab titled “Home” but I don’t know what to call the square that is the first of the Tabby Tabs (that I guess closes all the tabs I intentionally put in with [tabby title=”TAB TITLE” … ].

    But from looking at your reply, you’re implying that something could be off with the way we employed the tabs via the CSS rules and the dummy/empty tabby shortcode? I’ll at least pass that on to the developers.

    Thanks

    Thread Starter jtcheng

    (@jtcheng)

    So I commented out the [tabby] shortcode without the title. It lumps the rectangle with the “BASE OF THE WATERFALL” tabby tab action together. But if I click any other tab, the BASE OF THE WATERFFALL content remains with other tab content immediately below it (instead of substituting for it), which is not desired.

    So I guess the “unusual” dummy/tabby shortcode establishes that empty rectangle that I’m calling “Home” (even though it’s not titled that way) needs to be there to prevent the content overlap.

    I took out the comments. It doesn’t appear the “unusual” dummy/tabby shortcode is related to the signature we’re seeing.

    Plugin Author cubecolour

    (@numeeja)

    Overriding the default styles by adding CSS rules with !important declarations is not recommended. Remove these styles to troubleshoot whether they might be contributing to the issue.

    Thread Starter jtcheng

    (@jtcheng)

    Hi,

    So the developer told me that she removed the CSS stylings and the issue was still there.

    Any other things you suggest we try out? Or is this worth a deeper dive?

    Thanks,
    Johnny

    Plugin Author cubecolour

    (@numeeja)

    It looks like the issue is caused by the use of the second tab system on the page. i missed that earlier and thought the issue might have been related to the show/hide

    There is possibly something in the script that is acting on the display of the tabby responsive tabs tagroup – perhaps the selector for the elements it is targeting to show/hide is not limited to its own tabs. What was used to create these tabs?

    Thread Starter jtcheng

    (@jtcheng)

    Hi,

    So here’s the code that the developer passed on to me that she used to create the second tab system.

    html-waterfall-tabs.php

    <div id="waterfallTabs">
    	<div class="tab">
    	  <button class="tablinks" id="photos-button" onclick="openInfo(event, 'photos')">PHOTOS</button>
    	  <button class="tablinks google-map-button" id="directions-button" onclick="openInfo(event, 'directions')">DIRECTIONS</button>
    	  <button class="tablinks" id="videos-button" onclick="openInfo(event, 'video')">VIDEO</button>
    	  <button class="tablinks" id="more-info-button" onclick="openInfo(event, 'more-info')">MORE INFO</button>
    	</div>
    
    	<div id="photos" class="tabcontent">
    		<div><?php the_field('photo_journal'); ?></div>
    	</div>
    
    	<div id="directions" class="tabcontent google-map">
    		<div><?php the_field('google_maps_iframe_code'); ?></div>
    		<div><?php the_field('driving_directions'); ?></div>
    	</div>
    
    	<div id="video" class="tabcontent">
    		<div><?php the_field('video'); ?></div>
    	</div>
    
    	<div id="more-info" class="tabcontent">
    		<div id="related-trip-reports">
    			<h3>Related Trip Reports</h3>
    			<?php the_field('related_trip_reports'); ?>
    		</div>
    		<div id="top-10-lists">
    			<h3>Related Top 10 Lists</h3>
    			<?php the_field('related_top_10_lists'); ?>
    		</div>
    		<div id="related-itineraries-posts">
    			<h3>Related Itineraries</h3>
    			<?php the_field('related_itinerary_posts'); ?>
    		</div>
    
    		<div id="trip-planning-resources">				
    			<h3>Trip Planning Resources</h3>
    			<?php the_field('related_featured_article_posts'); ?>
    			<br/>
    			<?php 
    			
    			the_field('trip_planning_resources',false,false);
    			
    			
    			?>
    		</div>
    		<div id="pj-featured-photos-wrapper"></div>
    		<h3>Featured Images and Nearby Attractions</h3>
    		<div id="pj-featured-photos"><?php the_field('photo_journal_featured_photos'); ?></div>
    	</div>
    </div>

    js-waterfall-tabs.js

    // Waterfall Tabs
    
    function openInfo(evt, infoName) {
        var i, waterfalltabcontent, waterfallTablinks;
        waterfallTabcontent = document.getElementsByClassName("tabcontent");
        for (i = 0; i < waterfallTabcontent.length; i++) {
            waterfallTabcontent[i].style.display = "none";
        }
        waterfallTablinks = document.getElementsByClassName("tablinks");
        for (i = 0; i < waterfallTablinks.length; i++) {
            waterfallTablinks[i].className = waterfallTablinks[i].className.replace(" active", "");
        }
        document.getElementById(infoName).style.display = "block";
        evt.currentTarget.className += " active";
    }
    
    // This is just to initialize each of the tab content
    
        function tabButtonClick(){
            image.each(function () {
                var that = $(this);
                if (that.width() < that.height()) {
                    that.removeClass('landscape');
                    that.removeClass('square');
                    that.addClass('portrait');
                } else if (that.width() > that.height()) {
                    that.removeClass('portrait');
                    that.removeClass('square');
                    that.addClass('landscape');
                } else {
                    that.removeClass('portrait');
                    that.removeClass('landscape');
                    that.addClass('square');
                }
            });
        }
    
        $('#more-info-button').click(function() { tabButtonClick(); });
        $('#directions-button').click(function() { tabButtonClick(); });
        $('#videos-button').click(function() { tabButtonClick(); });
    Plugin Author cubecolour

    (@numeeja)

    Your script targets elements with the .tabcontent class so it also acts on the content of the tabs built with tabby responsive tabs.

    Thread Starter jtcheng

    (@jtcheng)

    Hi,

    Just wanted to let you know that the developer renamed her target for the tab that she employed, and the Tabby Tabs behavior is pretty much as expected now.

    Thank you for steering us in this direction in our troubleshooting efforts.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Tabby Tabs behaving strangely’ is closed to new replies.