Suggested evolution – Exclude current page
-
Hello,
May I suggest a minor evolution ?
If I am right, using CSS like
.widget_subpages_current_page { display: none; }
is a site wide setting ?
I made a small modification to the plugin to include a checkbox to exclude the current page and then I modified the build_supages ike this :
`// Set special class for current page or exclude it
if ( $subpage->ID == $post->ID ) {
if ($exclude_current == 0) {
$class[] = ‘widget_subpages_current_page’;
}
else {
continue;
}
}`This way, one could set the how the plugin acts instance by instance
Regards
Alain
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Suggested evolution – Exclude current page’ is closed to new replies.