Smart RTL Post

Smart RTL Post

توسط

Smart RTL Post allows you to easily apply RTL styling to selected posts, pages, and custom post types.

Features

  • Enable RTL per post
  • Gutenberg editor support
  • Custom post types support
  • Lightweight plugin
  • Clean uninstall
  • No performance impact
  • Custom fonts support

  • Works on Posts and Pages (and any post type via filter hook)

  • Native Block Editor (Gutenberg) sidebar panel — no Classic Editor required
  • Settings page to choose default direction, font, font size, and line height
  • Shortcode [rtl]your text[/rtl] for inline RTL content inside any post
  • Google Fonts support: Noto Nastaliq Urdu, Scheherazade New, Amiri, Lateef
  • CSS only loaded when actually needed (performance friendly)
  • RTL styles scoped to content area only — navigation and header stay unaffected
  • Developer-friendly: smart_rtl_supported_post_types filter to add custom post types
  • Clean uninstall — removes all options and post meta when deleted

Shortcode Usage

Use inside any post or page:
[rtl]Your text here[/rtl]

Add Custom Post Type Support

Add this to your theme’s functions.php:

add_filter( 'smart_rtl_supported_post_types', function( $types ) {
    $types[] = 'product';
    return $types;
} );

`

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 or later.
For more details, visit: https://www.gnu.org/licenses/gpl-2.0.html

  1. Upload the smart-rtl-post folder to /wp-content/plugins/
  2. Activate the plugin from the Plugins page in WordPress
  3. Go to Settings > Smart RTL Post to configure defaults
  4. Edit any post or page and select the direction from the sidebar

سوالات متداول

Does this work with the Block Editor (Gutenberg)?

Yes. A native sidebar panel appears in the Document Settings for both Classic Editor and Block Editor.

Can I use it on WooCommerce product pages?

Not by default, but you can easily add any custom post type using the smart_rtl_supported_post_types filter (see Description).

Will this slow down my site?

No. The CSS file is only loaded on pages where RTL direction is actually enabled.

Which fonts are available?

Noto Nastaliq Urdu, Scheherazade New, Amiri, Lateef, and a System Serif (no Google Fonts) option.

Does changing direction break my site navigation?

No. Since v1.3.0 the RTL direction is scoped to post content areas only. Your header, navigation menus, and footer are not affected.

What happens when I delete the plugin?

All options and post meta are automatically removed from the database.

تصویری برای این آیتم موجود نیست.
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
بازخورد (Feedback) های اینلاین
مشاهده همه دیدگاه ها
نسخه حجم فایل SHA256 تغییرات دانلود
1.5.1 11 کیلوبایت -
دانلود
×
★★★★★
★★★★★
5.0 /5 (2 نظر)

قیمت:

رایگان

نگارش

1.5.1

آخرین انتشار

22 اردیبهشت 1405

آخرین بروزرسانی

1 ماه پیش

نصب های فعال

30+

نگارش وردپرس

وردپرس 5.0+

تست شده از نسخه

وردپرس 7.0

نگارش PHP

PHP 7.4+

نسخه ها

1 نسخه