Tagged: x
-
AuthorPosts
-
October 12, 2016 at 12:03 pm #1213220
bryan1976ParticipantHi,
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
October 12, 2016 at 8:19 pm #1213863
Rue NelModeratorHello 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.
October 13, 2016 at 2:40 am #1214249
bryan1976ParticipantThis reply has been marked as private.October 13, 2016 at 5:13 am #1214409
LelyModeratorHi 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.
October 13, 2016 at 6:38 am #1214491
bryan1976ParticipantAwesome 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
October 13, 2016 at 12:23 pm #1215029
Nabeel AModeratorHi 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!
October 13, 2016 at 2:33 pm #1215185
bryan1976ParticipantHi,
110%!! All looking fantastic!
Thank you for all your support guys.
Cheers,
Bryan
October 13, 2016 at 8:11 pm #1215532
LelyModeratorYou’re welcome Bryan!
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1213220 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
