Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Why you don't use a simple css drop-dwo menu?</p> <p>Here is a working sample:</p> <pre><code> .menu{ border:none; border:0px; margin:0px; padding:0px 0px 0px 20px; font-family:"Arial"; font-size:12px; font-weight:bold; list-style-type:none; } .menu ul{ height:35px; list-style:none; margin:0; padding:0; } .menu li{ float:left; padding:0px; list-style-type:none; } .menu li a{ background-color:#CC0000; color:#fff; display:block; font-weight:bold; line-height:35px; margin:0px; padding:0px 13px; text-align:center; text-decoration:none; list-style-type:none; } .menu li a:hover { background-color:#000; border-radius:3px; color:#fff; text-decoration:none; list-style-type:none; } .menu ul li:hover a{ background-color:#000; border-radius:-3px; color:#fff; text-decoration:none; list-style-type:none; } .menu li ul{ background-color:#ccc; color:#FFFFFF; display:none; height:auto; padding:0px; margin:0px; border:0px; position:absolute; width:150px; z-index:230; /*top:1em;*/ } .menu li ul li ul { margin-left:150px; margin-top:-35px; } .menu li:hover &gt; ul{ display:block; } .menu li li { background:#000000; display:block; float:none; margin:0px; padding:0px; width:150px; } .menu li:hover li a{ background:none; } .menu li ul a{ display:block; height:35px; font-size:12px; font-style:normal; margin:0px; padding:0px 10px 0px 15px; text-align:left; } .menu li ul li:hover { background:#CC0000; border:0px; color:#ffffff; text-decoration:none; } .menu p { clear:left; } </code></pre> <p>Here is the php </p> <pre><code>&lt;?php $defaults = array( 'theme_location' =&gt; 'Primary', 'menu' =&gt; 'your menu name', 'container' =&gt; 'ul', 'container_class' =&gt; 'menu-{menu slug}-container', 'container_id' =&gt; 'menu', 'menu_class' =&gt; 'menu', 'menu_id' =&gt; 'menu-{menuslug}[-{increment}]', 'echo' =&gt; true, 'fallback_cb' =&gt; 'wp_page_menu', 'before' =&gt; '', 'after' =&gt; '', 'link_before' =&gt; '', 'link_after' =&gt; '', 'items_wrap' =&gt; '&lt;ul id="%1$s" class="%2$s"&gt;%3$s&lt;/ul&gt;', 'depth' =&gt; 0, 'walker' =&gt; '' ); ?&gt; &lt;?php wp_nav_menu( $defaults ); ?&gt; </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.
    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