Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #994151

    Hello,
    How can i change the top-left title “Blog : A la une” :
    Please see this capture : https://ibb.co/m9vzfe

    Thanks for your help,
    Nicolas

    #994406

    Hey plichart1,

    Here is a thread for you to consider

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #994530

    Please it doesn’t help me at all …

    #995041

    Hi plichart1,

    You will need to replace this code in single.php line 11:

    $title  = __('Blog - Latest News', 'avia_framework'); //default blog title

    I would suggest using a child theme: https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#why-child-theme so you can safely update the Enfold theme without losing the changes made.
    Hope this helps.

    Best regards,
    Nikko

    #995262

    Thank a lot.
    I’d also like this text to link to my “news” page, insteed of the homepage. How can i do this please ?
    Regards,
    Nicolas

    #995317

    Hi,

    Please add this code to your child theme functions.php:

    
    add_filter('avf_title_args', 'avf_title_args_mod', 10, 2);
    function avf_title_args_mod($args,$id)
    {
         if ( is_singular('post') ) {
            $args['title'] = get_the_title($id);
            $args['link'] = get_permalink($id);
         }
        return $args;
    }
    

    You can replace get_the_title($id) with a static text like:

    
    $args['title'] = 'My news page';
    

    and replace $args[‘link’] = get_permalink($id); with a static url to your news page like:

    
    $args['link'] = 'https://www.idt.pf/actualites/';
    

    Best regards,
    Dude

    #995634

    Awesome ! Thanks a lot !

    #995659

    Hi,

    Glad we could help you :)

    Best regards,
    Dude

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Change blog title’ is closed to new replies.