ZenphotoCMS Forum
Edit Title - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Edit Title (/thread-13688.html)



Edit Title - cenkgoksel - 2022-01-09

Hi everyone just want to ask is there any way to edit title of the photos or album pages.
for example ;
in this page:
https://www.fdream.co.uk/index.php?album=Cream&image=fluffy-103.jpg

title: Handmade Cream Blanket | Cream blankets | Fluffy Dreams

in this page title can i edit like how i want be couse i want to take of ( cream blankets ) from middle be couse its to long and not make sanse.

Thanks very much




Edit Title - fretzl - 2022-01-09

I see you're using the zp-base theme. Try this: in the theme folder find inc/header.php. Now look for printHeadTitle(); (line 101)
and change this to printHeadTitle(' | ', false, false);.
Further reading:
https://www.zenphoto.org/news/theming-tutorial/
and
https://docs.zenphoto.org/1.5.x/function-printHeadTitle.html




Edit Title - cenkgoksel - 2022-01-10

Thanks for answer
Do we have a chance to add separate titles to the album and photo pages one by one?




Edit Title - acrylian - 2022-01-10

Do we have a chance to add separate titles to the album and photo pages one by one?

Not without editing/modifying the theme. THere are separate functions available. Please review the links fretzl posted for the basics of themining




Edit Title - cenkgoksel - 2022-01-24

Dear @acrylian and @fretzl thanks very much for response me again.
I have been reading many times try understand to many times but I do not understand how to modifiying the theme. Im not a programmer but i do my website i can open and change the codes in php thats not a problem but still not understand how is it going to be.
i have change printHeadTitle(); (line 101)
and change this to printHeadTitle(' | ', false, false)
on header.php
but noting happened. what i have to do more can you please explain to me with little bid more details thanks very much sory for take your times.




Edit Title - acrylian - 2022-01-24

That actually would work. Are you sure you edited the right file and actually the one on your site?

Also looking at the source code quickly you should check your modifications as I see invalid code (which is not form the zbase theme itself):

    img { max-width: 100%; height: auto; } 

    [Image: https://www.fdream.co.uk/logo.jpg]
   (…)

Beside is a html element that is deprecated it is invalid within the header as is the `' and element.




Edit Title - fretzl - 2022-01-24

About the title:
You are correct. It doesn't work like it should. Sorry for that.
We are looking into it.

In the meantime try this:

In inc/header.php (line 101) replace

``

with






Edit Title - cenkgoksel - 2022-01-29

Dear @acrylian and @fretzl thanks very much for your help again.

Dear @fretzl i edit the printheadtitle code like how u say;


if ((class_exists('RSS')) && ($rss_option != null)) printRSSHeaderLink($rss_option,$rss_title); ?>




Edit Title - fretzl - 2022-01-29

I guess the Gallery title() is needed here instead of the getMainSiteName().

Try this instead:



from photo pages takes out middle title and keep only main one plus this page name like this.
That is what this code does.




Edit Title - acrylian - 2022-01-29

To explained the difference:

  • gallery title: The title of your Zenphoto site. Gallery is a general term used whole site "gallery".
  • main site title: The title of an optional parent site in case you use Zenphoto as a part of/within another site.



Edit Title - cenkgoksel - 2022-01-30

Thanks Very much for all information last code work perfect.