ZenphotoCMS Forum
zpArdoise - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: zpArdoise (/thread-11900.html)



zpArdoise - joshermens - 07-03-2015

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.




zpArdoise - fretzl - 07-03-2015

In the zpArdoise theme options you can un-check the [i]Show Archive link[/i] option.




zpArdoise - joshermens - 08-03-2015

Hi, Thanks for your response.

But....

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

Zenphoto is a fresh new installation.




zpArdoise - fretzl - 08-03-2015

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', '', ' | '); }




zpArdoise - vincent3569 - 08-03-2015

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




zpArdoise - fretzl - 08-03-2015

Thanks Vincent. Didn't realize that.




zpArdoise - joshermens - 09-03-2015

Hi

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

i think we can close this item.




zpArdoise - fretzl - 09-03-2015

Glad it works!

We don't close topics unless the conversation gets ugly ;-)