Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

heidekeal on "Nav without blog url"

$
0
0

[ Moderator note: please wrap code or log lines in backticks or use the code button. I've added the backticks to your post. ]

Hello,

I'm looking for a solution. I have a website that's pointed to an anoter domain. The problem is the main nav always links to the not pointed url. So i want to delete the url of the blog in the link;

<a href="/second-page/">

in stead of

</a><a href="http://school.nl/second-page/">

is that possible?

The menu code now

wp_nav_menu(
    	array(
    		'menu' => 'mainNav', /* menu name */
    		'menu_class' => 'nav',
    		'theme_location' => 'mainNav', /* where in the theme it's assigned */
    		'container' => 'false', /* container class */
    		'fallback_cb' => 'bones_main_nav_fallback', /* menu fallback */
    		'depth' => '2', /* suppress lower levels for now */
    		'walker' => new description_walker()
    	)
    );

Viewing all articles
Browse latest Browse all 8245

Trending Articles