Support » Theme: Nisarg » Post Title align when using RTL

  • i’m using Nisarg theme for my blog (RTL – Hebrew)
    Is there a simple way to align “post title” only to the left (post title is in English)

Viewing 6 replies - 1 through 6 (of 6 total)
  • lilleulven

    (@lilleulven)

    You can add this, either to your child-theme’s style.css or to the customize -> CSS:

    h2.entry-title,
    h1.entry-title{
    text-align:left;
    }

    That should do the trick.

    Good luck.

    Lille Ulven

    Thanks – its partly work – i need that title will be LTR (Cause it is written in english) and the rest of the post will remain RTL

    lilleulven

    (@lilleulven)

    In that case, change it a little bit to this:

    h2.entry-title,
    h1.entry-title{
    text-align:left;
    direction:ltr;
    }

    Good luck.

    Lille ULven

    Bingo !! work perfect.
    is there a way to do the same also in the “Recent post” widget ??

    lilleulven

    (@lilleulven)

    To a degree yes.
    If you only want to get the titles of your posts to be left-aligned use this:

    #recent-posts-2 > ul > li{
    direction: ltr;
    text-align: left;
    }

    If you want the widget’s title “Recent posts” to be left aligned as well use this:

    #recent-posts-2 > ul > li
    , #recent-posts-2 > h4.widget-title {
    text-align: left;
    }

    should do the trick.

    Lille Ulven

    not working – nothing change !

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.