title of posts/pages
Topics related to RedWaves lite theme goes here.

Alex

New Member Rank
Posts: 9
Joined: Fri Feb 26, 2016 12:12 pm
Display Name: Alex

title of posts/pages

linkPost by SaSaj » Wed Mar 02, 2016 6:31 pm

Greetings to all! How to make Heading on center of the page ?
User avatar
Asmi Khalil

Site Admin Rank
Posts: 781
Joined: Fri Jun 26, 2015 7:13 am
Display Name: Asmi Khalil
Location: Tunisia

Re: title of posts/pages

linkPost by admin » Wed Mar 02, 2016 8:26 pm

Hi again,
Please always add theme name to your topic's title.
Why? That will screw the whole design?! Anyway, here is the CSS code that you need to add to style.css file or Custom CSS option:
To center the post title on Single Post:
.single .entry-title {
	text-align: center;
}
To center the page title on Single Page:
.page .entry-title {
	text-align: center;
}
I think there is a world market for maybe five computers. - IBM chairman Thomas Watson, 1943
Alex

New Member Rank
Posts: 9
Joined: Fri Feb 26, 2016 12:12 pm
Display Name: Alex

Re: title of posts/pages

linkPost by SaSaj » Wed Mar 02, 2016 8:36 pm

I am sorry) My theme name RedWaves Lite
how create this format of text (look to attachment) Need for all pages and posts
Attachments
Sample.JPG
Sample.JPG (35.53 KiB) Viewed 2036 times
User avatar
Asmi Khalil

Site Admin Rank
Posts: 781
Joined: Fri Jun 26, 2015 7:13 am
Display Name: Asmi Khalil
Location: Tunisia

Re: title of posts/pages

linkPost by admin » Wed Mar 02, 2016 9:48 pm

That's called text indent and in CSS, we use the text-indent property to style paragraphs text indent. Use this CSS code to add 2em indent to every paragraphs in posts/pages content:
.entry-content p {
	text-indent: 2em;
}
Feel free to change 2em to any supported value (i.e: 1em, 20px, 10%, ..etc)
I think there is a world market for maybe five computers. - IBM chairman Thomas Watson, 1943

Who is online

Users browsing this forum: No registered users and 1 guest

It is currently Fri Aug 23, 2019 8:36 pm