Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

right to left support?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Sep 16, 2012, 03:26 PM
Majed
 
4 posts · Sep 2012
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?

Last edited by juggledad; Oct 6, 2012 at 05:59 AM.
  #2  
Old Sep 16, 2012, 03:53 PM
lmilesw's Avatar
lmilesw
 
10,087 posts · Jul 2009
Central New York State USA
There are several areas in the theme options to edit the CSS.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Sep 16, 2012, 04:22 PM
Majed
 
4 posts · Sep 2012
I can edit existed css files. But I like to follow wordpress method which is simple: just use rtl.css file. That's it.
  #4  
Old Sep 16, 2012, 04:39 PM
lmilesw's Avatar
lmilesw
 
10,087 posts · Jul 2009
Central New York State USA
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.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Sep 16, 2012, 05:16 PM
Majed
 
4 posts · Sep 2012
Ok, what is the proper way to call new css file in this theme?
  #6  
Old Sep 16, 2012, 05:18 PM
juggledad's Avatar
juggledad
 
22,191 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
MO->Head->insert code
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #7  
Old Sep 16, 2012, 08:32 PM
Majed
 
4 posts · Sep 2012
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.
  #8  
Old Sep 17, 2012, 03:40 AM
juggledad's Avatar
juggledad
 
22,191 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #9  
Old Oct 4, 2012, 09:48 AM
gnosis
 
173 posts · May 2010
As I learned the hard way, always better to modify and save to the db rather than change actual files.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
php 5.3 support ? 3ukman New Versions, & Updating 1 Aug 14, 2009 06:32 PM
Asside Support Requested docsparky Comments, trackbacks & pings 0 Aug 14, 2009 07:08 AM


All times are GMT -6. The time now is 10:23 PM.


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