Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1435883

    Hi dear Ismael,
    i like the Breadcrumbs, it is good.
    and i want to customized some
    1. change the backgroud and fonts color.
    i want to change background white and fonts black

    2. how can i change the Breadcrumbs. because i find it is a bit wrong.

    You are here:Home/Velvet Fabric/Polyester spandex warp knit fabric
    ==>
    You are here:Home/Products/Polyester spandex warp knit fabric

    thanks

    Wang

    #1435938

    Hey Yaphoon,

    Thank you for opening another thread.

    1.) To adjust the breadcrumb trail, you can add the following filter in the functions.php file. Make sure to replace the value of the href attribute with the URL of the product page.

    function avia_breadcrumbs_trail_mod($trail)
    {
        if ( is_product() || is_product_category() ) {
            $trail[1] = '<a href="https://site.com/product" title="Product Page" rel="">Product</a>';
        }
        return $trail;
    }
    add_filter('avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 50, 1);
    

    2.) And to change the color of the breadcrumb trail, add this css code:

    .stretch_full.container_wrap.alternate_color.title_container {
      background: #ffffff;
      color: #000000;
    }
    
    .alternate_color .breadcrumb, .alternate_color .breadcrumb a, #top .alternate_color.title_container .main-title, #top .alternate_color.title_container .main-title a {
      color: #000000;
    }

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.