Tagged: x
-
AuthorPosts
-
March 19, 2017 at 5:04 am #1412629
RaynardKyleGuzmanParticipantHi all, aside from the ones mentioned above, a little more customization. Thanks!
1. Align center the product name and price in the product page. (Image provided)
2. Remove the display of how much is left in the inventory, and the category and tags label. (Both encircled red in the image).
Thanks! Cheers!
March 19, 2017 at 6:52 pm #1413009
RadModeratorHi there,
3. That’s possible, but through custom code and slider shortcode. Please add this code to your child theme’s functions.php
add_action('x_before_view_global__slider-below', 'x_custom_sliders'); function x_custom_sliders () { if( x_is_product_category() ) { $categories [121] = '[slider_shortcode_here]'; $categories [153] = '[slider_shortcode_here]'; $categories [198] = '[slider_shortcode_here]'; echo do_shortcode( $categories[get_queried_object()->term_id] ); } if( x_is_shop() ) { echo do_shortcode( '[slider_shortcode_here]' ); } if( x_is_product() ) { echo do_shortcode( '[slider_shortcode_here]' ); } }You just need to replace
[slider_shortcode_here]with your slider shortcode, eg. Rev sliders. Then the 121, 153, 198 are the product category IDs. You may change them too, or add new one.5. Please add this CSS,
.woocommerce div.product .summary .product_title, .woocommerce .price { text-align: center; font-family: "Helvetica Neue",Helvetica,sans-serif; }6. This too,
.stock.in-stock, .product_meta { display: none; }For better tracking and management, please start a new thread for further issues or questions.
Thanks!
March 20, 2017 at 10:03 am #1413722
RaynardKyleGuzmanParticipantEverything worked out great! Thanks a lot!
March 20, 2017 at 10:23 am #1413759
RahulModeratorGlad we were able to help you out.
If you have anything further to ask, kindly let us know. We’d be happy to assist you with anything.
Thank you.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1400444 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
