Member
Member
cenkgoksel   2022-01-09, 22:12
#1

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

Administrator
Administrator
fretzl   2022-01-09, 23:37
#2

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

Member
Member
cenkgoksel   2022-01-10, 01:56
#3

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

Administrator
Administrator
acrylian   2022-01-10, 10:20
#4

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

Member
Member
cenkgoksel   2022-01-24, 03:44
#5

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.

Administrator
Administrator
acrylian   2022-01-24, 10:11
#6

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.

Administrator
Administrator
fretzl   2022-01-24, 19:11
#7

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



Member
Member
cenkgoksel   2022-01-29, 03:49
#8

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); ?>

Administrator
Administrator
fretzl   2022-01-29, 09:39
#9

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.

Administrator
Administrator
acrylian   2022-01-29, 10:06
#10

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.
Member
Member
cenkgoksel   2022-01-30, 01:37
#11

Thanks Very much for all information last code work perfect.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.