- This topic has 8 replies, 2 voices, and was last updated 7 years, 7 months ago by Mahesh.
-
AuthorPosts
-
September 15, 2016 at 6:14 pm #99426scatmaxParticipant
Hello,
I need to justify the excerpts in the blog loop. If I change the text-align from Center to Justify, the photo will justify to moving toward left.
So, I need to justify the excerpts but keep the photo centered.
Can you supply me the CSS Style code for it please?
Thank you
September 16, 2016 at 9:20 am #99456MaheshKeymaster@scatmax: Please post in your site url, so I can see the issue. How are you getting image in excerpt? I’m a bit confused. Let me know further.
Regards,
MaheshSeptember 16, 2016 at 3:00 pm #99481scatmaxParticipantHello,
thanks for your reply.
There are no images in the excerpts. The images are the ones coming from the posts with the excerpts below. I need to justify the text of the excerpts but doing that, the images above are getting ‘justified’ too moving towards left.
Kind regards
September 16, 2016 at 4:29 pm #99484September 16, 2016 at 7:42 pm #99497scatmaxParticipantSeptember 18, 2016 at 12:18 am #99559scatmaxParticipantok, I think I fixed half the problem:
in the style.css file:
line 239 #supplementary .widget {
line 240 margin-bottom: 30px;I add this:
text-align: justifyand that fixes my problem; it justifies my excerpt and leaves the image centered.
…but, I want to put this in the custom css file.
If I copy the line 239, 240 and I add the text-align: justify, it won’t work.So my question is: What shall I put in the custom css file to make it work?
Thank you
September 19, 2016 at 9:39 am #99630MaheshKeymaster@scatmax: If you still mean to justify the text, go to Dashboard=> Appearance=> Customize=> Theme Options=> Custom CSS box and add the following CSS:
.entry-summary p { text-align: justify; }
Regards,
MaheshSeptember 19, 2016 at 4:43 pm #99661scatmaxParticipantThank you!! It works 🙂
September 19, 2016 at 5:09 pm #99665 -
AuthorPosts
- The topic ‘Justify Excerpts’ is closed to new replies.