You can add a hebrew shortcode to wrap around your hebrew text and then use the CSS2 direction attribute to indicate the text direction.
e.g.:
In your themes functions.php:
function hebrew_shortcode( $atts, $content = null ) {
return '<p lang="he" DIR="RTL">' . $content . '</p>';
}
add_shortcode( 'hebrew', 'hebrew_shortcode' );
Your content:
[hebrew]Hebrew styled right to left text![/hebrew]
edit: I’ve updated to use the dir html attribute ( spec docs said do nto sue css to indicate right to left ) and to use a p element instead
Related Posts:
- How to remove spaces from a string using JavaScript?
- Displaying fractions in text
- printf and _n in this example?
- string translation in functions.php not working
- How to copy/paste web content with photos into my blog
- Custom color does not stick
- Post specific text based on category displayed
- Instructions/Rules Inside Text Area
- Store unmodified text content in database
- How can I highlight specific pieces of text within a blog post?
- copying text from ms word to wordpress post appears weird [closed]
- Text Stating the Domain Name Appears on Every Page… How to Get Rid of It [closed]
- How to replace characters in CPT posts with a newline using Better Search Replace
- Theme Twenty Seventeen – Increasing Font Size for the Home Text
- Theme Twenty Seventeen – Make Margins Smaller So That Text is Wider
- Space between text elements (title and content) in text editor
- How to display text on product catalog
- Change values on several pages
- How can I quickly style a single word with a single keypress (or the most minimum keypresses)?
- Auto Linking Words But Only One Time
- Radio button problem using subtitles and mandatory field check
- Print string to text file
- How to extract text from a PDF? [closed]
- XQuery data and text() function
- How to place a text next to the picture?
- How to display text in pygame?
- Difference between VARCHAR and TEXT in MySQL
- How can I create a text input box with Pygame?
- How can I replace text with CSS?
- Text border using css (border around text)
- How to replace multiple substrings of a string?
- Read a text file in R line by line
- Making text background transparent but not text itself
- strange text before my header wordpress
- How do you change text to bold in Android?
- Text wrapping around a div
- How can I change the text color with jQuery?
- How to set text color for my d3 chart title?
- How to Read from a Text File, Character by Character in C++
- can I add a custom format to the format option in the text panel?
- How to retrieve text only from wp_content() not from wp_excerpt()?
- How to Create Editable Blocks of Text for the Homepage?
- Problem in wordpress with “-“
- How to hide the Text Area in the Post Edit screen
- How to search and replace text in all posts of a wordpress.com blog (NOT wordpress.org one)?
- Add Descriptive text to Widget text box so users can see what they contain
- Adding a custom line of text to php code
- Global, network-wide shortcodes or text replace functions
- Remove text tab
- Escaping Quotes
- Add default text to multiple wysiwyg editors
- Preserve shortcode content formatting
- How to load a post into an empty div tag anywhere across the pages?
- WordPress editor not creating tags properly in tables
- Strange ASCII characters overlapping content
- Change default italic from to in admin editor
- Sidebar widget: Randomly select text from a given set
- How can I change the email that is inside the default email texts of wordpress?
- How to remove ‘wordpress…’ text from page titles in tabs
- Adding a line of text to php code
- Web app vs CMS backend
- How can style text like this in wordpress
- How to Add a Read-only Textbox With Text in it That Has a Button to Copy it?
- Can’t get text to wrap around image
- How to change default text for specific post type
- How to style text in WordPress
- How to paste into WordPress editor without changing existing formatting in editor?
- How to make blog post entries appear as input form instead of just text?
- Why cant I change the text on this theme?
- Is there any way to inject text onto pages?
- Character \ appearing before ‘ after saving a settings page
- Archive limit the text of the_content
- WordPress managing dates that change in text regularly
- How to hide particular plain text with link from different subscribers
- How can I add diffrent editable text fields?
- Line-height of text in wp-admin
- Visual and Text tabs missing from Editor
- How to fix error message to edit sidebar widget text on a livesite childtheme?
- Text Wrapping in Editor not Matching Website View
- Text widget is placing everything side by side. I want to post it above
- Image alt attribute
- How to alter static Page text through the Theme Customizer API
- automatically apply clear formating when pasting text on editor
- How to add a static text at end of a wordpress permalink
- WordPress textual editor problem with new line
- How to add text before posts
- How do i edit text that is not in the customization menu
- How do I enable the text editer in my WordPress theme? [closed]
- How to change text of a widget depend on condition?
- Which wordpress plugin increases the size of tag as per more number of posts on it?
- Header Image instead of dynamic text
- Weird google bot crawl problem
- Add text to Text Widget using Javascript
- Front End Editor
- How to remove lines over text using Phlox theme with Elementor Pro?
- How to hide image alt text/caption in Visual Composer?
- Edit the text location of a form
- I’ve been trying for an hour to remove the underline from links; I don’t understand why something that should be so simple is so difficult [closed]
- Text Wrapping in WPDataTables
- change div text and link for logged in users