• Resolved ryanhuc

    (@ryanhuc)


    Hello,

    I currently use this plugin for student projects in a university setting. I (along with our students) would like to know if it is possible to alter/remove the “Special Pages” menu.

    I saw a post from about a year ago that said you would be adding some type of feature to do this, but if it is in the current version of the plugin, I cannot locate it.

    Any help would be greatly appreciated.

    Cheers,

    -Ryan

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Christian Wach

    (@needle)

    You can duplicate the file ‘commentpress-core/themes/commentpress-modern/assets/templates/toc_sidebar.php’ into your child theme – put it in ‘your-theme/assets/templates/toc_sidebar.php’ and it should override the way the left-hand column is built. You can the edit or remove items as you wish.

    Alternatively, use the following code to switch off the Special Pages menu:

    add_filter( 'cp_content_tab_special_pages_visible', '__return_false' );

    Cheers, Christian

    Thread Starter ryanhuc

    (@ryanhuc)

    Hi Christian,

    I am using this plugin for certain courses being held at my university (multisite). Many of the sites are simply activated by myself, and then students are allowed to essentially “run wild”.

    Is this a simpler method, or some form CSS that I would be able to use for this, rather than having to alter the child themes for every installation?

    Thanks for the help!

    -R

    Plugin Author Christian Wach

    (@needle)

    Hi Ryan,

    You can certainly hide the menu if you wish:

    .special_pages_heading, .special_pages_wrapper { display: none; }

    Or ask a sysadmin to put the PHP code I posted previously into a plugin which you can optionally activate on sub-sites when it’s required.

    Cheers, Christian

    Thread Starter ryanhuc

    (@ryanhuc)

    Perfect, thank you Christian. I am a bit new to WordPress and am learning as I go. Your speedy response was very much appreciated!

    Cheers,

    -Ryan

    Plugin Author Christian Wach

    (@needle)

    You’re welcome. Hope your CommentPress experiment goes well!

    Cheers, Christian

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove/Alter Special Pages Menu’ is closed to new replies.