Home › Forums › WoodMart support forum › Woodmart slider is ignoring the css for mobile and tablet device › Reply To: Woodmart slider is ignoring the css for mobile and tablet device
September 16, 2021 at 1:47 pm
#319085
Luke Nielsen
Keymaster
Hello,
Thank you very much for choosing our theme and for contacting us.
We apologize for keeping you waiting.
Please, try to add this code to the functions.php file in your child theme
function woodmart_elementor_get_content( $id ) {
$inline_css = true;
$post = new Elementor\Core\Files\CSS\Post( $id );
$meta = $post->get_meta();
ob_start();
if ( $post::CSS_STATUS_FILE === $meta['status'] && apply_filters( 'woodmart_elementor_content_file_css', true ) ) {
?>
<link rel="stylesheet" id="elementor-post-<?php echo esc_attr( $id ); ?>-css" href="<?php echo esc_url( $post->get_url() ); ?>" type="text/css" media="all">
<?php
$inline_css = false;
}
echo Plugin::$instance->frontend->get_builder_content_for_display( $id, $inline_css );
wp_deregister_style( 'elementor-post-' . $id );
wp_dequeue_style( 'elementor-post-' . $id );
return ob_get_clean();
}
Kind Regards