Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

RTL Themes Problems
 
Ahmed Mahmoud
Jr. Member
 
Total Posts:  25
Joined:  2007-09-16
Egypt
 

Hello,
I’m working on modify the default theme to be suitable for the Right To Left languages Like Arabic, Farsi, Hebrew.
the problem with RTL themes are top links and footer links where Pipe symbol appear before the first link and there’s no pipe before the last link. I attached image to show you the problem .
and here’s the code of footer links which need to be modified to fix this problem

<?php if(count($_links)>0): ?>
        
<ul<?php if($this->getName()): ?> id="<?php echo $this->getName() ?>"<?php endif;?> class="footer-links">
            
<?php foreach($_links as $_link): ?>
                
<li <?php if($_link->getIsFirst()): ?> class="first"<?php elseif($_link->getIsLast()): ?> class="last"<?php endif; ?><?php echo $_link->getLiParams() ?>><?php echo $_link->getBeforeText() ?><a href="<?php echo $_link->getUrl() ?>" title="<?php echo $_link->getTitle() ?>" <?php echo $_link->getAParams() ?>><?php echo $_link->getLabel() ?><?php echo $_link->getAfterText() ?></a></li>
            
<?php endforeach; ?>
        
</ul>

<?php endif; ?>
Thanks you
Image Attachments
RTL-Arabic-Theme.gif
 
Magento Community Magento Community
Magento Community
Magento Community
 
Ahmed Mahmoud
Jr. Member
 
Total Posts:  25
Joined:  2007-09-16
Egypt
 

anyone PLZ

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mazen
Jr. Member
 
Avatar
Total Posts:  25
Joined:  2009-08-17
 

Amaiko,

I’m having troubles to make my Magento RTL.

I have seen the image and you managed somehow to do it.

Will you please let me know how and what files have you modified to do so.

 
Magento Community Magento Community
Magento Community
Magento Community
 
CODNITIVE
Sr. Member
 
Avatar
Total Posts:  92
Joined:  2009-07-28
 

Hello

your work is great Amaiko.
you move anything from left to right clearly.
it’s very very good.
there is just a minor problem in your wonderful work.(as you show)

is there any tutorial or wiki to learn this, in Magento site?

thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
CODNITIVE
Sr. Member
 
Avatar
Total Posts:  92
Joined:  2009-07-28
 

Hi guys and gals

I solve my problem and find the way myself.

thank you

have a good time

Image Attachments
figure 4.png
 
Magento Community Magento Community
Magento Community
Magento Community
 
CODNITIVE
Sr. Member
 
Avatar
Total Posts:  92
Joined:  2009-07-28
 

li pipes are background images which add with CSS.
In default theme pipes for header are in

.header .links li
and for footer are in
.footer li
both inside styles.css file
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top