Solved

wordpress full width page: squirrel theme

Posted on 2013-06-17
6
616 Views
Last Modified: 2013-06-17
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
0
Comment
Question by:sio2y
  • 3
  • 2
6 Comments
 
LVL 7

Expert Comment

by:rgranlund
Comment Utility
You are going to find that div in the header.  It is not part of the template.
0
 
LVL 15

Expert Comment

by:eemit
Comment Utility
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.
0
 

Author Comment

by:sio2y
Comment Utility
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.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 15

Expert Comment

by:eemit
Comment Utility
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;
}
0
 
LVL 15

Accepted Solution

by:
eemit earned 500 total points
Comment Utility
Alternative to my last post:

Change (in fullwidth-page.php):
<div class="grid_16 alpha">
To:
<div class="grid_24 alpha">

See in \wp-content\themes\squirrel\css\960_24_col.css
.grid_16{width:630px}
.grid_24{width:950px}
.grid_23{width:910px}
...
0
 

Author Closing Comment

by:sio2y
Comment Utility
Perfect!!!

Thank You!!! (ad infinitum!)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses how to create an extensible mechanism for linked drop downs.
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now