Member
Member
joshermens   07-03-2015, 18:48
#1

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.

Administrator
Administrator
fretzl   07-03-2015, 22:33
#2

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

Member
Member
joshermens   08-03-2015, 11:20
#3

Hi, Thanks for your response.

But....

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

Zenphoto is a fresh new installation.

Administrator
Administrator
fretzl   08-03-2015, 15:34
#4

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

Member
Member
vincent3569   08-03-2015, 19:59
#5

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

Administrator
Administrator
fretzl   08-03-2015, 20:10
#6

Thanks Vincent. Didn't realize that.

Member
Member
joshermens   09-03-2015, 08:58
#7

Hi

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

i think we can close this item.

Administrator
Administrator
fretzl   09-03-2015, 09:27
#8

Glad it works!

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.