How to change "container" class to "container-fluid" class in wordpress?

by tressie.damore , in category: PHP CMS , 6 months ago

How to change "container" class to "container-fluid" class in wordpress?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer


by lily , 6 months ago


To change the "container" class to "container-fluid" class in WordPress, follow these steps:

  1. Login to your WordPress Admin Dashboard.
  2. Navigate to Appearance > Editor.
  3. Select the theme that you are using (usually found in the right-hand column).
  4. Locate the "header.php" file on the right-hand side.
  5. Click on "header.php" to open it in the editor.
  6. Look for the line of code that includes the "container" class. This line may look something like this:
  7. Replace the "container" class with "container-fluid" like this:
  8. Click on the "Update File" button to save your changes.

After completing these steps, the "container" class will be changed to the "container-fluid" class throughout your WordPress theme. This will make the content width span the entire width of the screen.