MCQs > IT & Programming > JavaScript > Which code snippet removes the 'Home' link from the 'wp_nav_menu' ?

JavaScript MCQs

Which of the following code snippets removes the "Home" link from the "wp_nav_menu" ?

Answer

Correct Answer: In functions.php following code should be added: function page_menu_args( $args ) { $args['show_home'] = FALSE; return $args; } add_filter( 'wp_page_menu_args', 'page_menu_args' ); Plus additional snippet code: wp_nav_menu( array('echo'=>true));

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it