Link to home
Start Free TrialLog in
Avatar of sio2y
sio2y

asked on

wordpress full width page: squirrel theme

Hi,


We are attempting to make a fullwidth page in the squirrel theme. The theme tag says it has one already but I was unable to locate it, sooo.......

We have downloaded and edited page.php saving it a new template called fullwidth.php. We have stripped out the 'get-sidebar' from the new page. We have added #contentwide to styles.css however I don't find a place to change div id="content" to div id="contentwide" on fullwidth.php.

- What do we need to add to the style.css and where?
- what do we then add to the fullwidth.php and where?

It would be nice to know the actual page width also - if possible.

The two files are attached for convenience.

Thanks
style.css
fullwidth.php
Avatar of Robert Granlund
Robert Granlund
Flag of United States of America image

You are going to find that div in the header.  It is not part of the template.
Avatar of eemit
1)
Rename a copy of the
page.php
to
fullwidth-page.php


2)
Change (in fullwidth-page.php):
<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the wordpress construct of pages
 * and that other 'pages' on your wordpress site will use a
 * different template.
 *
 */
?>

To:
/**
 * Template Name: Full Width Page Template
 * A Page Template for a full width page, without sidebar.
 *
 */

3)
Change (in fullwidth-page.php):
        <?php get_sidebar(); ?>
To
        <?php //get_sidebar(); ?>
Or delete this line.

4)
In Add New Page you shoul see:
Template:
Full Width Page Template

5)
If you use a child theme (recommended), you can copy this new page template into the child theme.
Avatar of sio2y
sio2y

ASKER

Thank you - we have made the changes as suggested however it is the same as before. we need to add to or alter the style.css to expand the page width.

We did this with a 2011 theme and added #contentwide which made it work perfectly. this theme is of course different and does not have a #contentwide id.

we believe it is the page-content class but are unsure where we would make the changes in either the fullwidth.php and style.css pages to adjust the width.

Thanks.
Try these changes (in fullwidth-page.php):

1)
Comment, or delete this line, and also closing div line:
<div class="grid_16 alpha">

2)
Change:
<div class="page-content" >
To:
<div class="page-content fullwidth" >

and add in Style.css:
.page-content .fullwidth {
    padding:40px 22px;
}
ASKER CERTIFIED SOLUTION
Avatar of eemit
eemit
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sio2y

ASKER

Perfect!!!

Thank You!!! (ad infinitum!)