Disable automatig SVG tag from menu

Copy functions.php from the parent theme into your child theme. Edit functions.php to remove the offending SVGs. NOTE: if wp_nav_menu() is called from another file (e.g., header.php), copy and edit that one instead.

Page-Linking Structure

As @Milo mentioned in his answer, you can’t and shouldn’t directly call a template file. It is a security risk, and you will no longer be able to access WordPress’s engine, so you can’t use functions such as the_permalink. To include a template part in your home.php or any where you wish, you can use … Read more

Menu styling for last menu item

Here’s a function I use to add a first / last class to wp_nav_menu() items: function add_first_and_last($items) { $items[1]->classes[] = ‘first’; $items[count($items)]->classes[] = ‘last’; return $items; } add_filter(‘wp_nav_menu_objects’, ‘add_first_and_last’); Developer Resources – wp_nav_menu_objects Hook

Add custom text to menu

There is another alt way to do this with CSS3. You would add a link to the WP Menu as normal but make the Location either javascript:void(0); or # so it doesn’t go anywhere (I would say the javascript… is the better way to prevent anchor link from firing). Then in your style.css or CSS … Read more

Using Shortcodes in WP-Menus in WP 3.1 (via nav_menu_objects)?

The problem is that do_shortcode() expects a string in it’s first parameters while wp_nav_menu_objects get’s passed an array of menu objects. Sou you’d have to write your own wrapper function to do_shortcode, something like this… function my_nav_menu_objects_shortcode_mangler($items) { foreach ($items as $item) { $item->classes = explode(‘ ‘, do_shortcode(implode(‘ ‘, (array)$item->classes))); } return $items; } may … Read more

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