Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML/JQuery Tab Switching on Wordpress
    primarykey
    data
    text
    <p>I need help with switching tabs, here is the example link: <a href="http://app.seed-ville.com/357-2/#1" rel="nofollow">http://app.seed-ville.com/357-2/#1</a></p> <p>This is just the head part I'm not sure there's anything wrong with it.</p> <pre><code> &lt;ul class="nav"&gt; &lt;li&gt;&lt;a class="active" href="javascript:void(0);"&gt;Terms&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#1" data-toggle="tab"&gt;Privacy&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#2" data-toggle="tab"&gt;FAQ&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#3" data-toggle="tab"&gt;Contact&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Help&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Media&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;About Us&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; ---------- &lt;section id="tab_panes"&gt; &lt;div class="tab_pane active"&gt;Hello&lt;/div&gt; &lt;div class="tab_pane active"&gt;&lt;/div&gt; &lt;!-- we'll copy/paste the other panes --&gt; &lt;div class="tab_pane"&gt;&lt;img class="alignleft" src="http://cssdeck.com/uploads/media/items/4/40Ly3VB.jpg" alt="" /&gt;&lt;/div&gt; &lt;div class="tab_pane"&gt;Hi1&lt;/div&gt; &lt;div class="tab_pane"&gt;Hi2&lt;/div&gt; &lt;div class="tab_pane"&gt;Hi3&lt;/div&gt; &lt;/section&gt; ---------- </code></pre> <p>This is most likely where the problem is. I'm not sure if I'm calling and executing it correctly on the page. </p> <pre><code>&lt;script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.0/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt;// &lt;![CDATA[ $(function() { $('.nav a').on('click', function() { var $el = $(this); var index = $('.nav a').index(this); var active = $('.nav').find('a.active'); /* if a tab other than the current active tab is clicked */ if ($('nav a').index(active) !== index) { // Remove/add active class on tabs active.removeClass('active'); $el.addClass('active'); // Remove/add active class on panes $('.tab_pane.active') .hide() .removeClass('active'); $('.tab_pane:eq('+index+')') .fadeIn() .addClass('active'); } }); }()); &lt;/script&gt; </code></pre> <p>Possible error in .redactor function being called</p> <pre><code>/* Ready function */ sprout.ready = function($) { // WYSIWYG $('.redactor, #gb_deal_description, #gb_deal_highlights, #gb_deal_fine_print, #gb_contact_merchant_description').redactor(); jQuery('.masonry_loop').masonry({ itemSelector: '.loop_deal', gutterWidth: 15, isAnimated: true, isResizable: true, }); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload