Tagged: breadcrumbs
-
AuthorPosts
-
June 19, 2013 at 4:26 pm #24992
Hi,
according to my question concerning CORONA theme, where this worked fine (https://kriesi.at/support/topic/changing-blog-name-only-in-breadcrumbs-of-corona), I would like to have this with ENFOLD, too:
Changing my blog name only in ENFOLD’s breadcrumbs.
I’ve tried to replace in class-breadcrumbs.php
global $post;
echo '<p class="breadcrumb"><span class="breadcrumb_info">'.__('You are here:','avia_framework').'</span> ';
bloginfo('name');
echo "";
with
global $post;
echo '<p class="breadcrumb"><span class="breadcrumb_info">'.__('You are here:','avia_framework').'</span> ';
echo 'VIAINA Atelier';
as Dude suggested for CORONA, but this has no effect in ENFOLD.
It has even no effect, if I try to change the “you are here” with some other text …
It seems, that I’m looking at the wrong php file …
Thanks in advance for any help.
June 21, 2013 at 5:47 am #125404Enfold uses a new breadcrumb function which is also located in class-breadcrumbs.php – search for
$trail[] = '<a href="' . home_url() . '" title="' . esc_attr( get_bloginfo( 'name' ) ) . '" rel="home" class="trail-begin">' . $show_home . '</a>';
You can replace the get_bloginfo( ‘name’ ) function with your custom text. If you want to replace the $show_home variable content (by default it’s “Home”) I’d recommend to modify the breadcrumb parameters in functions-enfold.php and replace:
$defaults = array(
'title' => get_the_title($id),
'subtitle' => "", //avia_post_meta($id, 'subtitle'),
'link' => get_permalink($id),
'html' => "<div class='{class} title_container'><div class='container'><{heading} class='main-title'>{title}</{heading}>{additions}</div></div>",
'class' => 'stretch_full container_wrap alternate_color '.avia_is_dark_bg('alternate_color', true),
'breadcrumb' => true,
'additions' => "",
'heading' => 'h1' //headings are set based on this article: http://yoast.com/blog-headings-structure/
);with
$defaults = array(
'title' => get_the_title($id),
'subtitle' => "", //avia_post_meta($id, 'subtitle'),
'link' => get_permalink($id),
'html' => "<div class='{class} title_container'><div class='container'><{heading} class='main-title'>{title}</{heading}>{additions}</div></div>",
'class' => 'stretch_full container_wrap alternate_color '.avia_is_dark_bg('alternate_color', true),
'breadcrumb' => true,
'additions' => "",
'show_home' => __( 'MY CUSTOM TEXT', 'avia_framework' ),
'heading' => 'h1' //headings are set based on this article: http://yoast.com/blog-headings-structure/
);and insert your custom text instead of “MY CUSTOM TEXT”.
August 23, 2013 at 12:39 pm #125405Hi,
as you’ve recommended, I have now only changed in functions-enfold.php and added this line there:
<br />
'show_home' => __( 'Atelier', 'avia_framework' ),<br />but this has no effect:
August 24, 2013 at 6:58 am #125406Hey,
Edit framework > php > class-breadcrumb.php , find this code:
'show_home' => __( 'Home', 'avia_framework' ),
Replace it with:
'show_home' => __( 'Atelier', 'avia_framework' ),
Regards,
Ismael
August 28, 2013 at 12:00 pm #125407your last code works perfect, thanks a lot!
-
AuthorPosts
- The topic ‘Changing blog name ONLY in breadcrumbs of ENFOLD’ is closed to new replies.