How to remove div container in custom menu?

all As per my html theme structure i do not want to add my menu <ul><li> under <div>. I am using <?php wp_nav_menu( array( ‘menu_class’ => ‘tlm’, ‘theme_location’ => ‘primary-menu’ ) ); ?> By default this wrap my menu with div. like <div class=”menu-first-container”><ul class=”tlm” id=”menu-first”><li class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-23″ id=”menu-item-23″><a href=”http://localhost/tmw_new/”>Dashboard</a></li> <li class=”hasul menu-item … Read more

wp_nav_menu and fallback

I am using this code to call any custom menu and display: <?php wp_nav_menu( array( ‘container’ => ‘none’, ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’, ‘menu’ => get_post_meta( $post->ID, ‘MenuName’, true) ) ); ?> At the moment if there is no custom menu defined it falls back to the primary menu. I am trying to edit … Read more

WP Nav menu append to url

Using wp_nav_menu() , how can I append a value at end of each URL? For example, I have the following url: http://www.example.com/ but I have to append a language parameter at the end, so the url should be: http://www.example.com/?lang=$language 3 Answers 3 I found the solution modifying the behaviour of wp_nav_menu with the wp_get_nav_menu_items-filter. Here’s … Read more

PHP 7 – Class Method Compatibility Issue

Can anyone help me to determine what function/statement in this file causes the fatal error after upgrading to php 7.0? On php 5.6 everything works fine. Error: “Declaration of theme_navigation::update() should be compatible with WP_Widget::update($new_instance, $old_instance)” on line 0 Code: class theme_navigation extends WP_Widget { public function __construct() { parent::__construct( ‘theme_navigation’, // Base ID ‘Child … Read more

TwentyTwelve child theme mobile menu not working

I have a pretty simple child theme of Twenty Twelve active, but the mobile menu does not expand when pressed. Here is header.php: <?php/** * The Header for our theme. * * Displays all of the <head> section and everything up till <div id=”main”> * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve … Read more