Home Forums WoodMart support forum Dynamic Page Title

Dynamic Page Title

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #473421

    ignitionstudio
    Participant

    Hi! I am attempting to change a few page titles based on page id and am having no luck with this filter… was hoping someone could help?

    Here is what I was trying to use…

    add_filter( ‘woodmart_page_title’, ‘custom_page_title’, 10, 1 );

    function custom_page_title( $page_title)
    {
    if ( is_page(array( ‘147734’, ‘149559’ , 149437′ ) ))
    $page_title = ‘Woods<sup>®</sup> Co-Op’;

    return $page_title;
    }

    Sample page in private content below…

    #473632

    Luke Nielsen
    Keymaster

    Hello,

    If you want to add some content to the Page title, then you should use this woodmart_page_title_after_title hook.

    If you want to change the Page title fully, you need to copy in the inc/template-tags/template-tags.php file that woodmart_page_title function to the child theme and do changes per your need there.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)