How to remove the 'Archive' page?

I'd like to remove the Archive page which I think it provided by default. Obviously I can delete the archive.php file in the relevant theme but the menu entry persists. How can I remove the menu entry?

Thanks,

Ed.

Comments

  • acrylian Administrator, Developer
    You have to remove the link from the theme used, depending on which that is from all theme files.
  • Got it, thanks. For anyone else wondering how to do this (for the zpMasonry theme) I commented out the line referencing archive.php in file inc-menu.php (around line 45 - I've already tinkered with the original) in the 'nav' div element.

    Ed.
  • I want to do this as well.

    I'm using a copy of the default theme, found the reference in index.php but don't know where the line starts (I only understand vanilla html, not php)

    where (and how?) do I comment out, please?
  • I also added a slideshow option, but for some reason a few of the photos don't display in the slideshow. They don't have illegal characters in the name, I can't think of any other reason they wouldn't show.
    Aha - the photos with information to be displayed (there is a link only on these photos) will not display in the slideshow.
    And the titles are white on white, or black on black in other settings - I'm dumping the slideshow.
    Any other plugins available?
  • fretzl Administrator, Developer
    To answer your first question:

    In `index.php`, `album.php`, `image.php`, `search.php` and `password.php` find and remove this line:

    `<?php printCustomPageURL(gettext("Archive View"), "archive"); ?> |`

    Please start a new topic for your second question.
    Things get mixed up and incomprehensible otherwise.
  • thank you for the reply.
    I guessed this and tried it but when I update the file I get an error message: I wonder if the pipe ( | ) should stay?

    >Not Acceptable
    >An appropriate representation of the requested resource /gallery/zp-core/admin-themes-editor.php could not be found on this server.
    >Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
  • fretzl Administrator, Developer
    Something is preventing you from editing the files on the back end.

    Edit the files on your desktop and upload them to your theme folder using FTP.

    The pipe(|) should also be removed.
Sign In or Register to comment.