Hi,
In gallery there is a small button in the top left hand corner that links back to the homepage of the gallery.
I would like to change this link to return to a different website homepage but although i have tried everything i can't figure out how to change the link.
Please could someone forward me the details on how to change it, please bear in mind that i have limited knowledge on PHP so i would need the exact location of the page to modify etc.
Thanks in advance.
Jamie
Posts: 16503
http://codex.gallery2.org/Gallery2:User_Contributions#Mods.2FPatches
I don't know how out of date this is, ask if you run into problems:
http://gallery.menalto.com/node/30964#comment-130313
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
nivekiam,
Thanks for that however i am completely useless when it comes to PHP code and i can barely understand any of that, do you have a a step by step procedure on how to change it?
Posts: 16503
Ah, things have changed a bit since that code was written. This is very easy now.
First take /modules/core/templates/blocks/BreadCrumb.tpl and copy that to /themes/YourTheme/templates/core_1/blocks/BreadCrumb.tpl
You'll probably need to create the core_1/blocks directories
Now open up your copy of BreadCrumb.tpl, near the top of the code you'll see this:
<div class="{$class}"> {foreach name=parent from=$theme.parents item=parent} <a href="{g->url params=$parent.urlParams}" class="BreadCrumb-{counter name="BreadCrumb"}"> {$parent.title|markup:strip|default:$parent.pathComponent}</a> {if isset($separator)} {$separator} {/if} {/foreach}Just add the bit in bold:
<div class="{$class}"> <a href="/" class="BreadCrumb-{counter name="BreadCrumb"}">Home</a> {foreach name=parent from=$theme.parents item=parent} <a href="{g->url params=$parent.urlParams}"> class="BreadCrumb-{counter name="BreadCrumb"}"> {$parent.title|markup:strip|default:$parent.pathComponent}</a> {if isset($separator)} {$separator} {/if} {/foreach}____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
Where do i add the actual link bit in? do i do it in the core_1 or the templates copy?
This is what i tried in both of them but neither works, it still links to the gallery home page.
<a href="/" class="BreadCrumb-{counter name="BreadCrumb"}">http://www.cotswoldkoi.co.uk</a>
Posts: 16503
Step 1
Step 2
Going to http://www.cotswoldkoi.co.uk/gallery looks like it's working to me.
Oh wait, are you wanting to change where your logo links to? See step 5 here:
http://codex.gallery2.org/Gallery2:How_to_Add_Custom_Banner_or_Remove_Gallery_Logo
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here