Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Can you make sure you link the correct page?
It is correct but the page was private. It should be OK now.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Try the CSS;
.entry-content iframe {
display: table;
margin: 0 auto;
}
Thanks Andrew but can you tell me how I implement this code (where do I put it?)
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Does that theme come with a visible section in the dashboard named something like, “Custom CSS”, “Custom Styles” or “Jetpack”?
Yes – there is an area called ‘custom css code’ that already has the following code in it:
p {
margin-bottom:0.5em;
}
#footer {
border-top:0 solid #E8E7E7;
text-align:center;
}
Sorry for being a pain – CSS is something I have trouble understanding.
Navigate to Theme Options >> Other Options > Custom CSS and add the css that @anevins provided.
Trevor, just cut and paste the code that Andrew provided after
#footer {
border-top:0 solid #E8E7E7;
text-align:center;
}
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
In the Custom CSS Code section, at the bottom, enter it.
E.g
p {
margin-bottom:0.5em;
}
#footer {
border-top:0 solid #E8E7E7;
text-align:center;
}
.entry-content iframe {
display: table;
margin: 0 auto;
}
I’ve added your code and it works a treat – thanks so much!
Does this only affect embedded videos?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
No, I didn’t differentiate between videos and anything that will appear in an iFrame HTML element.
So I gather that WP automatically adds an iFrame whenever I embed a video?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
I don’t know how your iFrame got in the page, sorry.
No worries! I certainly didn’t add it do I guess WP must have done!
Thanks again!