• After I created a child theme, I recieved a bug on chrome?
    The site width is infinite.

    style.css is empty. only the first settings:

    /*
    Theme Name: PartiezT-Child
    Theme URI: https://www.partiez.co.il/
    Description: A PartiezT child theme
    Author: Erez
    Author URI: https://www.partiez.co.il/
    Template: twentytwenty
    Version: 1.0.0
    */

    <?php
    /* enqueue script for parent theme stylesheeet */
    function childtheme_parent_styles() {

    // enqueue style
    wp_enqueue_style( ‘parent’, get_template_directory_uri().’/style.css’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘childtheme_parent_styles’);

    When I return to Twenty Twenty theme, the problem fixed.
    When I return to child theme, the problem return.

    I also tried to created one more child theme, but the same problem.

    Is there any idea what is the problem?
    functions.php include

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nevoerez1

    (@nevoerez1)

    UPDATE:

    On child theme when worpress language is HEBREW, problem exits.
    On twenty twenty theme when worpress language is HEBREW, not have problem.
    On child theme when worpress language is ENGLISH , not have problem.

    Anonymous User 14254218

    (@anonymized-14254218)

    Is it possible set the language to hebrew again and leave it like that a bit? You can @link me so I get a dm when you reply.

    I will take a look after work then.

    Thread Starter nevoerez1

    (@nevoerez1)

    I change it to hebrew.
    @raqai , you can check it.

    Thanks

    Anonymous User 14254218

    (@anonymized-14254218)

    @nevoerez1 thank you.
    I found the issue and yea, it is related to the language settings or rather to the “RTL” support.
    You can check the developer console (eg. in Chrome) which will tell you that the “style-rtl.css” file is missing (404 code).

    If you setup your instance to work with a RTL language, you will need to also provide a style-rtl.css file for your child theme.

    You should be able to basically copy your style.css and also save it as style-rtl.css.
    I am not 100% certain about this, but I think that the “-rtl” is appended automatically. This means you still need to enqueue the “styles.css”, not “styles-rtl.css”.

    I would suggest reading the Right-to-Left Language Support codex documentation for further reading and additional solutions which might suite your development workflow better.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘child theme create width problem’ is closed to new replies.