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

    (@mat-lipe)

    Hi dpolcino,
    Do you have a page setup where I can see the Sub Post Navigation being used so I may get an idea of what you are trying to do?

    Cheers

    Thread Starter dpolcino

    (@dpolcino)

    Hi Mat!
    Yes you can go to https://www.noiseandvision.com
    Check out “Showcase” menu, that’s a nice example how you can drill down to the sub-pages and the menu on right follows along by changing its title.

    -D

    Plugin Author Mat Lipe

    (@mat-lipe)

    There is a way to get you pretty close to what you are looking for.

    1. Create a folder in your theme titled ‘advanced-sidebar-menu’
    2. Copy the file named category_list.php from this plugins views folder into the new folder you created in your theme

    Once you have the file in your theme you may edit it as much as you like and the plugin will still be editable.

    You will see some code near the top of the file

    //Displays the title
    $asm->title();
    
    //Include the parent page if chosen
    if( $asm->include_parent() ){
    	echo '<ul class="parent-sidebar-menu">';
    			  wp_list_categories( 'title_li=&include=' . $top_cat);
    }

    Replace that code with this

    echo '<h4 class="widget-title">';
    			  wp_list_categories( 'title_li=&include=' . $top_cat);
        echo '</h4>';

    Remove this code from bottom of the file

    #-- if a parent category was displayed
    		if( $asm->include_parent() ){
    				echo '</ul><!-- End #parent-sidebar-menu -->';
    		}

    Keep in mind your widget title will still be a link and therefore you may have to add some css to get it to match perfectly, but this should get you close.

    I have not testing this, and am commenting from memory so you may have to adjust it slightly.

    Good Luck
    Cheers

    Thread Starter dpolcino

    (@dpolcino)

    Great thanks for the head-start. I’ll dive in and try it out.
    PS. The other plugin allows title to be a link as well, so I can easily match their behavior on that count.

    Thread Starter dpolcino

    (@dpolcino)

    Just in case anyone wants to achieve the same thing, I found the just replacing this $asm->title();
    with the above code works great.
    Removing the other lines causes the widget to display nothing at all (at least in my configuration)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature Request: Title IS Parent Category’ is closed to new replies.