WordPress.org

Ready to get started?Download WordPress

Forums

align title to right (twenty eleven) (4 posts)

  1. b.amine23
    Member
    Posted 2 years ago #

    hello

    anyone knows how to align page titles to right in twenty elevn theme

    thanks in advance

  2. Ziv
    Member
    Posted 2 years ago #

    First create a child theme of twenty eleven. After that go to the style.css file and find line 723. Line 723 should look like this:

    .entry-title {
    	clear: both;
    	color: #222;
    	font-size: 26px;
    	font-weight: bold;
    	line-height: 1.5em;
    	padding-bottom: .3em;
    	padding-top: 15px;
    }

    Replace the previous batch of code with this one:

    .entry-title {
    	text-align: right;
    	clear: both;
    	color: #222;
    	font-size: 26px;
    	font-weight: bold;
    	line-height: 1.5em;
    	padding-bottom: .3em;
    	padding-top: 15px;
    }

    Please let me know if this works or if you need more help. By the way, are you trying to make your theme work with right to left languages, or are you just trying to do this little tweak?

  3. b.amine23
    Member
    Posted 2 years ago #

    thanks it works fine

    actual webiste will have two languages : one language right to left and another left to right

    can i align the titles of some pages to left and keep title right to others ?

    thanks

  4. Ziv
    Member
    Posted 2 years ago #

    It would be possible. This would require custom post and page templates. It can get a bit complicated though.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.