Osclass Support Forums
Osclass theme support => Zara Osclass Responsive Theme => Topic started by: mhdimad on March 29, 2016, 10:38:20 AM
-
hello
I have (zara) theme, and I add the Arabic language on the site
I modified the files Style,( style.css ) (responsive.css) (tabs.css)I changed (float:left to float:right) And renamed files to
( style_rtl.css ) (responsive_rtl.css) (tabs_rtl.css) And keep the original files Style in the same folder.
I need a PHP Code, to choose CSS rtl files when choosing the Arabic language, and refer to the original CSS files when you return to the English language
-
@mhdimad
Go to file:
oc-content/themes/zara/head.php
Find line:
osc_enqueue_style('style', osc_current_web_theme_url('css/style.css'));
Replace it with:
if(osc_current_user_locale() == 'en_US') {
osc_enqueue_style('style', osc_current_web_theme_url('css/style.css'));
} else {
osc_enqueue_style('style', osc_current_web_theme_url('css/style_rtl.css'));
}
In code above you may need to change en_US to locale code you need for english (or left-to-right) langugage.
-
thank you very much :) resolved problem
-
@mhdimad
Cool ;)
-
hello
I have (zara) theme, and I add the Arabic language on the site
I modified the files Style,( style.css ) (responsive.css) (tabs.css)I changed (float:left to float:right) And renamed files to
( style_rtl.css ) (responsive_rtl.css) (tabs_rtl.css) And keep the original files Style in the same folder.
I need a PHP Code, to choose CSS rtl files when choosing the Arabic language, and refer to the original CSS files when you return to the English language
Hi @mhdimad
can you share your CSS styles please
-
Will you kindly share ( style_rtl.css ) (responsive_rtl.css) (tabs_rtl.css). And if possible the Arabic translation for Zara Theme (theme.po).
Thanks in Advance
-
Unless in case of a complete styles rearrangement, I think is better not to touch the original stylesheets and create a custom.css file. Then we just need to insert a line of code on head.php, in the block starting line 58:
osc_enqueue_style('custom', osc_current_web_theme_url('css/custom.css'));
-
@mhdimad
Cool ;)
Hi MB Themes
I make this also but i have issue with funcybox I tried to change it but still stuck
-
Send url.
-
http://alruzihan.com/osc/
check the Real estate (house icon )
i solve it in cars section but i have to delete the side photo
-
You have mobile theme there so will check next week