Tagged: page title
-
AuthorPosts
-
November 7, 2015 at 6:17 pm #531904
Hi, Enfold expert please help me here.
check my site: i have created a page with title “Blogger Templates” and applied it as front-page…now my blog show its title on default homepage.
now the title “Blogger Templates” seems on homepage but when i click on any post then it show “Blog-Latest News”
what to do if the “Blogger Templates” title also appear instead of that “Blog-Latest News” which show on post pages.
like here…
http://themezy.tk/drill-mag-one-colum-responsive-theme/i want to show the same Blogger Templates title for all posts pages…not the blog-latest-news
in other words: replace the posts pages title “Blog-latest News” with title “Blogger Templates” thats i want.
to show you example: go to this site. http://www.gooyaabitemplates.com it show “Blogger Templates” on homepage and when you click on any post the same title “Blogger Templates” also show on post pages.
thanks.
- This topic was modified 9 years ago by hamzakhankhan.
November 8, 2015 at 3:56 pm #532130Hey Hafeez Ullah!
Please see – http://kriesi.at/documentation/enfold/replace-the-default-blog-latest-news-title/
Cheers!
YigitNovember 8, 2015 at 7:31 pm #532206HI, Yigit,
this is not my problem what you thought…i explain so in detail….this code remove the “blog-latest news” and replace it with the post title….i dont want to replace it with post title….
i want to replace “Blog-latest News” with the same title of my frontpage title “Blogger Templates”
go to site: http://themezy.tk/ to see the “Blogger Templates” Title of frontpage
check the screenshot. http://prntscr.com/90hb4h
November 8, 2015 at 8:18 pm #532220Hey!
Renaming the categories title, could not work?
Else, the only other way I can think about, is to actually modify the template files.Cheers!
BasilisNovember 15, 2015 at 8:11 pm #536182HI, Basilis,
where i can edit the “Latest-Blog news” texts…which file it is located so that i put my own texts instead of that.
November 15, 2015 at 8:13 pm #536183Hey!
You can try rename those elements, by using https://wordpress.org/plugins/loco-translate/
which is a great plugin. Just rename the elements through that and no need to modify anything.Regards,
BasilisFebruary 7, 2016 at 10:45 pm #579265hy.. where i need to insert thi9s code ???
add_filter(‘avf_title_args’, ‘fix_single_post_title’, 10, 2);
function fix_single_post_title($args,$id)
{
if ( $args[‘title’] == ‘Blog – Latest News’ )
{
$args[‘title’] = get_the_title($id);
$args[‘link’] = get_permalink($id);
$args[‘heading’] = ‘h1’;
}return $args;
}I want to change the defolt name “Blog-Latest News”
February 9, 2016 at 12:28 pm #580337Hi!
You can add the code in the functions.php file. Please use this:
add_filter('avf_title_args', 'avf_title_args_mod', 10, 2); function avf_title_args_mod($args,$id) { if ( $args['title'] == 'Blog – Latest News' ) { $args['title'] = get_the_title($id); $args['link'] = get_permalink($id); $args['heading'] = 'h1'; } return $args; }
Cheers!
IsmaelFebruary 9, 2016 at 9:52 pm #580598Where exacly ? can you please help me ?
February 11, 2016 at 5:46 pm #581778Hi!
@buscofen89 Please go to Appearance > Editor and open functions.php file and add the code in thereRegards,
YigitFebruary 11, 2016 at 10:22 pm #581898I ad the code in functions.php, but nothing happen :(
February 11, 2016 at 10:36 pm #581902Hi!
@buscofen89 Please start a new thread and post your login credentials there in private content field. If you post them here, it will be visible to the OPBest regards,
YigitFebruary 11, 2016 at 11:01 pm #581913Ok… here is the details log in to the site
February 12, 2016 at 12:26 am #581942hi, @buscofen89
You can easily replace this “Blog-Latest News” with your own text by simple goes to here:
go to appearance editor and edit >> single.php (single post)
screenshot: http://prntscr.com/a22on1
press Ctr+f and look for “Blog-Latest News” and replace with your owns texts.
thats is Done:
February 12, 2016 at 7:33 am #582052Tnx hamzakhankhan but i have many blog-last news pages, white diferent topics,and ai want to replace the blog-lastnews white the name of the post
February 15, 2016 at 8:06 am #583158Hi!
Replace the code in the functions.php file with this:
add_filter('avf_title_args', 'avf_title_args_mod', 10, 2); function avf_title_args_mod($args,$id) { if ( is_single() ) { $args['title'] = get_the_title($id); $args['link'] = get_permalink($id); $args['heading'] = 'h1'; } return $args; }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.