-
AuthorPosts
-
February 17, 2014 at 11:39 am #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.
February 18, 2014 at 10:19 am #225402Hi 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,
PeterFebruary 18, 2014 at 10:38 am #225414Hello,
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.
February 19, 2014 at 9:08 am #226032Hi!
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!
PeterFebruary 19, 2014 at 12:09 pm #226119excellent!
Thank you very much.
-
AuthorPosts
- The topic ‘Wrong "Home" Page in breadcrumbs’ is closed to new replies.