customizr downloadable child theme not RTL ready
-
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
-
The theme is rtl-ready, but I don’t know how it’s activated. Nikeo?
But RTL works with customizr theme (not child theme)?
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
inyourchildtheme/inc/css/rtl/blue.css
, or define your one rtl style there. Or create a fileyourchildtheme/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 😀
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)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?Apologies:
I see you used backticks, sorry.Thank you so much @d4z_c0nf it worked perferctly just like you described!
Wonderful. 🙂
- The topic ‘customizr downloadable child theme not RTL ready’ is closed to new replies.