Problems woocommerce page

Hello,
I have problems with the product page :


I would like to put the layer slider before the menu, after put the second menu and x-breadcrumbs. after woocommerce_single_product_summary.
Thank you.

Hello @FERLAF,

Thanks for writing in!

I have checked your site and I found out that you have added these PHP codes in your parent theme’s functions.php:

add_action( 'x_before_view_footer_base', 'x_print_footer_global_block' );
function x_print_footer_global_block(){
	echo do_shortcode( '[cs_gb id=177]' );
}
add_filter( 'woocommerce_product_tabs', 'remove_additional_info_tab', 50 );
function remove_additional_info_tab( $tabs ) {
    unset( $tabs['additional_information'] );
    return $tabs;
}
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' );    // 2.1 +
 
function woo_custom_cart_button_text() {
 
        return __( 'Comprar', 'woocommerce' );
 
}
// Remove the product description Title //

add_filter( 'woocommerce_product_description_heading', '__return_null' );

// Ocultar precios en los productos //
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );

add_filter( 'woocommerce_product_tabs', 'remove_reviews_tab', 50 );
function remove_reviews_tab( $tabs ) {
    unset( $tabs['reviews'] );
    return $tabs;
}
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );

Please be advised that you are doing your modifications incorrectly. When there is an X theme update, all of those php codes will disappear because it will be overwritten with the theme updates. what you are trying to accomplish requires a template customization, we would highly to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

After the child theme is set up, please transfer all of those PHP codes you have in the parent theme’s functions.php file into your child theme’s functions.php file.

To display the Layerslider after the woocommerce_single_product_summary , you will have to create your own custom PHP function to display the Layerslider and hook it to woocommerce_after_single_product_summary. To know how you can display the slider with a PHP code, please check out this documentation:

Best Regards.

Thanks a lot for your information. I will check everything.
Regards,

You’re welcome, @FERLAF.

I find <?php layerslider(2, '1369' ); ?> // Displays the second slider on a custom page by ID
My slider is [layerslider id=“4”]
My product page is post 277
The code is <?php layerslider(4, ` `'277'` `); ?>
Where I have to put this code. In x-child functions.php ?
Thank you

Hi @FERLAF,

Yes, you can learn more on how to install the Child Theme here:

And also the best practices here:

Please kindly consider that this is a customization request and outside of our support scope. We will not be able to implement the feature for you.

Thank you.

Thank you Christopher for your message and your information.
KInd regards,

You’re welcome, @FERLAF.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.