Moderator
James Huff
(@macmanx)
Volunteer Moderator
Thread Starter
Asome
(@asome)
James Huff, How to make the pictures automatically located in the center?
Moderator
James Huff
(@macmanx)
Volunteer Moderator
You can directly modify the theme’s CSS, though it is better to just align each image center when you add it as directed above.
Thread Starter
Asome
(@asome)
I understand it. I would be grateful if they explained how to do this correctly so as not to break the code. Theme: Twenty Nineteen.
Moderator
James Huff
(@macmanx)
Volunteer Moderator
The correct way to do it without breaking it is to set the alignment in each image block. 😉
That will carry over if you ever switch themes, whereas any CSS modification you make will only work under Twenty Nineteen.
Thread Starter
Asome
(@asome)
The site has a large number of pictures that are too long to center manually.
Could you tell me exactly where in the CSS to search for the desired settings line?
Moderator
James Huff
(@macmanx)
Volunteer Moderator
What is the URL of your site?
Moderator
James Huff
(@macmanx)
Volunteer Moderator
That site is currently using Twenty Seventeen, not Twenty Nineteen.
Are you sure that it’s the correct site?
Thread Starter
Asome
(@asome)
I apologize! I copied the wrong name. I did not notice that a new topic appeared in the admin panel.
You’re right. I am using Twenty Seventeen. Sorry again for the confusion.
Moderator
James Huff
(@macmanx)
Volunteer Moderator
Ah ok, I recommend asking at https://wordpress.org/support/theme/twentyseventeen/ so the theme’s developers and support community can help you with this.
Moderator
James Huff
(@macmanx)
Volunteer Moderator