2011-05-24, 02:12:50
mvlcek,
Is there a way I can call a (sub) menu starting from a given parent? I didn't find such an option in the documentation. I could use such a custom sub nav for a current project.
-----
I call the top navigation on a site with
and, for some reason, I never had a real look at the markup generated for the top menu. I'm now seeing that the complete menu is output with the sub entries being simply commented out. I'm not saying it's a huge increase in page size, but for my site which has quite a few sub pages, the commented out markup amounts to several kB... I'm sure you've got a reason for doing it this way? Just out of interest, what is the reason?
Is there a way I can call a (sub) menu starting from a given parent? I didn't find such an option in the documentation. I could use such a custom sub nav for a current project.
-----
I call the top navigation on a site with
Code:
<?php get_i18n_navigation(return_page_slug(),0,0); ?>
and, for some reason, I never had a real look at the markup generated for the top menu. I'm now seeing that the complete menu is output with the sub entries being simply commented out. I'm not saying it's a huge increase in page size, but for my site which has quite a few sub pages, the commented out markup amounts to several kB... I'm sure you've got a reason for doing it this way? Just out of interest, what is the reason?