Menu administration, how to allow special charachters

What kind of special characters do you need to put? I never used this field in WordPress, so I’m not sure of what I am saying, but maybe it works like in HTML, which needs you to use entity codes for letters like à, é, è, etc. Here’s a link to a list of entity … Read more

Active menu also for single array

Ok, found it out: <ul class=”nav navbar-nav”> <li<?php if ( is_category(‘app-functies’)) { echo ‘ class=”current”‘; } elseif ( is_singular( ‘augmented-reality’ )) { echo ‘ class=”current”‘; } ?>><a href=”https://wordpress.stackexchange.com/questions/112125/<?php echo site_url(); ?>/app-functies/”>App Functies</a></li> </ul> If you want to add more then 1 is_category() you can also use is category(”) || is_singular(”) . Basic PHP knowledge.. but … Read more

Add Protocol to Custom Menus

You need to use the kses_allowed_protocols filter: function wpse_allow_sms_protocol( $protocols ) { $protocols[] = ‘sms’; return $protocols; } add_filter( ‘kses_allowed_protocols’, ‘wpse_allow_sms_protocol’ );

How to customize navigation menu?

Using wp_nav_menu() and a Walker is a great thing and I really appreciate the other answers with this solution, but I think it’s a really hard way to go for a simple menu. So I found myself quite often doing it via wp_get_nav_menu_items() So let’s focus on the idea: I just get all the menu … Read more

Navigational error

Option 1: Edit the Contructor theme The Constuctor theme checks the theme options and then includes the home link based on the option value. The code that adds the Home link is located in /wp-content/themes/Constructor/libs/Constructor/Main.php. // show link to homepage if ($this->_options[‘menu’][‘home’]) { echo ‘<li id=”home”><a href=”‘.home_url().”https://wordpress.stackexchange.com/” title=”‘.get_bloginfo(‘name’).'”>’.__(‘Home’, ‘constructor’).'</a></li>’; } Link Text To change the … Read more