zpArdoise

Hi, I am new in this forum. Sorry if i do something wrong.

Question:
How can I disable the Archive option in Zenphoto or in zpArdoise theme.

Thanks for the response.

Comments

  • fretzl Administrator, Developer
    In the zpArdoise theme options you can un-check the Show Archive link option.
  • Hi, Thanks for your response.

    But....

    the link is always visible, even though the box is un-checked.

    Zenphoto is a fresh new installation.
  • fretzl Administrator, Developer
    Ha yes, I see the theme is missing a check.

    In `inc_footer.php` find this line:

    `printCustomPageURL(gettext('Archive View'), 'archive', '', ' | ');`

    and replace it with this:
    `
    if ( getOption('show_archive') ) {
    printCustomPageURL(gettext('Archive View'), 'archive', '', ' | ');
    }
    `
  • vincent3569 Member, Translator
    hi
    the option is for display archives item in menu.
    archives link is allways visible in footer.
    you can suppress the code pointed by fretzl or modify it as described
  • fretzl Administrator, Developer
    Thanks Vincent. Didn't realize that.
  • Hi

    Thanks for all the responses.
    i changed the code and now it is correct.

    i think we can close this item.
  • fretzl Administrator, Developer
    Glad it works!

    We don't close topics unless the conversation gets ugly ;-)
Sign In or Register to comment.