Featured Images Not Centering

Posted in: Newspaper
Post count: 45

I am importing posts from other wordpress sites into USAdojo.com which uses the newest version of Newspaper 7 theme. All the features images are 600×300 and should center fine in Newspaper 7, but they do not center. How do I fix this?

Post count: 23312

Hello martialwarrior,

The code is ->

.td-post-featured-image {
text-align:-webkit-center!important;
}

The result is here -> https://www.screencast.com/t/e3K2HqudQrzB

If is not what you mean, provide more detail so I will be able to provide am roe accurate response.

Thanks for your understanding!

Post count: 45

You are correct, but I am not an experienced coder. I must be doing something wrong. I believe the change should be made in the CSS below. Could you show me exactly what to add or change in the CSS below if this is the correct CSS and if not please advise. Thank you!!!

Default Post Template
*/
.td-post-content p:empty {
display: none;
}
.td-post-featured-image {
position: relative;
}
.td-post-featured-image img {
display: block;
margin-bottom: 26px;
width: 100%;
}
.td-post-featured-image .wp-caption-text {
margin-bottom: 26px;
z-index: 1;
}

Post count: 23312

Hello martialwarrior,

If you want to align your featured image you should use the code which I gave you above. Notice that I cannot correct your custom CSS above because we cannot afford to do this. In the future, if you want to create your own CSS code, you should check our useful tutorial here -> https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/

Thanks for your understanding!

Post count: 45

We got it. We had changed the CSS correctly but did not delete the cache and didn’t realize that it had worked.

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.