Full Width

If you don’t have the option of a full width Page template in your theme, it’s easy enough to create your own. You’ll need to be able to access your theme’s folder on your server, and so if you can do that, this should be a fairly easy process.
We’ll go through it in five steps.

Step 1: Create a New Template File
On your server, find your theme’s folder (wp-content/themes/your-theme).
Create a new file and name it something unique and appropriate (e.g. full-width-page.php). Remember to end it with the .php extension.
After that, find the file named page.php. Open that, copy the contents, and then go back to the file you just created (full-width-page.php), and paste those contents into your new file.

Step 2: Remove the Sidebar
Next you’ll want to remove the sidebar. Search for the following code and take it out.

Step 3: Replace the Div ID
Next, you’ll need to find the Div ID for the content and change it, so we can style it the way we like.
More than likely, the div ID for the content will look like this:

Change the name “content” to something unique and identifiable like “content-fullwidth.”

Save the file, and you’re done with the template file.

Schreibe einen Kommentar

Durch die weitere Nutzung der Seite stimmst du der Verwendung von Cookies zu. Beim Besuch dieser Webseite werden Informationen gespeichert. Die Verarbeitung dieser Daten erfolgt zu statistischen sowie werbe- und profilingtechnischen Zwecken. Weitere Informationen

Die Cookie-Einstellungen auf dieser Website sind auf "Cookies zulassen" eingestellt, um das beste Surferlebnis zu ermöglichen. Wenn du diese Website ohne Änderung der Cookie-Einstellungen verwendest oder auf "Akzeptieren" klickst, erklärst du sich damit einverstanden.

Schließen