[wp-trac] [WordPress Trac] #15863: Child Themes don't support RTL

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 17 12:22:54 UTC 2010


#15863: Child Themes don't support RTL
-------------------------+-----------------------------
 Reporter:  ramiy        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Template     |    Version:  3.0
 Severity:  critical     |   Keywords:  need-patch
-------------------------+-----------------------------
 When using wordpress in hebrew/arabic/parsi (right-to-left languages) the
 theme searches for the '''rtl.css''' file and (if exists) it addes it to
 html <HEAD>. ltr languages use only '''style.css''', rtl languages use
 both '''style.css''' and '''rtl.css'''. Theme developers don't need to
 check if the site is rtl or ltr, wordpress does it for them (this is way
 we love using wp).

 {{{
 <link rel="stylesheet" type="text/css" media="all"    href="http://www.wp-
 tricks.co.il/wp-content/themes/twentyten/style.css" />
 <link rel="stylesheet" type="text/css" media="screen" href="http://www.wp-
 tricks.co.il/wp-content/themes/twentyten/rtl.css"   />
 }}}

 __BUT__ if i create a child theme, the '''rtl.css''' file from the parent
 theme is not auto added to the child theme <HEAD> as it should.

 In current situation, users running wordpress in hebrew/arabic/parsi
 languages can't use child themes because the theme lookes broken without
 the '''rtl.css''' file. We need to fix this.

 Wordpress need to check if (1) it's a child theme (2) it's rtl - if so,
 __add the '''rtl.css''' file from the parent theme__. I think the system
 need to check, if the child theme has its own rtl.css file, do nothing.
 but if it does not have rtl.css file, add the rtl.css from the parent
 theme.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15863>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list