-
Author
Tagged: breadcrumbs, links, HOME
-
July 31, 2014 at 23:34 #24268
Dhyana
ParticipantHi guys,
I need to change the HOME link in the breadcrumbs. I already changed the logo links (big one and the little one that hovers when you scroll down).Where is the code for the breadcrumbs?
And is there something more complicated than changing the php trigger to the link I want?
THANK YOU!
Attachments:
You must be logged in to view attached files.August 1, 2014 at 13:38 #24315Catalin
ModeratorHello,
PLease take a look at his file:
..\sweetdate\framework\functions\breadcrumb.php around line 104. There you have the function where the breadcrumbs are created.
COPY CODEif ( !is_front_page() && $args['show_home'] ) { if ( is_multisite() && true === $args['network'] ) { $trail[] = '<a href="' . network_home_url() . '">' . $args['show_home'] . '</a>'; $trail[] = '<a href="' . home_url() . '" title="' . esc_attr( get_bloginfo( 'name' ) ) . '" rel="home">' . get_bloginfo( 'name' ) . '</a>'; } else { $trail[] = '<a href="' . home_url() . '" title="' . esc_attr( get_bloginfo( 'name' ) ) . '" rel="home">' . $args['show_home'] . '</a>'; } }If you want to change the text “Home” you need to modify thi array from the same file ( around line 25 )
COPY CODE$defaults = array( 'container' => 'ul', // div, nav, p, etc. 'container_class' => '', 'item_tag' => 'li', 'separator' => '', 'before' => '', 'after' => false, 'front_page' => true, 'show_home' => __( 'Home', 'kleo_framework' ), 'network' => false, 'echo' => true );Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
The topic ‘Change the HOME link in Breadcrumbs’ is closed to new replies.

