Support » Plugin: Advanced Sidebar Menu » display a menu of subpages from a page ID

Viewing 1 replies (of 1 total)
  • Plugin Author Mat Lipe

    (@mat-lipe)

    Hi M One,

    You should be able to do this by use a filter like so.

    add_filter('advanced_sidebar_menu_top_parent', 'always_same_top' );
    function always_same_top(){
        $parent = 'put ID here';
    
        if( is_home() || is_front_page() ){
            return $parent;
        }
    }

    If you add this to your theme’s functions.php file and change ‘put ID here’ to the page id you would like to use as the parent.

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘display a menu of subpages from a page ID’ is closed to new replies.