Centering Text


#1

I like to center the text of all my articles. Is there a way for me to do this without having to add <p style="text-align: center;"> every time.

Thank you :slight_smile:


#2

Hello,

you can add this code using custom css plugin to centering article text:

.entry-summary {
  text-align: center;
}

#3

Thank you for such a quick response, but that code did not work for me.

:slight_smile:


#4

Doing a little testing I discovered changing summary to content achieved the results I wanted.

.entry-content {
  text-align: center;
}

Thanks :slight_smile:


#5

cool!
.entry-summary for the summary / content with excerpt / used in the list of the articles whereas .entry-content for the content details