WP post with 100% width but pages with sidebar

By: Prof. Dr. Fazal Rehman Shamil | Last updated: February 1, 2025

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

Step 1: Open dashboard of WordPress

Step 2: Go to Appearance

Step 3: Go to theme file editor

Step 4: Open single.php file

Step 5: Search the main container/div/span etc in which post will display. For example, see this code of  single.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: