Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #560344

    Hi,

    is there a way to differentiate the title page and the title appearing on the title bar?

    #560468

    Hi eisme,

    Not sure what you mean by that, could you try to explain a bit further please? Send us a link to the site in question as well.

    Thanks,
    Rikard

    #560487

    hi,
    link is “at private”. As you would notice, i’ve used the title bar “in blue” as the header of the page. my question is i want to change the name of <title> or this webpage without changing the title bar name.

    hope i explained it correctly.

    #560506

    Hi!

    Please try adding following code to Functions.php file in Appearance > Editor

    add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    function fix_single_post_title($args,$id)
    {
        if (is_page(182))
        {
            $args['title'] = 'New title on blue bar';
            $args['link'] = get_permalink($id);
            $args['heading'] = 'h1';
        }
    
        return $args;
    }

    Cheers!
    Yigit

    #560516

    hi Yigit,

    did this but im not sure how can i change now the page title -since we only have the one box to key in the page title.

    #560521

    Hey!

    You can simply adjust the text ‘New title on blue bar’ in the code i posted above

    Best regards,
    Yigit

    #560522

    hi Yigit,

    perhaps my questions should have been how to create this type of <h1> fullwidth background color and text in bold white – similar to what i have right now;; that is without using the title bar

    #560526

    Hey!

    You can add Color Section element to your page and then add Special heading element into it. Set color sections color to blue and special heading elements color to white :)

    Regards,
    Yigit

    #561000

    Hi Yigit,

    what you gave me initially worked out great. questions is how could i do this in my other webpages; i.e. which code should i modify? i need it for all webpages

    add_filter(‘avf_title_args’, ‘fix_single_post_title’, 10, 2);
    function fix_single_post_title($args,$id)
    {
    if (is_page(182))
    {
    $args[‘title’] = ‘New title on blue bar’;
    $args[‘link’] = get_permalink($id);
    $args[‘heading’] = ‘h1’;
    }

    return $args;
    }

    #561448

    Hi!

    Well for many pages using color section with special heading element could be an easier solution :)

    If you would like to use the code, please use it as following

    add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    function fix_single_post_title($args,$id)
    {
        if (is_page(182))
        {
            $args['title'] = 'New title on blue bar';
        }
        if(is_page(59))
        {
            $args['title'] = 'Another title on blue bar for page with ID 59';
        }
        if(is_page(61))
        {
            $args['title'] = 'And another title on blue bar for page with ID 61';
        }
        return $args;
    }

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.