[Plugin: Sub Pages widget] very close to perfect but not quite (3 posts)

  1. antistandard
    Posted 5 years ago #


    this is a good widget and I am grateful for it. I am using it and with a couple of tweaks it works logically.

    The first tweak is that I needed to display:none the a: title of the parent page in the outputted sidenav. For some reason, you don't get an option to hide the parent of the child pages, so you gotta do it with css unfortunately.

    Secondly, don't bother putting in a menu title, cos it bugs out and appears with no space, infront of the parent page name. you'll see what I mean when you try it yourself.

    Otherwise, it works and works well and could be perfect with a new version or two.



  2. squidz
    Posted 4 years ago #

    I too would like the option to override the partent page title with a custom title. However, you can solve the last item you mentioned by simply adding a space after whatever title prefix you add....like "Custom[space]Parent Page Title."

  3. walkities
    Posted 4 years ago #

    I'm not sure if this is what you're looking for but I didnt want the page title mentioned in my sidebar so I edited the plugin file myself (if you're comfortable enough to do so).

    Open the file SubPages.php and around line 119 it should say

    // the title
    $title = $title.$rootPost->post_title;

    All I did was change it to comment out adding the post_title

    // the title
    // $title = $title.$rootPost->post_title;

    Works great for me.

Topic Closed

This topic has been closed to new replies.

About this Topic