Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

right to left support?


  #1  
Old Sep 16, 2012, 04: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 06:59 AM.
  #2  
Old Sep 16, 2012, 04:53 PM
lmilesw's Avatar
lmilesw
 
10,176 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, 05: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, 05:39 PM
lmilesw's Avatar
lmilesw
 
10,176 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, 06: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, 06:18 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
MO->Head->insert code
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Sep 16, 2012, 09: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, 04:40 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Oct 4, 2012, 10: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



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


All times are GMT -6. The time now is 11:51 PM.


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