does not work .
I would like you to system when you see tongue Fa alignment from right to left and in return when it's Latin language runs regularly.
I have done so for the moment:
Theme Functions (functions.php)
/ * Support RTL Languages * /
function custom_rtl_support () {
if (get_locale () == 'fa_IR') {
wp_enqueue_style ('style-rtl', get_template_directory_uri (). '/ style-rtl.css');
}
}
add_action ('wp_enqueue_scripts', 'custom_rtl_support');
Style-rtl.css
{.rtbs_menu
direction: rtl! important;
}
nav {
direction: rtl! important;
}
waiting for a more practical option please
does not work .
I would like you to system when you see tongue Fa alignment from right to left and in return when it's Latin language runs regularly.
I have done so for the moment:
Theme Functions (functions.php)
/ * Support RTL Languages * /
function custom_rtl_support () {
if (get_locale () == 'fa_IR') {
wp_enqueue_style ('style-rtl', get_template_directory_uri (). '/ style-rtl.css');
}
}
add_action ('wp_enqueue_scripts', 'custom_rtl_support');
---------------
Style-rtl.css
{.rtbs_menu
direction: rtl! important;
}
nav {
direction: rtl! important;
}
-------------------------------------------------- ----------------------------
waiting for a more practical option please