WordPress - mass editing images

Discussion Of All Legal Topics Is Fine Anything Goes. Be Respectful of Others. No Personal Information or Attacks.
All Traffic, Link, Banner, Push Notification and Advertising, Offers & Requests Here,.
Domains & Websites For Sale and Requests Here.
Keep One thread per person & No More Than 1 Weekly Bump.
Post Reply
User avatar
TheButcher
Administrator
Administrator
Posts: 17531
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

WordPress - mass editing images

#1

Post by TheButcher » April 14th, 2021, 3:37 pm

Hi guys, looked for this but have not found a solution, is there a way to mass edit posts so all images are "Centered" in the posts.

I redid the theme on https://somenudes.com and like it but some people who p[posted images did not "Center" them and they look on the left.

Thanks
Peace

Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#2

Post by Colmike7 » April 14th, 2021, 4:07 pm

Yeah. In the template, every place where you want it centered, add in code to center it around <php the_content();> But then that would center the entire post.
(Child themes and all that, I know...)
To make it center just post images that people didn't set, that might take a little more work and I'd have to look at the code.




Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#3

Post by Colmike7 » April 14th, 2021, 4:08 pm

Or just go in and edit the ones that didn't center and add in aligncenter




User avatar
TheButcher
Administrator
Administrator
Posts: 17531
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#4

Post by TheButcher » April 14th, 2021, 4:34 pm

Colmike7 wrote: ↑
April 14th, 2021, 4:07 pm
Yeah. In the template, every place where you want it centered, add in code to center it around <php the_content();> But then that would center the entire post.
(Child themes and all that, I know...)
To make it center just post images that people didn't set, that might take a little more work and I'd have to look at the code.
It's the index page images for example here https://somenudes.com/page/91/
I would not mind if everything on the page is centered, I assume it would be on "Main Index Template" but I can't figure out where to stick that code Mike.

Any ideas please.

Peace

Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#5

Post by Colmike7 » April 14th, 2021, 4:34 pm

^If the posts use featured images, then that would be easier.




User avatar
TheButcher
Administrator
Administrator
Posts: 17531
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#6

Post by TheButcher » April 14th, 2021, 4:35 pm

Colmike7 wrote: ↑
April 14th, 2021, 4:34 pm
^If the posts use featured images, then that would be easier.
Only a few, the rest are linked from outside source.

calista
Verified Member
Verified Member
Posts: 1988
Joined: February 20th, 2018, 6:15 pm
Title: Manila Babe

#7

Post by calista » April 14th, 2021, 6:40 pm

It has to be on the single post page not on the index (guess)




User avatar
BrasSmonkey
Verified Member
Verified Member
Posts: 7893
Joined: February 28th, 2018, 6:31 pm
Title: Smell My Sack
Referrals: 1
Contact:

#8

Post by BrasSmonkey » April 14th, 2021, 7:25 pm

i centered mine :)
THE LAKEN RILEY ACT IS NOW LAW!!! TRUMP 2025!!!
DACA HAS ENDED!!! email: brassballz-@-techie.com

User avatar
TheButcher
Administrator
Administrator
Posts: 17531
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#9

Post by TheButcher » April 14th, 2021, 7:55 pm

BrasSmonkey wrote: ↑
April 14th, 2021, 7:25 pm
i centered mine :)
Thanks boss, is there a way for me to go in and mass edit them by user name?

How do you like this theme, the other one was nice too nut 4 across was not getting each post as much attention, I think this way with pages separated not one for ever infinite scroll more posts will get stars.

User avatar
AlexO
Verified Member
Verified Member
Posts: 6409
Joined: February 10th, 2018, 5:37 pm
Title: I like Celebrities

#10

Post by AlexO » April 15th, 2021, 9:18 am

It is an improvement on the old style.
Give me celebrity porn :twisted:

User avatar
vblogger
Verified Member
Verified Member
Posts: 1935
Joined: February 17th, 2018, 2:48 pm

#11

Post by vblogger » April 16th, 2021, 11:09 am

I have never come across this one let me think if I come up with a solution I'll be back to post it




fetishnews
Verified Member
Verified Member
Posts: 1336
Joined: February 16th, 2018, 6:30 pm

#12

Post by fetishnews » April 19th, 2021, 1:25 pm

Asked for this last year, no one had a plugin for me.




Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#13

Post by Colmike7 » April 19th, 2021, 1:32 pm

vblogger wrote: ↑
April 16th, 2021, 11:09 am
I have never come across this one let me think if I come up with a solution I'll be back to post it
A plugin won't do it.

When someone makes the theme, there are parts where it takes in the post data from the DB. That php is where you'll want to put the centering code and might be different depending on the theme. It will also need to be coded everywhere where the post image/content needs to be centered. Ex: single.php, archive.php, etc.




User avatar
HeidiHoe
Verified Member
Verified Member
Posts: 1653
Joined: February 3rd, 2018, 12:20 pm
Title: Resident Genius

#14

Post by HeidiHoe » April 19th, 2021, 6:00 pm

Colmike7 wrote: ↑
April 19th, 2021, 1:32 pm
vblogger wrote: ↑
April 16th, 2021, 11:09 am
I have never come across this one let me think if I come up with a solution I'll be back to post it
A plugin won't do it.

When someone makes the theme, there are parts where it takes in the post data from the DB. That php is where you'll want to put the centering code and might be different depending on the theme. It will also need to be coded everywhere where the post image/content needs to be centered. Ex: single.php, archive.php, etc.
Just thinking out loud here but...
Would adding alignment style to img marked !important to the inline style from within customize theme area make a difference?
The Fourth Turning Is Here

User avatar
HeidiHoe
Verified Member
Verified Member
Posts: 1653
Joined: February 3rd, 2018, 12:20 pm
Title: Resident Genius

#15

Post by HeidiHoe » April 19th, 2021, 6:30 pm

fetishnews wrote: ↑
April 19th, 2021, 1:25 pm
Asked for this last year, no one had a plugin for me.
https://wordpress.org/plugins/search-and-replace/

https://wordpress.org/plugins/real-time ... d-replace/

1st plugin makes changes in database so create a backup 1st just in case. 2nd plugin makes changes in real time only and does not alter database. I've checked out the second and it seems to get the job done. I've used the 1st to change external URLs from http to https and couldn't have been more pleased. It's real easy to use and it's quick. I suppose you could do a search for <img src and replace it with <img style="text-align:center" src. Or replace with <div style="text-align:center"><img src and do a search to find the end to add the </div>. The search where to place the close tag could be a little tricky, look at your source code to see what's unique to the end of the img tag.
The Fourth Turning Is Here

WordPress - mass editing images

Post Reply