Specifying Class style for Menu

Looking at your rendered output: <div class=”menu sf-menu”><ul><li class=”page_item page-item-2 current_page_item”>… It appears that ‘sf-menu’ got appended as a class to the menu container, rather than to the menu itself. The wp_nav_menu() function has two separate parameters: menu_class: CSS class applied to the menu list <ul> menu tag container_class: CSS class applied to the element … Read more

custom walker to add iconfont to wp_nav_menu

ok, I figured it out myself. instead of using the CSS class (as I cannot figure out how to filter it), I decided to use the description instead. under the lines with $attributes I have added this line: $description = ! empty( $item->description ) ? esc_attr( $item->description ) : ”; And then I added that … Read more

WordPress Navigation default output

wp_nav_menu is what you are looking for. Here are some examples. Using the depth parameter you can change the level of sub-menu. 0 leads to all levels. Ex. <?php $defaults = array( ‘theme_location’ => ”, ‘menu’ => ”, ‘container’ => ‘div’, ‘container_class’ => ”, ‘container_id’ => ”, ‘menu_class’ => ‘menu’, ‘menu_id’ => ”, ‘echo’ => … Read more

Styling Active Links Within WordPress

You will have to set #menuwrap ul li.current-menu-item a to the color and style you want. The Problem is actually a CSS issue – because the CSS is more specific if an ID of an element is defined (like in your #menuwrap ul li a), so the above definition is even more specific and is … Read more

WP Nav Menu: String replacements

Why does this need to be done programmatically? WordPress’s menu editor lets you manually add a CSS class. If you aren’t seeing this option then look in the top, right of your screen for the “Screen Options” and click it so that it expands. Then check “CSS Classes”.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)