Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1412629
    RaynardKyleGuzman
    Participant

    Hi 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!

    #1413009
    Rad
    Moderator

    Hi 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!

    #1413722
    RaynardKyleGuzman
    Participant

    Everything worked out great! Thanks a lot!

    #1413759
    Rahul
    Moderator

    Glad 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.

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