Sorry, I'm kind of new to web design. I've installed Zenphoto and was wondering if there was a way to setup a button or link in the gallery to return to my main site after visiting the gallery. Thanks for any info!
zenphoto forums » General Zenphoto Discussion
Button to return to main site?
(10 posts)-
Posted 12 months ago #
-
You mean you have Zenphoto separated from your main site ?
Then you could code something like this in your theme pages:
<a href="http://www.mainsite.com>link to mainsite</a>Or you can use
<?php echo getMainSiteURL(); ?>
This prints the URL of the main website as set by the "Website URL" option on the gallery options tab.Please try to familiarize yourself a bit with Zenphoto.
The theming tutorial is always a good place to start.
http://www.zenphoto.org/news/theming-tutorialDon't forget to read the Forum rules and usage resourcesPosted 12 months ago # -
Sorry, I may not have explained well. Like I said, new to design.
I'm just using the default theme, which is fine. And I installed Zenphoto to \gallery on my website. So on my home page if they click the link for gallery, it goes there, but other than using the back button there's not a way to return to the main page.
Instead of doing it that way, would it have been better to have zenphoto load into a frame on my site? Rather than going to the gallery itself? I wasn't sure how most folks did it.Posted 12 months ago # -
So you made a link to gallery on your main site.
You can of course use the same technique to make links to your main site on the gallery.
Just put your link code into the theme pages where you want the link to appear.
Don't forget to read the Forum rules and usage resourcesPosted 12 months ago # -
Of course you could also use a frame/iframe but then no one will be able to link to anything in your gallery. fretzl explained what you need to do.
Don't forget to read the Forum rules and usage resourcesPosted 11 months ago # -
Why don't you just use the built-in feature? There is a field in Settings -> Gallery where you have to put in the URL of your website and a name for ist. After that there is a link to your homepage in the breadcrump.
Wete
Posted 11 months ago # -
Not even I am sure right now if all standard themes really support that..
Don't forget to read the Forum rules and usage resourcesPosted 11 months ago # -
Thanks @Wete ! I forgot about that link being in the breadcrumb.
It is supported by the default theme.
Don't forget to read the Forum rules and usage resourcesPosted 11 months ago # -
Thanks for the confirmation, I meant we did setup all official themes with that a while ago.
Don't forget to read the Forum rules and usage resourcesPosted 11 months ago # -
Thanks again for all the help folks!
Posted 11 months ago #
Reply
You must log in to post.