Dashicons not showed for admin menu
Found: Simply replace ‘menu-icon’ with ‘menu_icon’
Found: Simply replace ‘menu-icon’ with ‘menu_icon’
Hi, For question #1 I don’t see the menu on desktop as you described. For question #2 the menu looks very weird and I can’t think of a quick solution. What did you use to create the menu? Is is the default theme menu?
Go to Appearance » Menus. Click on Screen Options button at top right corner of the page. Check the Descriptions box from it. This will allow you to display the description of the menu and you can customize it as per HTML above.
Ok… So, after some poking around, I got something to work. I basically combined the menu I found here: https://webdesignerhut.com/css-dropdown-menu/ with the responsiveness of my original menu. The final code looks like… The JavaScript: <script> /* Toggle between adding and removing the “responsive” class to topnav when the user clicks on the icon */ function … Read more
how to create pages and link them to a menu
You have another div controlling the full width background. You need to alter the css of that one if you want the width to look. This css takes the background off the full width div you have and put the background on the wrap div that you have maxing at 1200px; .lifestyle-pro-blue .nav-secondary {background:none;} .wrap{background-color:rgba(0,0,0,0.5);}
So there’s actually a filter for this, provided your theme doesn’t use its own menu walker class: function add_data_track_attribute( $atts, $item, $args ) { $title = apply_filters( ‘the_title’, $item->title, $item->ID ); // $title = sanitize_title($title); // if you need a slug-like title $atts[‘data-track’] = ‘navigation|click|’.$title; return $atts; } add_filter(‘nav_menu_link_attributes’, ‘add_data_track_attribute’, 10, 3); Note the commented-out … Read more
You need to create your own Nav Walker to add HTML entity for parent menus. Which is clickable and toggle the sub menu. @see: Plugin for reference https://wordpress.org/plugins/responsive-menu/ Tutorial https://wptheming.com/2013/03/drop-down-menu-indicator/ http://shinraholdings.com/62/custom-nav-menu-walker-function/
You can achieve this with a simple JQuery selector. $($(‘.active’).parent(‘ul’).get(0)).css(‘display’, ‘none’); We are selecting the parent UL where we find the active class and hiding the element via css. https://jsfiddle.net/0voxj6fp/
Checked the variable with isset to see whether or not it contained a value: $element->classes[] = ( isset($element->current) || isset($element->current_item_ancestor )) ? ‘active’ : ”; This solved the notice issue. And this seems to do the trick. Guess I over thought things here. Now I can start adding some content in Arabic and see start … Read more