WordPress.org

Ready to get started?Download WordPress

Forums

Using Hebrew WP install but want English ability (5 posts)

  1. eliesheva
    Member
    Posted 2 years ago #

    Hi. I'm using a Hebrew version of WordPress installation. But I want some of the pages to be English (I'm making a main menu in Hebrew, and a sub menu in English). I'm trying to keep it simple since Multi-site totally confused me.

    I read about adding mo files to an English installation; can I add an English mo file to a Hebrew one? How would I get it, I don't see it on the 'WordPress in your language' doc.

    I'm also wondering if I can mess with the template so the English pages are totally right-aligned (including titles, sidebar elements, etc). I take it that would involve messing with CSS in the template?

    The site is http://www.hatzur.org/

    Thanks!

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    can I add an English mo file to a Hebrew one?

    You know... I don't think you can. What I think you need to do is disable the hebrew .mo file within the theme on the English pages. Do you know how the theme is applying language packs? It should be in functions.php.

    I'm also wondering if I can mess with the template so the English pages are totally right-aligned

    That's a little easier. You'd need to amend the theme's header.php and load the theme's stylesheet(s) conditionally so that the rtl sheet is loaded on Hebrew pages and a ltr sheet is used on English pages. Again, it boils down to how the theme is applying the rtl CSS in header.php.

  3. eliesheva
    Member
    Posted 2 years ago #

    Thanks! Those are great starting points.

    Just to get some more specific guidance... When you say 'English pages' in the first response, how would I specify that a certain page is English in the template? As in, my assumption is that I'd go into one of the template files so it applies to all English pages? Or did you mean each one specifically - how would I access the back end for individual pages?

    (Or does the 'conditional tags' apply to the first part of your answer too?)

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    how would I specify that a certain page is English in the template?

    Again it would need to be a conditional. You could base it on the page id but that could get tiresome over time , so it's never my first choice. A better option might be to apply a custom page template to all English pages. That would not only allow you to use is_page_template but might also help with your CSS later on via body.page-template-(template file name).

  5. eliesheva
    Member
    Posted 2 years ago #

    Thank you! Will look into these options.

Topic Closed

This topic has been closed to new replies.

About this Topic