WordPress.org

Ready to get started?Download WordPress

Forums

Simplify
[resolved] Change alignment of H1 on a single page (8 posts)

  1. guy1407
    Member
    Posted 3 weeks ago #

    Hi

    I wish to change the alignment of one of the H1 titles.
    Why:
    I developed a Hebrew(RTL) website, but added a single English page (about us), only there I want to align the title to the left.

    I tried:
    h1.page-id-14 { text-align: right !important;}
    (lets say that the page ID is 14)

    Please advise
    Guy

  2. ellp
    Member
    Posted 3 weeks ago #

    Hell Guy!

    Can your please provide your site url?

    Thanks!

  3. guy1407
    Member
    Posted 3 weeks ago #

    Hi

    Sorry for my late reply.
    you can see here
    Page ID = 260.
    "About us" title is right aligned

    Thanks!
    Guy

  4. ellp
    Member
    Posted 3 weeks ago #

    No problem Guy :)

    Try to use this code:

    h1#post-260{
    text-align:left;
    }

    Let me know if it works.

  5. guy1407
    Member
    Posted 3 weeks ago #

    Did not work :(
    Thanks

  6. ellp
    Member
    Posted 3 weeks ago #

    Try this one:

    body.page-id-260 h1.page-title{
    text-align:left;
    }
  7. guy1407
    Member
    Posted 3 weeks ago #

    Working!!!!!!!! (tested on my compyter ATM, because the website owner is asleep at 04:34 AM....)

    Thanks a lot!

  8. ellp
    Member
    Posted 3 weeks ago #

    Nice!

    Glad to help :)

Reply

You must log in to post.

About this Theme

About this Topic