WordPress.org

Forums

WPtouch Mobile Plugin
menu link does not pointing to correct destination at frontend (4 posts)

  1. gangsar.swapurba
    Member
    Posted 1 year ago #

    hi,

    i have just installed this plugin in my site

    all is goes right until i checked menu link at website frontend

    what's wrong? all menus is pointing to wrong url

    it's my site http://kostumanak.co.id

    hope you guys could give some help

    thanks.

    regards.

    https://wordpress.org/plugins/wptouch/

  2. gangsar.swapurba
    Member
    Posted 1 year ago #

    Hi,

    i tried solve it myself, but i give up

    i guess, there is something inside wptouch_show_menu( 'primary_menu' ); in header_bottom.php

    i use default bauhaus theme

    Hope anybody could give some help

    Regards,
    Gangsar

  3. gangsar.swapurba
    Member
    Posted 1 year ago #

    after looking for the problems, i guess walker argument is the most possible problem

    function _wptouch_show_menu( $menu_slug, $nav_menu_walker, $page_menu_walker ) {
    	$nav_menu_walker = apply_filters( 'wptouch_nav_menu_walker', $nav_menu_walker, $menu_slug );
    	$page_menu_walker = apply_filters( 'wptouch_page_menu_walker', $page_menu_walker, $menu_slug );
    
    	$menu_to_show = wptouch_get_menu_name_from_slug( $menu_slug );
    
    	if ( $menu_to_show == 'wp' ) {
    		wp_list_pages (
    			array(
    				'title_li' => '',
    				'walker' => $page_menu_walker
    			)
    		);
    	} else if ( $menu_to_show != 'none' ) {
    		if ( $nav_menu_walker == false ) {
    			$nav_menu_walker = new WPtouchProMainNavMenuWalker;
    		}
    
    		// WordPress menu
    		$menu_params = array(
    			'before' => '',
    			'after' => '',
    			'container' => '',
    			'container_class' => '',
    			'container_id' => '',
    			'link_before' => '',
    			'link_after' => '',
    			'menu_class' => '',
    			'items_wrap' => '%3$s',
    			'menu' => $menu_to_show,
    			'walker' =>	$nav_menu_walker
    		);
    
    		wp_nav_menu(
    			$menu_params
    		);
    	}

    but, it's too heavy for me to dig it up again

    maybe any guru here could give me some help?

  4. gangsar.swapurba
    Member
    Posted 1 year ago #

    after looking for the problems, i guess walker argument is the problem

    in wptouch/core/menu.php:
    http://pastebin.com/KCAtACrc

    but it's too heavy to continuing looking for the problems for me.

    any guru could give me some help?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WPtouch Mobile Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic