You also need to include the RTL.css file which is in the theme too:
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'rtl-style', get_template_directory_uri() . '/rtl.css' );
}
To use the rtl.css from your theme directory change the code to:
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'rtl-style', get_stylesheet_directory_uri() . '/rtl.css' );
}
Make sure you copy everything from the original rtl.css file to your own.
Related Posts:
- Overriding a theme redux file in child theme
- Function to return true if current page has child pages
- Cleaning up WordPress to improve performance?
- List of all theme customizer control types?
- Is it possible to disable a function of a parent theme?
- How to override an unpluggable parent theme function?
- How to preserve PHP modifications while upgrading WordPress?
- How do I remove a require_once admin panel from the parent theme from the child theme functions.php?
- is there a simple way to list every templates / php files used to generate a specific page?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Change comments form title on a page by page basis
- Copyright info change in Theme Child PHP
- Add footer.php to WordPress child theme
- delete an array element when its date expires
- How to override a non pluggable and non hookable function in a WordPress parent theme?
- Understanding WordPress child theme custom JS loading
- How to add default images into theme customizer image control?
- How to break down importing of feeds
- PHP can I add line numbers to file_get_contents()
- Adding tawk.to code just before body tag on functions.php file
- Setting custom canonical urls
- WordPress child theme fails to override parent navigation menu in /inc/structure/header.php
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- How to style options page in dashboard?
- Converting HTML Template to WordPress Theme
- How to check if a meta value has already been assigned to any user?
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- How to pick the default selected value in wordpress dropdown?
- Modify custom field input data before creating a new post
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Need help enqueueing webfonts
- Custom Background by Page IDs
- Copyright info change – Corporate Plus Theme PHP [closed]
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- Create page template via functions.php?
- How to create a field in customize and show that in header.php?
- How do I check or test a WordPress Auto Year Change Script?
- How to have different site identity logos on each page on Astra Theme [closed]
- List post by title length
- Removing “Powered by” footer using child theme PHP [closed]
- How do i wrap woocomerce attribute in list?
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- Overide Variable in Child Theme
- child parent styles enqueue order
- How to style injected code in header section?
- Is there a hack for using is_page() within the function.php file?
- Child Theme’s Read More Text
- Need advice on theme customizer and child themes
- Customize field names in backend profile edit page through function.php [duplicate]
- WP insert post Redirect after function has executed
- WP-Bakery – Add custom colors to buttons with template colors
- Trying to update Woocommerce meta values
- Proper way to remove html code on child theme
- remove_action from parent theme using child theme functions.php
- File from parent theme imported to child theme doesn’t work – any ideas?
- update_user_meta as multiple value but with same meta key
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- Child theme overirde template-tags in a theme built on underscores in inc/template-tags
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Delete post meta by serialized meta value
- PHP “warning include_once(): Failed to open stream” Simple HTML DOM in WordPress Child Theme
- Remove node from multisites?
- Automatically refresh page if widget is added to page?
- Where can I find the declaration of `$_wp_theme_features`?
- How do I routinely extract the thumbnail of the most recent post?
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Removing get_template_part in child theme
- Check if values exists DB
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- How to add button to top of theme customizer?
- How can I clear the theme mod settings?
- Display a list of users with avatar filterable with alphabets
- Select area and checkbox data is not saving?
- WP Custom tables query
- Add multiple HTML attributes to an Elementor button
- How to Add Image to WordPress RSS-Feed with no Plug-in?
- Childs PHP files not overwriting Parent’s PHP files
- How to add active class to custom menu using while loop and wp_list_pages
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- WordPress Redirect: Default Password Reset URL [duplicate]
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- WordPress admin pointers tour bug?
- Add .htm extention to a custom taxonomy
- How to use theme function in post/page?
- Warning: in_array() null given in PHP function
- Use post ID in functions.php file adminside
- How can I count ACF sub_field with a certain value
- Custom Registration username_exists / email_exists
- Custom posts password protect
- Woocommerce – Exclude variation attribute on specific variation
- Child-Theme Category View with modified permalinks (%category% removed)
- Delete empty title_tags, find a h1 heading and echo it
- WP_Query To Display Product Of Brand On Taxonomy Page
- Search for images that width and height is more than 500
- wordpress ajax return 0
- What is the wrong with this function to enqueue the scripts and styles to the theme? [closed]
- Tags being Inserted in html from plugin PHP not passing through the_content