- This topic has 7 replies, 2 voices, and was last updated 4 years ago by
Tom.
-
AuthorPosts
-
March 6, 2019 at 12:18 pm #830929
Taylor
For our blog site, I am trying to have different pages for different topics, and I am trying to decide the best way to use those pages. I would like to use blog posts for the articles/posts and link those posts to the correct pages. I am trying to do this by using the WordPress embed link when I edit a page.
The problem is the WordPress embed link looks centered when I’m editing, but on the live site everything is justified to the left. When I left justify in editing, the live site starts making columns. I just want the WordPress embed links to be center down the page.
The page I have been testing this on is the High Lifter Mud Nats page.
GP Premium 1.7.8March 6, 2019 at 2:23 pm #830999Tom
Lead DeveloperLead DeveloperHey Taylor,
This CSS should fix it:
.wp-block-embed-wordpress { text-align: center; }
The fact that it’s centered in the editor probably means Gutenberg centers it, but only if you include their optional CSS:
add_action( 'after_setup_theme', function() { add_theme_support( 'wp-block-styles' ); } );
Adding PHP: https://docs.generatepress.com/article/adding-php/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 6, 2019 at 3:01 pm #831028Taylor
Where do I put the CSS code that should fix it? Also, do I only need the top (first) code you provided or the bottom (second) code too?
March 6, 2019 at 3:06 pm #831034Tom
Lead DeveloperLead DeveloperCSS can be added like this: https://docs.generatepress.com/article/adding-css/
You only need to use one of the methods. Not sure if #2 will work, but #1 will.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 6, 2019 at 3:18 pm #831046Taylor
Thank you. Where do I put the #1 CSS code you provided?
March 6, 2019 at 4:03 pm #831077Tom
Lead DeveloperLead DeveloperIt can be added using one of these methods: https://docs.generatepress.com/article/adding-css/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 7, 2019 at 5:54 am #831609Taylor
Your solution fixed it! Thank you SO much!!
March 7, 2019 at 6:48 am #831667Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.