WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Unique font problem, please help (6 posts)

  1. aliirani
    Member
    Posted 8 years ago #

    Take a look at my site:
    http://amir.irani-tehrani.com

    I'm trying to write in English, Farsi, and Germany. English and Germany are no problem. Farsi text comes out too small and is difficult to read. Is there a way I can increase the font size in my Farsi postings? I've tried resizing my text in Dreamweaver and then pasting the code into wordpress, but that doesn't help at all. Anyone have any suggestions?

    Again, Germany and English sizes are fine, but Farsi is very very difficult to read! Please help!

  2. moshu
    Member
    Posted 8 years ago #

    The only thing I can think of (maybe as a temporary solution) to wrap your Farsi posts in a div - and define a bigger font size for that div in the stylesheet.

  3. aliirani
    Member
    Posted 8 years ago #

    moshu, can you expand on that a bit? You're mroe than welcome to post to the blog! copy and paste some of the farsi text! :)

  4. moshu
    Member
    Posted 8 years ago #

    It was just a quick thought, but maybe it's worth to experiment with it.
    When starting to write a post in Farsi, start with something like:
    <div class="persian">
    AND WRITE HERE YOUR FARSI TEXT...
    </div>

    Now go to your stylesheet (style.css file in the default theme) and define:
    .persian {
    font-size: 1.2em;
    }

    - you can play with that 1.2 value until it looks like you want.

  5. aliirani
    Member
    Posted 8 years ago #

    Moshu,

    AWESOME!! You suggestion works great! Makes my want to learn more about styles and php and all that good stuff :)

  6. moshu
    Member
    Posted 8 years ago #

    Glad it worked for you. And btw, there is no "php magic" in this solution, just a bit of CSS.

Topic Closed

This topic has been closed to new replies.

About this Topic