Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1213220
    bryan1976
    Participant

    Hi,

    My site is finished and looking great – thanks for your awesome support.

    2 remaining things I would like resolved please:

    1) How can I get the slider that is now on my woo commerce pages onto my blog pages? Please see these 2 pages…how can I make the 2nd like the 1st:

    https://theaudiobarn.co.uk/product/naim-nap-100-power-amplifier/

    https://theaudiobarn.co.uk/2016/10/12/devialet-vivid-audio-open-day/

    2) On this page you will see that the breadcrumbs is not below the header….can you help this?

    Many thanks,

    Bryan

    #1213863
    Rue Nel
    Moderator

    Hello Bryan,

    Thanks for writing in!

    1] To include the slider in your blog single posts, please update the code in your child theme’s functions.php and use this instead:

    // Add custom slider to WooCommerce Shop and product pages
    // =============================================================================
    function rev_slider_in_shop() {
      if ( x_is_product_index() || x_is_product() || is_single() ) {
        echo do_shortcode( '[rev_slider alias="Shop-Slider"]' );
      }
    }
    add_action('x_after_view_global__navbar', 'rev_slider_in_shop');
    // =============================================================================

    2] Once the slider is in place, the breadcrumb should be fixed.

    Please let us know if this works out for you.

    #1214249
    bryan1976
    Participant
    This reply has been marked as private.
    #1214409
    Lely
    Moderator

    Hi Bryan,

    Upon checking, this is what you have on your child theme functions.php file:

    // Add custom slider to WooCommerce Shop and product pages
    // =============================================================================
    function rev_slider_in_shop() {
      if ( x_is_product_index() || x_is_product() ) {
        echo do_shortcode( '[rev_slider alias="Shop-Slider"]' );
      }
    }
    add_action('x_after_view_global__navbar', 'rev_slider_in_shop');
    // =============================================================================

    On our suggestion on the previous reply, we have update this line of code:
    if ( x_is_product_index() || x_is_product() ) {
    To this:
    if ( x_is_product_index() || x_is_product() || is_single() ) {
    As you can see is_single() function was added. It refers to single post page.
    Please update the current code you have and the slider will appear on the single post page too.

    Hope this helps.

    #1214491
    bryan1976
    Participant

    Awesome thanks thats perfect!

    Is there a way of actually removing the breadcrumbs from all pages other than woo commerce pages?

    I am using Yoast, and have breadcrumbs NOT enabled in cornerstone.

    Thanks,

    Bryan

    #1215029
    Nabeel A
    Moderator

    Hi again,

    Please add the following code in your Customizer:

    .x-breadcrumb-wrap {
        display: none !important;
    }
    .woocommerce .x-breadcrumb-wrap {
        display: block !important;
    }

    Let us know how this goes!

    #1215185
    bryan1976
    Participant

    Hi,

    110%!! All looking fantastic!

    Thank you for all your support guys.

    Cheers,

    Bryan

    #1215532
    Lely
    Moderator

    You’re welcome Bryan!

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1213220 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>