WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
[resolved] customizr downloadable child theme not RTL ready (9 posts)

  1. talishchori
    Member
    Posted 5 months ago #

    I am not a developer. I downloaded and installed the Customizr child theme but it is not RTL ready so it turns my site left to right.
    Can anyone help? thanks

  2. ElectricFeet
    Member
    Posted 5 months ago #

    The theme is rtl-ready, but I don't know how it's activated. Nikeo?

  3. d4z_c0nf
    Member
    Posted 5 months ago #

    But RTL works with customizr theme (not child theme)?

  4. d4z_c0nf
    Member
    Posted 5 months ago #

    The relevant part in customizr/inc/class-fire-init.php is:

    //Checks if there is a rtl version of the selected skin if needed
          if ('ar' == WPLANG || 'he_IL' == WPLANG) {
            $remote_path   = ( TC___::$instance -> tc_is_child() && file_exists(TC_BASE_CHILD .'inc/css/rtl/' . $skin) ) ? TC_BASE_URL_CHILD .'inc/css/rtl/' : $remote_path ;
            $remote_path   = ( !TC___::$instance -> tc_is_child() && file_exists(TC_BASE .'inc/css/rtl/' . $skin) ) ? TC_BASE_URL .'inc/css/rtl/' : $remote_path ;
          } 
    
          //Defines the active skin and fallback to blue.css if needed
          $tc_active_skin  = $remote_path ? $remote_path.$skin : TC_BASE_URL.'inc/css/blue.css';
          return apply_filters ( 'tc_active_skin' , $tc_active_skin );

    So that's the problem, assuming your WPLANG is "ar" or "he_IL", if you're using a child theme customizr will look for
    yourchildtheme/inc/css/rtl/blue.css (or whatever color skin) and if it doesn't find that file it will use the "normal"(not rtl) skin.

    So copy, customizr/inc/css/rtl/blue.css in yourchildtheme/inc/css/rtl/blue.css , or define your one rtl style there. Or create a file yourchildtheme/inc/css/rtl/blue.css and write this into it:
    @import url("../../../../customizr/inc/css/rtl/blue.css");
    This will import customizr rtl blue skin css into your child theme rtl css, and then you can proceed to customize it adding your css below that line.

    Hope this works.. and helps :D

  5. ronherren
    Member
    Posted 5 months ago #

    OH! I Meant to report this! I tossed the Customizr 3.1.6 code into NetBeans IDE and it identified some coding errors in RTL folder files. Maybe the issue? Hmm... just CSS parsing errors I think so maybe not, but issues nonetheless: (Sorry, I just noticed that they aren't all in RTL folder)

    customize-controls-rtl.css: Line 222: border-radius: !important 0;
    (unexpected '0'?)

    ie-rtl.css: Line 216: unexpected right-brace
    (must be one somewhere missing or extra!)

    ie.css: ibid ('ibid' roughly means same as above, Latin)

    wp-admin-rtl: Line 11269: transition: background: 0.2s ease-in-out;
    (unexpected 'background:')

    wp-admin: ibid

    wp-content/themes/customizr/inc/css/rtl/[all-colors].css: Line 2773: border-color: rgba(0, 0.15) 0, 0,;
    (looks like a cut-n-paste issue; probably should be: border-color: rgba(0, 0.15, 0, 0);

    wp-content/themes/customizr/inc/js/fancybox/jquery.fancybox-1.3.4.css:

    Line 338: height: expression(this.parentNode.clientHeight + "px");
    (unexpected DOT after 'this' and RPAREN)

    and Line 343: top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px' );
    (unexpected COLON after 'top' and unexpected characters {?} at 343:64 & 343:189)

    wp-includes/js/thickbox/thickbox.css:

    Line 54: height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
    (unexpected COLON and character {?} at 54:80)

    and Line 75: margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
    (Unexpected MINUS and WS and RPAREN)

    and Line 149: margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
    (ibid)

    and Line 168: height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
    (Unexpected COLON and character {?} at 168:80)

  6. d4z_c0nf
    Member
    Posted 5 months ago #

    1. I don't think this is the right place to report that
    2. Use backticks when you paste codes
    3. Have you read what I wrote about using child theme rtl css?

    @moderators
    Where are you?

  7. d4z_c0nf
    Member
    Posted 5 months ago #

    Apologies:
    I see you used backticks, sorry.

  8. talishchori
    Member
    Posted 4 months ago #

    Thank you so much @d4z_c0nf it worked perferctly just like you described!

  9. d4z_c0nf
    Member
    Posted 4 months ago #

    Wonderful. :)

Reply

You must log in to post.

About this Theme

About this Topic

Tags