Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
You cannot build a navigation menu or architecture on an unlimited amount of items. You should limit the navigation menu so if the client adds more items it doesn’t break the CSS.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
I.e. you can limit the amount of child pages the menu can render using $depth: https://developer.wordpress.org/reference/functions/wp_nav_menu/
thanks.
but now there is a problem.i want to ommit svg in twentysventeen child theme.
i have used remove filter hook.it does not work when it is in child function.but it works when it is in parent function.php file.why?