Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   right to left support? (http://forum.bytesforall.com/showthread.php?t=18384)

Majed Sep 16, 2012 03:26 PM

right to left support?
 
Hi all,

In the first I would like to thank the developer of Montezuma theme. It is so nice and handy.
But Unfortunately it didn't support right to left languages as my language - Arabic.

I tried to put rtl.css in the main folder of the theme, but it didn't work... I think it's not good idea to edit the orginal css files.. I am looking for a way, where I can add a new rtl.css file to customize my theme look. Any help?

lmilesw Sep 16, 2012 03:53 PM

There are several areas in the theme options to edit the CSS.

Majed Sep 16, 2012 04:22 PM

I can edit existed css files. But I like to follow wordpress method which is simple: just use rtl.css file. That's it.

lmilesw Sep 16, 2012 04:39 PM

I would just add the CSS that is in the rtl.css file in one of the css sections of the theme options. Or you could perhaps add the rtl.css file into the theme folder and call it in the theme options.

Majed Sep 16, 2012 05:16 PM

Ok, what is the proper way to call new css file in this theme?

juggledad Sep 16, 2012 05:18 PM

MO->Head->insert code

Majed Sep 16, 2012 08:32 PM

I found better way to do this - it can go with any language ..

go to functions.php in montezuma folder.

and put these lines instead of old ones ( you can compare :) )

PHP Code:

$bfa_css .= implode''fileget_template_directory() . "/admin/default-templates/css/grids/resp12-px-m0px.css" ) );

    
$direction function_exists'is_rtl' ) && is_rtl() ? '-rtl' '';

    
// just take css that belong to this direction
    
foreach ( globget_template_directory() . "/admin/default-templates/css/*$direction.css") as $filename) {
                
$bfa_css .= implode''file$filename ) );
        } 

Then if your site direction is rtl you have to name your css file like: mycss-rtl.css and put it in ... wp-content\themes\montezuma\admin\default-templates\css .. else no need to do anything.

Thank you all.

juggledad Sep 17, 2012 03:40 AM

you can do it this way, just make sure to take good notes so the next time the theme is updated, you can remember to put this back in.

gnosis Oct 4, 2012 09:48 AM

As I learned the hard way, always better to modify and save to the db rather than change actual files.


All times are GMT -6. The time now is 04:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.