css - Wordpress navigation horizontal submenu on hover -


i'm using childd theme wordpress twentyfourteen, want submenues of navigation horizontal , contain logos instead of page titles wordpress nav. menu array. there custom solution inlin (horizontal) navigations in wordpress (couldn't find on codex either). main html/php code , screenshot of want listed below. when user hovers on "markalar"(any of primary elements of navigation) submenu must displayed attached image's view. have done of css works, have no idea how place logos instead of sub page titles.

<nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation">                 <h1 class="menu-toggle"><?php _e( 'primary menu', 'twentyfourteen' ); ?></h1>                 <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>             </nav> 

image: enter image description here

edit: wouldn't add many code here, in order clearify issue asked to.. hope thread helpful others too.. child theme, added custom css chlidren class(default class sub menue elements).the css listed below:

.children {   float: left;   width: 760px;   margin: 0;   padding: 0;   list-style: none;   -moz-border-radius-topright: 10px;   -webkit-border-top-right-radius: 10px;   -moz-border-radius-topleft: 10px;   -webkit-border-top-left-radius: 10px;    }  .children li {   display: inline; }  .children li {   float: left;   font: bold 1.1em arial,verdana,tahoma,sans-serif;   line-height: 15px;   color: #fff;   text-decoration: none;   text-shadow: 1px 1px 1px #880000;   margin: 0;   padding: 0 20px;   -moz-border-radius-topright: 10px;   -webkit-border-top-right-radius: 10px;   -moz-border-radius-topleft: 10px;   -webkit-border-top-left-radius: 10px;      }  .children .current a, .children li:hover >  {   color: #fff;   text-decoration: none;   text-shadow: 1px 1px 1px #330000;   background: #bb0000;   -moz-border-radius-topright: 10px;   -webkit-border-top-right-radius: 10px;   -moz-border-radius-topleft: 10px;   -webkit-border-top-left-radius: 10px;  }  .children ul {   display: none; }  .children li:hover > ul {   position: absolute;   display: block;   width: 720px;   height: 25px;   position: absolute;   margin: 20px 0 0 0;   -moz-border-radius-bottomright: 10px;   -webkit-border-bottom-right-radius: 10px;   -moz-border-radius-bottomleft: 10px;   -webkit-border-bottom-left-radius: 10px;  } .children li:hover > ul li {   float: left;   font: bold 1.1em arial,verdana,tahoma,sans-serif;   line-height: 25px;   color: #fff;   text-decoration: none;   text-shadow: 1px 1px 1px #110000;   margin: 0;   padding: 0 30px 0 0; }  .children li:hover > ul li a:hover {   color: #120000;   text-decoration: none;   text-shadow: none; } 

as tought solution useful someone, chose answer question. iused :nth-child(n) property of css. , made related css edits. below snippet of code

.children li {text-indent: -900em;} /** hide subpage's title */ .children li:nth-child(1) {background-image:url('images/logolar/lacia.png'); z-index:5; width:40px ;height:40px; position:relative; background-repeat:no-repeat;} .children li:nth-child(2) {background-image:url('images/logolar/jeep.png'); z-index:5; width:60px ;height:40px; position:relative; background-repeat:no-repeat;} .children li:nth-child(3) {background-image:url('images/logolar/alfaromeo.png'); z-index:5; width:40px ;height:40px; position:relative; background-repeat:no-repeat;} 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -