Home Forums WoodMart support forum I have a problem in rtl

I have a problem in rtl

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #55198

    Hosein Vahhabi
    Participant

    my site recently have a problem in rtl. you can see the site link in private.

    #55201

    Hello,

    Your site is in Arabic and I see it RTL. Will you kindly provide page links and screenshots with the problem + detailed comment

    Best Regards

    #55202

    Hosein Vahhabi
    Participant

    no comment need.
    allthing have a problem. means no rtl apply in my theme.

    Attachments:
    You must be logged in to view attached files.
    #55207

    Artem Temos
    Keymaster

    Try to edit your child theme functions.php and replace the function woodmart_child_enqueue_styles with this one

    function woodmart_child_enqueue_styles() {
        wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'woodmart-style' ), woodmart_get_theme_info( 'Version' ) );
    }
    #55209

    Hosein Vahhabi
    Participant

    I have this in that function.php in child theme.
    I repalce it on wich line?

    <?php
    
    add_action( 'wp_enqueue_scripts', 'woodmart_child_enqueue_styles', 1000 );
    
    function woodmart_child_enqueue_styles() {
    	if( woodmart_get_opt( 'minified_css' ) ) {
    		wp_enqueue_style( 'woodmart-style', get_template_directory_uri() . '/style.min.css', array('bootstrap') );
    	} else {
    		wp_enqueue_style( 'woodmart-style', get_template_directory_uri() . '/style.css', array('bootstrap') );
    	}
    
        wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('bootstrap') );
    	 wp_enqueue_style( 'child-IRANSans', get_stylesheet_directory_uri() . '/fonts/fontiran.css', array('bootstrap') );
    }
    #55211

    Artem Temos
    Keymaster

    Replace this part

    	if( woodmart_get_opt( 'minified_css' ) ) {
    		wp_enqueue_style( 'woodmart-style', get_template_directory_uri() . '/style.min.css', array('bootstrap') );
    	} else {
    		wp_enqueue_style( 'woodmart-style', get_template_directory_uri() . '/style.css', array('bootstrap') );
    	}

    with this one

    wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'woodmart-style' ), woodmart_get_theme_info( 'Version' ) );

    #55212

    Hosein Vahhabi
    Participant

    thanks it’s solved

    #55221

    You are welcome! If you have any questions feel free to contact us.

    Best Regards

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘I have a problem in rtl’ is closed to new replies.