css in rtl theme dose not work
-
hello iam using astra theme and i have done all the steps to have child them and add the rtl files bout when i add css codes in the rtl file it dose not apply when i use the theme in Arabic mode i will post the codes
this is the content in the astra chilled theme :-
style.css
/* Theme Name: Astra Child Theme URI: https://wpastra.com/ Template: astra Author: Brainstorm Force Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme Description: Astra is fast, fully customizable & beautiful WordPress theme suitable for blog, personal portfolio, business website and WooCommerce storefront. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with Schema.org code integrated and is Native AMP ready so search engines will love your site. It offers special features and templates so it works perfectly with all page builders like Elementor, Beaver Builder, Visual Composer, SiteOrigin, Divi, etc. Some of the other features: # WooCommerce Ready # Responsive # RTL & Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and WooCommerce ready theme that you can use for building any kind of website! Tags: custom-menu,custom-logo,entertainment,one-column,two-columns,left-sidebar,e-commerce,right-sidebar,custom-colors,editor-style,featured-images,full-width-template,microformats,post-formats,rtl-language-support,theme-options,threaded-comments,translation-ready,blog Version: 4.1.7.1691674913 Updated: 2023-08-10 13:41:53 */
rtl.css
/** * Load the parent rtl.css file */ function astra_child_enqueue_rtl_styles() { if ( is_rtl() ) { // Load RTL CSS. wp_enqueue_style( 'astra-rtl', get_stylesheet_directory_uri() . '/rtl.css', array('astra-theme-css'), ASTRA_THEME_VERSION ); } } add_action( 'wp_enqueue_scripts', 'astra_child_enqueue_rtl_styles' );
i want this css code to work in rtl mode only when polylang switch to Arabic bout when i add this code to rtl.css file and switch with polylang it dose not work :-
.footer-widget-area[data-section="sidebar-widgets-footer-widget-4"].footer-widget-area-inner{ text-align: right; } .footer-widget-area[data-section="sidebar-widgets-footer-widget-1"].footer-widget-area-inner{ text-align: right; } .footer-widget-area[data-section="sidebar-widgets-footer-widget-3"].footer-widget-area-inner{ text-align: right; } .footer-widget-area[data-section="sidebar-widgets-footer-widget-2"].footer-widget-area-inner{ text-align: right; }
what to do to make it work ?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘css in rtl theme dose not work’ is closed to new replies.