admin管理员组

文章数量:1130349

I want to cover the entire width of my page with the cover image block, the one where you can write on top of it. If I need to add a code, please provide the code as well for CSS class. Or is there any other way ?

I want to cover the entire width of my page with the cover image block, the one where you can write on top of it. If I need to add a code, please provide the code as well for CSS class. Or is there any other way ?

Share Improve this question asked Nov 27, 2018 at 13:27 Rishabh SharmaRishabh Sharma 1031 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

In order to support Wide alignment, the theme needs to add support for it. In the theme functions.php file:

add_theme_support( 'align-wide' );

Then both Wide width and Full width options will appear in the block toolbar.

I want to cover the entire width of my page with the cover image block, the one where you can write on top of it. If I need to add a code, please provide the code as well for CSS class. Or is there any other way ?

I want to cover the entire width of my page with the cover image block, the one where you can write on top of it. If I need to add a code, please provide the code as well for CSS class. Or is there any other way ?

Share Improve this question asked Nov 27, 2018 at 13:27 Rishabh SharmaRishabh Sharma 1031 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

In order to support Wide alignment, the theme needs to add support for it. In the theme functions.php file:

add_theme_support( 'align-wide' );

Then both Wide width and Full width options will appear in the block toolbar.

本文标签: pluginsHow to make cover image in post block expand to entire screen