Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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.

    #125404

    Enfold 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”.

    #125405

    Hi,

    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:

    #125406

    Hey,

    Edit framework > php > class-breadcrumb.php , find this code:

    'show_home' => __( 'Home', 'avia_framework' ),

    Replace it with:

    'show_home' => __( 'Atelier', 'avia_framework' ),

    Regards,

    Ismael

    #125407

    your last code works perfect, thanks a lot!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Changing blog name ONLY in breadcrumbs of ENFOLD’ is closed to new replies.