Junior Member
Junior Member
saeeded   2014-09-20, 20:56
#1

hi to all
I want to modify meta tags on the (index,album,image,search,archive) header.
in theme>basic> Just able to be modify under PrintHeadTitle() function and if I want put my meta tags in theme files, meta tags get duplicated.
Now I want to modify ZenPhoto "printHeadTitle() function manually and use DB value in meta tags for build different content, Keyword or description.
in current case ZenPhoto make album and pages with same description and most time "album" script function build pages with null "Meta tags>Keyword".
.
thank for help me how to modify printHeadTitle() function.

thanks
sorry for my english
edrisi

Administrator
Administrator
acrylian   2014-09-21, 07:05
#2

The printHeadTitle()function only prints the in the theme page section. It does not print any tags. Official themes only have only one tag built in for the charset encoding.

`tags are only added automatically if thehtml_meta_tags` plugin is active and only the tags you have enabled.

Rule of thumb if a standard function does not fit your purpose:

[list=1]
[]Copy the function printHeadTitle()from zp-core/template-function.php to your theme's functions.php
[
]Rename it to for example printMyHeadTitle();
[]Modify it to your liking
[
]Modify the theme to use your function instead of the original
[/list]

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