Modify printHeadTitle() function manually

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

Comments

  • acrylian Administrator, Developer
    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 the `html_meta_tags` plugin is active and only the tags you have enabled.

    Rule of thumb if a standard function does not fit your purpose:
    1. Copy the function `printHeadTitle()`from `zp-core/template-function.php` to your theme's `functions.php`
    2. Rename it to for example `printMyHeadTitle()`;
    3. Modify it to your liking
    4. Modify the theme to use your function instead of the original
Sign In or Register to comment.