WP page with 100% width but post with sidebar

WP page with 100% width but post with sidebar
WP page with 100% width but post with sidebar

Step 1: Open dashboard of WordPress

Step 2: Go to Appearance

Step 3: Go to theme file editor

Step 4: Open page.php file

Step 5: Search the main container/div/span etc in which post will display. For example, see this code of  page.php file.

In this code, this is the main container

Now, add this property for section.

style=”width: 100%;”

now my previous code will looks like

Final Code: