-
AuthorPosts
-
January 6, 2016 at 7:40 am #560344
Hi,
is there a way to differentiate the title page and the title appearing on the title bar?
January 6, 2016 at 1:04 pm #560468Hi 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,
RikardJanuary 6, 2016 at 1:38 pm #560487hi,
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.
January 6, 2016 at 2:23 pm #560506Hi!
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!
YigitJanuary 6, 2016 at 2:29 pm #560516hi 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.
January 6, 2016 at 2:34 pm #560521Hey!
You can simply adjust the text ‘New title on blue bar’ in the code i posted above
Best regards,
YigitJanuary 6, 2016 at 2:35 pm #560522hi 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
January 6, 2016 at 2:37 pm #560526Hey!
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,
YigitJanuary 7, 2016 at 6:07 am #561000Hi 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;
}January 7, 2016 at 7:11 pm #561448Hi!
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 -
AuthorPosts
- You must be logged in to reply to this topic.