Ich mache mein erstes Wordpress-Theme. Ich habe ein horizontales Menü erstellt, aber es zeigt auch das Untermenü an. Ich möchte ein Dropdown-Menü erstellen, in dem ich das Untermenü sehen kann, wenn ich die Maus auf die Stimme des Hauptmenüs setze.Wie man ein horizontales Dropdown-Menü in einem Wordpress-Theme erstellt
Dies ist mein Code in meinem Style.css:
/*** Menu ***/
#mainmenu ul {margin: 0px 0 0px 0px;float:left;width:100%; list-style: none;}
#mainmenu ul li {float: left;margin: 0 0px 0 0;position: relative;}
#mainmenu a {color: #fff; display: block;font: 14px;padding: 14px 20px;font-family: oswald; text-transform:uppercase;}
#mainmenu a:hover {background:#666;}
/* Button Responsive Menu*/
.btn-responsive-menu{display: none;float: right;padding:5px;cursor:pointer;margin: -15px 20px 0 0;color: #ffffff;text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);background:#333;-webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px;}
.icon-bar {display: block;width: 18px;height: 2px;margin:5px;background-color: #f5f5f5;-webkit-border-radius: 1px;-moz-border-radius: 1px;border-radius: 1px;-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);}
.show{display:block!important}
Ich hoffe jemand kann mir helfen. Vielen Dank! :)
Danke für deine Antwort :) – Marci