Button to return to main site?

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!

Comments

  • fretzl Administrator, Developer
    You mean you have Zenphoto separated from your main site ?
    Then you could code something like this in your theme pages:
    `link to mainsite`

    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-tutorial
  • 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.
  • fretzl Administrator, Developer
    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.
  • acrylian Administrator, Developer
    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.
  • Wete Member
    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
  • acrylian Administrator, Developer
    Not even I am sure right now if all standard themes really support that..
  • fretzl Administrator, Developer
    Thanks @Wete ! I forgot about that link being in the breadcrumb.

    It is supported by the default theme.
  • acrylian Administrator, Developer
    Thanks for the confirmation, I meant we did setup all official themes with that a while ago.
  • Thanks again for all the help folks!
Sign In or Register to comment.