Tagged: 

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #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.

    http://themezy.tk

    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.

    #532130
    #532206

    HI, 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

    #532220

    Hey!

    Renaming the categories title, could not work?
    Else, the only other way I can think about, is to actually modify the template files.

    Cheers!
    Basilis

    #536182

    HI, 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.

    #536183

    Hey!

    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,
    Basilis

    #579265

    hy.. 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”

    #580337

    Hi!

    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!
    Ismael

    #580598

    Where exacly ? can you please help me ?

    #581778

    Hi!


    @buscofen89
    Please go to Appearance > Editor and open functions.php file and add the code in there

    Regards,
    Yigit

    #581898

    I ad the code in functions.php, but nothing happen :(

    #581902

    Hi!


    @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 OP

    Best regards,
    Yigit

    #581913

    Ok… here is the details log in to the site

    #581942

    hi, @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:

    #582052

    Tnx 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

    #583158

    Hi!

    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

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