Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #224901

    Hello,

    I am having some troubles with the breadcrumbs.

    This post is similar to the problem i have link

    My problem is that, i have created a page of my own called “Home Page”, and set it as my frontpage under “Theme Options”. (I have not changed anything under Settings>Reading. It is set to to show the “your latest posts” by default).

    What i don’t understand, is why Enfold ignores that page and displays a page called “Home” that i have not created.

    I would like to remove that “Home” page completely and display the proper “Home Page” i created.

    It evens gets weirder when using 2 or more languages as they get mixed up together creating a big mess.

    Thanks in advance.

    #225402

    Hi george!

    “Home” is not a page but a static link which points to the homepage. If you want to change the text of the “home” link (i.e. with a custom page title) insert this code into the functions.php file (at the very bottom):

    
    add_filter('avia_breadcrumbs_args', 'avia_change_home_breadcrumb', 10, 1);
    function avia_change_home_breadcrumb($args){
    $args['show_home'] = 'Home Page';
    return $args;
    }
    

    If you need to translate the link text to other languages use this code instead

    
    add_filter('avia_breadcrumbs_args', 'avia_change_home_breadcrumb', 10, 1);
    function avia_change_home_breadcrumb($args){
    $args['show_home'] = 'Home Page';
    
    if(defined('ICL_LANGUAGE_CODE') && ICL_LANGUAGE_CODE == 'de')
    {
     $args['show_home'] = 'Startseite';
    }
    return $args;
    }
    

    and replace “de” with the shortcode of your language and “Startseite” with your translation of “Home Page”.

    Best regards,
    Peter

    #225414

    Hello,

    Thanks for the response.

    Your solution though does not fix my problem.

    Since i create a customized homepage of my own, i want that to be displayed, because then i will end up with 2 homepages again.

    eg. Home > Home Page > My page.

    #226032

    Hi!

    If you want to remove the “Home” link complete try this code instead:

    
    add_filter('avia_breadcrumbs_args', 'avia_change_home_breadcrumb', 10, 1);
    function avia_change_home_breadcrumb($args){
     $args['show_home'] = false;
    return $args;
    }
    

    Cheers!
    Peter

    #226119

    excellent!

    Thank you very much.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Wrong "Home" Page in breadcrumbs’ is closed to new replies.