Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21322

    Hi

    I want to use Breadcrumb NavXT plugin instead of the breadcrumb functions of Abundance.

    http://wordpress.org/extend/plugins/breadcrumb-navxt/installation/

    The code to add Breadcrumb NavXT:

    <div class="breadcrumbs">

    <?php if(function_exists('bcn_display'))

    {

    bcn_display();

    }?>

    </div>

    These are my edit solution:

    In functions.php line 178

    echo "<div class='title_container'>";

    /*if(!is_front_page()) echo avia_breadcrumbs();*/

    echo "<div class='breadcrumb-trail'>";

    if(function_exists('bcn_display'))

    {

    bcn_display();

    }

    echo "</div>";

    echo '<h1 class="page-title">'.$title.'</h1>';

    if($_product && is_singular())

    {

    echo "<div class='price_container'>";

    woocommerce_template_single_price($post, $_product);

    echo "</div>";

    }

    echo "</div>";

    }

    That fix my problem. But now when I use template builder, and I use in some pages the element “Heading + Breadcrumb”, that solution didn’t worked.

    Because if I use that in template builder I have to edit the code in /includes/helper-templates.php

    line 327

    if($heading)

    {

    $output .= "<div class='title_container $titleClass'>";

    ##HERE IS WHERE I THINK I HAVE TO ADD THE FUNCTION OF BREADCRUMB NAV XT##

    if($dynamic_heading_bc == 'yes' && !is_front_page())$output .= avia_breadcrumbs();

    $output .= "<h1>".$heading."</h1>";

    if($dynamic_heading_custom_sub) $output .= wpautop($dynamic_heading_custom_sub);

    $output .= "</div>";

    }

    return $output;

    }

    I just need help to add the code from Breadcrumb NavXT in /includes/helper-templates.php

    #111365

    Hey!

    Yes, replace following line:

    if($dynamic_heading_bc == 'yes' && !is_front_page())$output .= avia_breadcrumbs();

    with:

    if($dynamic_heading_bc == 'yes' && !is_front_page())$output .= bcn_display(true);

    Best regards,

    Peter

    #111366

    Thank you!! :)

    #111367

    Hi albertorrent,

    Glad that Peter helped you. :)

    Cheers,

    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Integrate Plugin Breadcrumb NavXT’ is closed to new replies.