Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Create a Custom Page - Not add to Menu Bar


I'm trying to add additional pages to my site, i.e. /forum/privacy etc. Using the ExtraPages app, it also adds it to the menu bar on the top - which I don't want. I tried searching for the code to make invisibility: hidden but I can't find the code as it seems to adjust the entire navbar. Can anyone help me? Thanks.

P.s. Custom pages plugin is not appropriate because it doesn't have confirmed working ability in 2.1.13.


  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP


    Confirmed where?

    I use Custom Pages with no issues in 2.1.13.

  • Options
    jackmaessenjackmaessen ✭✭✭
    edited November 2015

    This text Extra Page created in a list tag in your .Head. I dont know if it is your last list which is created, otherwise you can hide it by adding this in your css:

    .SiteMenu li:last-child {
        display: none;

    Another option is to modify the default.php of ExtraPage.
    Go to ExtraPage/default.php and look for this public function (in which the Extra page A is created)

        public function Base_Render_Before($Sender) {
             $WhichPages =    C('Plugins.ExtraPage.WhichPages');
             if($WhichPages == "") {
                $WhichPages = "All";
           if (($Sender->Menu) && (CheckPermission('Plugins.ExtraPage.View'))) {
               //$Sender->Menu->AddLink(T('Extra Page A'), T('ExtraPage A'), 'extrapagea'); // disable this line
              if (($WhichPages == "All") || ($WhichPages == "AB"))  {
               $Sender->Menu->AddLink(T('Extra Page B'), T('ExtraPage B'), 'extrapageb');
              if ($WhichPages == "All") {
               $Sender->Menu->AddLink(T('Extra Page C'), T('ExtraPage C'), 'extrapagec');

    Disable line nr 9 above and/or 11, 14 if necessary

Sign In or Register to comment.