Note that there are some explanatory texts on larger screens.

plurals
  1. POAvoid drop-down in some items on Codrops horizontal drop-down menu script
    text
    copied!<p>The Codrops script:</p> <p><a href="http://tympanus.net/codrops/2013/03/05/horizontal-drop-down-menu/" rel="nofollow">http://tympanus.net/codrops/2013/03/05/horizontal-drop-down-menu/</a></p> <p>How to make some choosen item from the menu a standard behavior link?</p> <p>Eg Menu: Home | Categories | Contact | Authors</p> <p>I want to make only Categories and Authors 'drop-downable'.</p> <p>I tryed to insert a class .drop-down on <code>&lt;li&gt;</code> itens I want to make 'dropdownable'.</p> <pre><code>&lt;nav id="cbp-hrmenu" class="cbp-hrmenu"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="index.php"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li class="cbp-dropdown"&gt; //added class here &lt;a href="#"&gt;Categories&lt;/a&gt; &lt;div class="cbp-hrsub"&gt; </code></pre> <p>And replaced all <code>.removeClass( 'cbp-hropen' );</code> on jquery script with </p> <pre><code>.removeClass().addClass('cbp-dropdown') </code></pre> <p>It almost worked well. The close function doesn't work good when alterning 'tabs'.</p> <p>How is the proper way to do this?</p> <p>Original DEMO: <a href="http://tympanus.net/Blueprints/HorizontalDropDownMenu/" rel="nofollow">http://tympanus.net/Blueprints/HorizontalDropDownMenu/</a></p> <p>JSfiddle Original: <a href="http://jsfiddle.net/xC47v/1/" rel="nofollow">http://jsfiddle.net/xC47v/1/</a></p> <p>JSfiddle My Mod: <a href="http://jsfiddle.net/xC47v/2/" rel="nofollow">http://jsfiddle.net/xC47v/2/</a> (clicking between main links doesn't close submenus.)</p>
 

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