WordPress.org

Ready to get started?Download WordPress

Forums

How do I display Hebrew Text in a font other than the default? (7 posts)

  1. mtp1032
    Member
    Posted 1 year ago #

    My blog is self-hosted using WampServer on Windows 7.

    My posts often contain mixed Hebrew & English text (e.g., I do a lot of translation work). To accomplish this, I compose the text in Word (or my Hebrew editor) and then paste it into my blog.

    Here's the problem:

    I want to display the Hebrew using the font I use in Word (i.e., Times New Roman). However, when I paste from Word into WP, some other font is used (Arial I think, but am not sure). What should I do to get WP to display the Hebrew in my desired font?

    Thanks, in advance

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    Do you mean the font in the editor or the font as it appears on the page/post?

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Word is not interchangeable or transferable to WP. In fact, it will likely get corrupted. You need to use a text editor that does not add formatting.

    http://codex.wordpress.org/Editing_Files#Using_Text_Editors

    A possible solution is Windows Live Writer - some people say that works well.

    Formatting for WP is done in the CSS code - so that is where you would set the font for your site.

  4. mtp1032
    Member
    Posted 1 year ago #

    Do you mean the font in the editor or the font as it appears on the page/post?

    Both! But if only one, I'd be satisfied with the display being correct for the page/post.

    Thanks,

  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    As I mentioned above, CSS is the way to set a font for the text on the page. If you post a link to your site, someone can likely help you do so.

  6. mtp1032
    Member
    Posted 1 year ago #

    Word is not interchangeable or transferable to WP. In fact, it will likely get corrupted. You need to use a text editor that does not add formatting.

    Thanks for the quick response, but getting the Hebrew text into WP from Word (or any other editor -- I use a number of the ones on the recommended list you referenced -- thanks, btw) is not a problem.

    Here's a typical problem:

    (1) copy Hebrew text from BibleWorks into {some editor} and compose the post.
    (2) copy the post (containing Hebrew and English) into the WP Editor.
    (3) Everything is hunky-dory except the WP Editor changes font to ariel...
    (4) Begin wailing and knashing of teeth.

    Alternative,

    (1) Copy Hebrew text from BibleWorks (uses BWHebb font) or my Hebrew editor (uses "Times New Roman" and lots of other fonts) directly into WP.
    (2) WP displays "ùÑÆáÀéÀêÈ" (Yes, I have BWHebb and every other Hebrew font imaginable installed on my system).
    (3) Begin wailing and knashing of teeth.

    I've done some CSS coding in the past and am willing to modify the style.css file if that is what it takes.

    By the way, I'm using TwentyTen.

    Cheers,

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Yes, CSS is the only way to set the font -- nothing in the editor will do what you are trying to do. It's best not to modify the style.css file directly -- your changes will be overwritten when WP is updated. You can use a custom CSS plugin or a child theme to avoid that.

    For twentyten, the font is set in this CSS:

    body, input, textarea, .page-title span, .pingback a.url {
        font-family: Georgia,"Bitstream Charter",serif;
    }

    So you can copy that to your custom CSS file and change the font to whatever you want.

    There may be other CSS setting other fonts for different elements on your site?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags