How to change text for printAlbumBreadcrumb?

In my image.php file, the breadcrumb link back to album.php displays the "album name" as the link text. I'd like to change it to something generic like "Back to the Album" or somesuch.

I messed around with printAlbumBreadcrumb, but the only parameters appear to be for 'before' text, 'after' text, and the 'title' displayed during mouseover/hover. Tried to echo printAlbumBreadcrumb in a href but it still printed out the gallery name as the text link, rather than solely providing the link address presented as my custom text.

I'm guessing there's an easy solution that I'm missing, can anyone point me in the right direction?

Comments

  • aster Member
    Anyone able to help out on this?
  • To save yourself the trouble of re-modifying the core files every time you upgrade ZenPhoto, I suggest making a custom version of the function specifically for your theme. Which theme are you using? It may already have a custom functions script into which you could copy the printAlbumBreadcrumb function, and change the 43rd-to last-line to use the specific text you desire in place of the call to getAlbumTitle().
  • aster Member
    Great, looks like I've got it. Just want to summarize in case I missed a step or made an error that will pop up later:

    I'm using a slightly modified version of the default theme and didn't see a custom functions file in there. So I created a simple blank functions.php and copied the printAlbumBreadcrumb code into there, then substituted my desired text for the call to getAlbumTitle(). Renamed printAlbumBreadcrumb slightly in functions.php to avoid any declarations conflict, and made the same change in image.php.

    Is that the correct process?
    Thanks again for the advice, very helpful as usual...
  • You have done it correctly.
Sign In or Register to comment.