Solved

How to widen page to accomodate sidebars.

Posted on 2014-03-14
43
365 Views
Last Modified: 2014-03-19
I have a web site developed by a third party.  I currently appears to be single colum and I am unable to figure out how to make it wide enough to accept sidebars.  Here is the code for the page.php that exists in the site.  The site is www.myzooanimalhospital.com  ....

<?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.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

wp_enqueue_script('jquery');

get_header(); ?>

<script type="text/javascript">

jQuery('body').removeClass('singular');

</script>

            <div id="primary">
       
              <div id="page-banner"><img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/page-banner.jpg"></div>
           
            <div id="wrapper">
       
                <div id="content" class="mypage" role="main">
   
                    <?php while ( have_posts() ) : the_post(); ?>
   
                        <?php get_template_part( 'content', 'page' ); ?>
   
                        <?php //comments_template( '', true ); ?>
   
                    <?php endwhile; // end of the loop. ?>
   
                </div><!-- #content -->
               
                <?php get_sidebar(); ?>
               
            </div><!-- #wrapper -->
               
            </div><!-- #primary -->
     
<?php get_sidebar(); ?>
<?php get_footer(); ?>
0
Comment
Question by:leachj
  • 24
  • 19
43 Comments
 
LVL 15

Expert Comment

by:eemit
ID: 39929927
In Edit Page Screen, Page Attributes you can assign a template for any individual Page by using the Template dropdown.
Your Theme have for sure a Template with a sidebar.
0
 

Author Comment

by:leachj
ID: 39930223
I can assign sidebar template but it does not show.  It has archive widget selected to show in main sidebar but it does not.
0
 
LVL 15

Expert Comment

by:eemit
ID: 39931323
Strange that in code you posted <?php get_sidebar(); ?> is called two times.
Try to comment out first one.
0
 

Author Comment

by:leachj
ID: 39932524
Commented each in turn, loaded and refreshed site page and no difference.
0
 

Author Comment

by:leachj
ID: 39932525
There is also a no-sidebar-page.php file, but I cannot tell how it is incorporated into the code flow.....

<?php
/**
 * Template Name: No Sidebar Page
 *
 */

wp_enqueue_script('jquery');

get_header(); ?>

<script type="text/javascript">

jQuery('body').removeClass('singular');

</script>

            <div id="primary">
       
              <div id="page-banner"><img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/page-banner.jpg"></div>
       
                  <div id="wrapper">
       
                <div id="content" class="myhome" role="main">
   
                    <?php while ( have_posts() ) : the_post(); ?>
   
                        <?php get_template_part( 'content', 'page' ); ?>
   
                        <?php //comments_template( '', true ); ?>
   
                    <?php endwhile; // end of the loop. ?>
   
                </div><!-- #content -->
               
            </div><!-- #wrapper -->
            </div><!-- #primary -->

<?php get_footer(); ?>
0
 
LVL 15

Expert Comment

by:eemit
ID: 39932573
Your Page "Staff" use a Page Template with Right Sidebar.
There is one Widget in this Sidebar "Archives".

Take a look in Edit Page Screen of this Page, in Template dropdown, what is the name of this Page Template and assign this Page Template to other pages where you want to display a right sidebar.
0
 

Author Comment

by:leachj
ID: 39933344
The pages of the menu seem to accept the sidebar.  The link page at the top right, which is the blog page does not.  It is set to the same as the others that accept the sidebar, which is default.  Setting the blog page to default template however does not seem to have any effect.
0
 
LVL 15

Expert Comment

by:eemit
ID: 39935175
Go to Settings, Reading Settings.
If in Front page displays: "A static page (select below)" is selected then
in "Posts page" dropdown: Select your Blog Page
0
 

Author Comment

by:leachj
ID: 39936676
I think this was meant for my other post on blogs.  That worked great.  Any ideas on how to widen?  If I post a blank page,  the sidebar is shown.  With a post in place, the sidebar does not show.  I think there isn't enough room.
0
 
LVL 15

Expert Comment

by:eemit
ID: 39936821
On your Page "Staff" the sidebar is also not shown now.
1) Are you sure that you have assigned Page Template with sidebar to this page and also to Blog Page?
2) Take a look at page.php, maybe you have by accident commented out both code lines <php get_sidebar ();?>
3) Make sure that you have added some widgets to your sidebar.
0
 

Author Comment

by:leachj
ID: 39937001
I assigned no sidebar page to staff.  I didn't want it there.  Just didn't catch it.  Thanks.  I have created another post to address the sidebar on the comments page....
http://www.experts-exchange.com/Web_Development/Blogs/WordPress/Q_28391096.html

I have sidebar page assigned to blog page. <php get_sidebar ();?> is in page.php right above the get footer line.  If you click on one of the posts, you can see the position of the sidebar which leads me to believe the area is not wide enough for it to show on the page.
http://www.myzooanimalhospital.com/blog
0
 

Author Comment

by:leachj
ID: 39937074
Ok, got the other issue with hiding the sidebar on the comments page solved.  Now I can show it again and we can go from here.
0
 
LVL 15

Expert Comment

by:eemit
ID: 39937975
You should check the Settings of your Plugins:
twenty-eleven-theme-extensions and advanced-wp-columns

What happens with the the sidebar if you deactivate the plugin twenty-eleven-theme-extensions?
0
 

Author Comment

by:leachj
ID: 39938113
deactivating the plugin with <php get_sidebar ();?> put back in the single page.php file makes no difference.  My settings in advanced-wp-columns are

Advanced WP Columns
Main options related to the default settings and columns theming.
Container width            960

Full width of all of your columns, optimal is 960
Initial structure            Two Columns
Responsive layout       Enabled
Resolution breaking point            1024

Show one column per row when screen width
is smaller than specified, optimal is 1024

Column per row occupation            80%

Define how much space in percentage will column occupy
in row after resolution break when is single, optimal is 80%

Empty paragraphs formating       unchecked
Disable on small resolutions (follow this link for more details)      

Container class            
CSS class which you want to apply to columns container

Column class            
CSS class which you want to apply to all columns

Gutter class            
CSS class which you want to apply to all gutters
0
 
LVL 15

Expert Comment

by:eemit
ID: 39938227
Without plugins, if you add <?php get_sidebar(); ?> to single.php in Twentyeleven Theme, you need also the following in your Theme's Style.css:

.singular #primary {
    width: 70%;
}

But you have removed body class singular, and have also these plugins, therefore try:
.single #primary {
    width: 82%;
}
0
 

Author Comment

by:leachj
ID: 39938292
I added it.  Does it matter where in the code it is put?  It didn't seem to make much difference.  The sidebar on the comments page moved a bit to the right but still the text is overlapping as you can see.  Also the blog page is set to use the sidebar template but non shows there.
0
 
LVL 15

Expert Comment

by:eemit
ID: 39938321
I have edited my last comment. Try:

.single #primary {
    width: 82%;
} 

.single #page-banner img {
    width: 100%;
    height: auto;
}

Open in new window


Put this at the end of the file.
0
 

Author Comment

by:leachj
ID: 39938364
That worked for the comments page.  I changed it to 80% to give some space between the main column and the sidebar.  Is there a way to drop the sidebar down some?  Also can I apply this to the blog page somehow?
0
 

Author Comment

by:leachj
ID: 39938371
Here is the syles.css....

@import url('../twentyeleven/style.css');



/*

Theme Name: My Zoo

Description: Child Theme Of Twenty Eleven

Author: SearchworxX

Author URI: http://www.searchworxx.com/

Version: 1.0

Template: twentyeleven

*/


@font-face {  

        font-family: "Helvetica Neue Light" ;

        src: url('font/helvetica-neue-light.eot');  

        src: url('font/helvetica-neue-light.eot?#iefix') format('embedded-opentype'), url( 'font/helvetica-neue-light.ttf' ) format("truetype");

        font-weight:normal;  

}



@font-face {  

        font-family: "Segoe Print" ;

        src: url('font/segoepr.eot');  

        src: url('font/segoepr.eot?#iefix') format('embedded-opentype'), url( 'font/segoepr.ttf' ) format("truetype");

        src: local("Segoe Print");

        font-weight:normal;

}



* {

      font-family: "Helvetica Neue Light", Arial, Helvetica, sans-serif;

}



#content ul

{

      list-style-type: none;

      margin-left: 20px;

}



#content li

{

      background-image:url(images/red-paw-small.png);

      background-repeat: no-repeat;

      padding-left: 20px;

      margin-left: 0 !important;

      line-height:1.5em !important;

}



/* =Structure

----------------------------------------------- */



body {

      padding:0;

      background-color:#fff;

}



#page-background {position:absolute; top:0; left:0; width:100%; height:743px;}



.stretch {

    width:100%;

    height:743px;

      min-width:1048px;

}



#page {

      background-color:transparent;

      margin: 0 auto;

      width: 1000px;

      position:relative; z-index:1;

}



#main {

      padding:0;

}



#secondary {

      margin-right: 0;

      width: 180px;

}



/* =Header

----------------------------------------------- */



#logo {

      float:left;

}



#animals {

      position:absolute;

      top:0; left:0;

      margin-left:173px;

      margin-top: 3px;

}



#heading-right {

      float:right;

      position:relative;

}



#mynav {

      float:right;

      margin-top: 10px;

}



#mynav ul li {

      display:inline;

      list-style:none;

      color:#b60000;

}



#mynav ul li a {

      font-size: 14px;

      color:#b60000;

      font-family:Helvetica, Arial, sans-serif;

}



#phone {

      clear:right;

      float:right;

      font-size:29px;

      font-family:Helvetica, Arial, sans-serif;

      line-height: 1em;

      margin-top: -20px;

}



/* =Menu

-------------------------------------------------------------- */



#access {

      background: transparent;

      box-shadow: none;      

      margin: 0 auto;

      margin-top: -7px;

      /*border: 1px solid #fff;*/

}



#access ul {

      font-size: 15px;

      list-style: none;

      margin: 0 0 0 -4em;

      padding-left: 0;

}



#access a, #access ul ul a {

      color: #fff;      

      line-height: 2em;

      padding: 1px 13px 2px;      

}



#access a:hover, #access li:hover > a,

#access a:focus {

      background:url(images/nav-highlight-bg.png) repeat-x #6c6060 !important;

      color:#fcf085 !important;

}



#access ul li ul {

      margin-top:-18px !important;

}



#access ul ul a {

      background: #000;

}



/* =Home

----------------------------------------------- */



#primary .myhome {

      margin:0;

      width:100%;

}



#slider {

      margin: 10px auto 30px;

}



#sliderstatic {

      margin: 10px auto 30px;

}



#home-content {

      border: 7px solid #b00000;

      background-color:#fff;

      font-size:14px;

      line-height:1.2em;

      padding: 5px 10px;

      margin-bottom: 10px;

        clear: both;

}



#bottom-box {

      background:url(images/bottom-box.png) no-repeat #fff;

      width:1000px;

      height:274px;

      margin-bottom: 10px;

}



#box-1, #box-2, #box-3 {

      float:left;

      text-align:center;

}



#bottom-box h3.widget-title {

      color:#b80000;

      font-size:24px;

      font-family: "Segoe Print", Verdana, Geneva, sans-serif;

      line-height: 1.2em;

      padding:7px 0 5px;

      text-transform:capitalize;

}



#box-1 {

      width:325px;

      margin-left: 5px;

}



#box-2 {

      width:335px;

      margin-left: 5px;

}



#box-3 {

      width:320px;

      margin-left: 5px;

}



.box-desc {

      width:244px;

      height:auto;

      font-size:14px;

      line-height:1.2em;

      margin:0 auto;

      text-align:left;

}

      



/* =Content

----------------------------------------------- */



h1.entry-title {

      color:#b80000;

      font-size:24px;

      font-family: "Segoe Print", Verdana, Geneva, sans-serif;

      line-height: 1.2em;

      padding:0 0 10px;

}



#home-content h1 {

        color:#b80000;

      font-size:24px;

      font-family: "Segoe Print", Verdana, Geneva, sans-serif;

      line-height: 1.2em;

      padding:0 0 10px;

}



#page-banner {

      margin: 10px auto 10px;

}



#wrapper {

      border: 7px solid #b00000;

      background-color:#fff;

      font-size:14px;

      line-height:1.2em;

      padding: 5px 9px 5px 17px;

      overflow:hidden;

      margin-bottom:30px;

}



#primary .mypage {

      margin:0;

      width:750px;

      float:left;

}



/* =Sidebar

----------------------------------------------- */



#secondary aside {

      margin-bottom:10px;

      background:url(images/sidebar-bg.jpg) repeat-x #fff;

      padding:10px;

      border:1px solid #c5c5c5;

      font-size:13px;

}



#secondary aside ul {

      margin-left: 13px;

}



#secondary h3.widget-title {

      color:#b80000;

      font-size:15px;

      font-family: "Segoe Print", Verdana, Geneva, sans-serif;

      line-height: 1.2em;

      text-align:center;

      text-transform:capitalize;

}



/* =Footer

----------------------------------------------- */



#footer {

      background:url(images/footer-bg.jpg) repeat-x #040404;

      width:100%;

      min-height:33px;

      overflow:hidden;            

      font-size: 16px;

      color: #fff;

      position:relative;
      
      max-width: auto;
      min-width: 1048px;

}



#footer-content {

      width: 1000px;

      margin: 0 auto;

}

.single #primary {
    width: 80%;
}

.single #page-banner img {
    width: 100%;
    height: auto;
}
0
 
LVL 15

Expert Comment

by:eemit
ID: 39938379
Add also this:
.single #secondary {
    margin-top: 10px;
}
0
 
LVL 15

Expert Comment

by:eemit
ID: 39938387
Click on Appearance, Customize, Layout, to see what is selected.
Content on left, Content on right or One-column, no sidebar.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:leachj
ID: 39938454
Content on left
0
 
LVL 15

Expert Comment

by:eemit
ID: 39938502
Is "Sidebar Template" assigned to your Blog Page?
If it is not, set it and please post your sidebar-page.php here.
When posting code it is helpful if you enclose your code in the code tag.
0
 

Author Comment

by:leachj
ID: 39938535
There is no sidebar-page.php only a no-sidebar-page.php.    As I said, this was done by a third party and I am trying to cipher it.  This is a child theme of Twenty Eleven.
0
 
LVL 15

Expert Comment

by:eemit
ID: 39938559
But in Twenty Eleven there is a file named sidebar-page.php.
0
 

Author Comment

by:leachj
ID: 39938574
<?php
/**
 * The Sidebar containing the main widget area.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

$options = twentyeleven_get_theme_options();
$current_layout = $options['theme_layout'];

if ( 'content' != $current_layout ) :
?>
		<div id="secondary" class="widget-area" role="complementary">
			<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>

				<aside id="archives" class="widget">
					<h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3>
					<ul>
						<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
					</ul>
				</aside>

				<aside id="meta" class="widget">
					<h3 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h3>
					<ul>
						<?php wp_register(); ?>
						<li><?php wp_loginout(); ?></li>
						<?php wp_meta(); ?>
					</ul>
				</aside>

			<?php endif; // end sidebar widget area ?>
		</div><!-- #secondary .widget-area -->
<?php endif; ?>

Open in new window

0
 
LVL 15

Expert Comment

by:eemit
ID: 39938604
What you have posted is not page Template "Sidebar Template" sidebar-page.php. It is sidebar.php.
OK. You can make a new one:
Make a copy of no-sidebar-page.php and name it new-sidebar-page.php.

change the line:
* Template Name: No Sidebar Page
to:
 * Template Name:  Page with right Sidebar

and add line:
<?php get_sidebar(); ?>
above the line:
<?php get_footer(); ?>

You should also remove: class="myhome" from the line
<div id="content" class="myhome" role="main">


In  Edit Page Screen you should see "Page with right Sidebar" in Template dropdown.
Assign it to your Blog Page.

You can style it similar to single page.
Instead of the css class .single use the class .blog
0
 

Author Comment

by:leachj
ID: 39938683
Is this the one?
<?php
/**
 * Template Name: Sidebar Template
 * Description: A Page Template that adds a sidebar to pages
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

get_header(); ?>

		<div id="primary">
			<div id="content" role="main">

				<?php while ( have_posts() ) : the_post(); ?>

					<?php get_template_part( 'content', 'page' ); ?>

					<?php comments_template( '', true ); ?>

				<?php endwhile; // end of the loop. ?>

			</div><!-- #content -->
		</div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>

Open in new window

0
 

Author Comment

by:leachj
ID: 39938690
I am still trying to figure out why when I select a date from the archive widget, it brings up the post with a transparent background.  I added this to style.css and it solved that problem...sort of.  

.post {
    background-color:#eae7e7;
    margin-top: 10px;
    width: 100%;
    padding: 10px;
}

In futzing with it, I left out a semicolon when I added one of the lines and the background of the post came up transparent.  I am assuming that is the original problem.  A missing semicolon somewhere in the parent theme perhaps.  Haven't figured out how to put the banner on the archive post display page though.  It throws the alignment of the sidebar off.  If you look at it you will see what I mean.  I have to knock off for tonight.  Talk at you tomorrow.
John
0
 
LVL 15

Accepted Solution

by:
eemit earned 500 total points
ID: 39939321
>Is this the one?
- Yes, but if "Sidebar Template" is not available in Edit Page screen in Template dropdown, please make new-sidebar.php as I have posted.

>Haven't figured out how to put the banner on the archive post display page though
- What files do you have in child themes directory?
- Is archive.php available in child themes directory? If it is not, please copy it into child themes directory.

In Archive.php (In Child Theme) you need to add this:
			<div id="page-banner"><img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/page-banner.jpg"></div>
			<div id="wrapper">

Open in new window

below the line:
            
<section id="primary">

Open in new window

and:
                  
</div><!-- #wrapper -->

Open in new window

above the line:
            
</section><!-- #primary -->

Open in new window


- You should then change the styles that we have added as:
.single #primary,
.blog #primary,
.archive #primary {
    width: 80%;
}
.single #page-banner img,
.blog #page-banner img,
.archive #page-banner img {
    height: auto;
    width: 100%;
}
.single #secondary,
.blog #secondary,
.archive #secondary {
    margin-top: 10px;
}

Open in new window

0
 

Author Comment

by:leachj
ID: 39939384
Sidebar Template is available in page edit dropdown.  Should I create the new-sidebar-page.php anyway?
0
 
LVL 15

Expert Comment

by:eemit
ID: 39939445
>Sidebar Template is available in page edit dropdown.
Is "Sidebar Template" assigned to your Blog Page?

>Should I create the new-sidebar-page.php anyway?
Yes, you can always remove it again.
0
 
LVL 15

Expert Comment

by:eemit
ID: 39939536
Are files home.php and index.php available in child theme's directory?
0
 

Author Comment

by:leachj
ID: 39939597
I created the new-sidebar-page.php file as per instructions and made changes to the style.css.
All looks well except for the blog page which has the right widths but does not display the sidebar.
Page with right sidebar is assigned to blog page
There is home-page.php and index.php in child theme's directory.
0
 
LVL 15

Expert Comment

by:eemit
ID: 39939637
OK, WordPress Ignores Page Template in this case. Can you post content of these two files here?
0
 
LVL 15

Expert Comment

by:eemit
ID: 39939702
Other thing.
I think that the author of your Child Theme have wanted sidebar within #wrapper div tag. You can try that too. First, in a template e.g. in single.php. In this case also css must be adapted.
0
 

Author Comment

by:leachj
ID: 39939729
I placed this in the footer.php to display which templat the pages use.  It shows the blog page useing page.php

<?php echo wp_basename( get_page_template() ); ?>
0
 

Author Comment

by:leachj
ID: 39939734
home-page.php ......
<?php
/**
 * Template Name: Home Page
 *
 */

wp_enqueue_script('jquery');

get_header(); ?>

<script type="text/javascript">

jQuery('body').removeClass('singular');

</script>

		<div id="primary">
			<div id="content" class="myhome" role="main">

				<div id="slider"><?php if (function_exists("easing_slider")){ easing_slider(); }; ?></div>
                <div id="home-content">
                	<h1 class="entry-title"></h1>
                    <?php the_post(); the_content(); ?>
                </div>
                <div id="bottom-box">
                	<div id="box-1">                    	
                        <?php dynamic_sidebar( 'box-1' ); ?>
                    </div>
                    <div id="box-2">
                    	<?php dynamic_sidebar( 'box-2' ); ?>
                    </div>
                    <div id="box-3">
                    	<?php dynamic_sidebar( 'box-3' ); ?>
                    </div>
                </div>

			</div><!-- #content -->
		</div><!-- #primary -->

<?php get_footer(); ?>

Open in new window

0
 

Author Comment

by:leachj
ID: 39939737
index.php
<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 */

wp_enqueue_script('jquery');

get_header(); ?>

<script type="text/javascript">

jQuery('body').removeClass('singular');

</script>

		<div id="primary">
        
        	<div id="page-banner"><img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/page-banner.jpg"></div>
            
            	<div id="wrapper">
        
                    <div id="content" class="myhome" role="main">
        
                    <?php if ( have_posts() ) : ?>
        
                        <?php twentyeleven_content_nav( 'nav-above' ); ?>
        
                        <?php /* Start the Loop */ ?>
                        <?php while ( have_posts() ) : the_post(); ?>
        
                            <?php get_template_part( 'content', get_post_format() ); ?>
        
                        <?php endwhile; ?>
        
                        <?php twentyeleven_content_nav( 'nav-below' ); ?>
        
                    <?php else : ?>
        
                        <article id="post-0" class="post no-results not-found">
                            <header class="entry-header">
                                <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
                            </header><!-- .entry-header -->
        
                            <div class="entry-content">
                                <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
                                <?php get_search_form(); ?>
                            </div><!-- .entry-content -->
                        </article><!-- #post-0 -->
        
                    <?php endif; ?>
        
                    </div><!-- #content -->
                    
                </div><!-- #wrapper -->
            
		</div><!-- #primary -->
<?php // get_sidebar(); ?>
<?php get_footer(); ?>

Open in new window

<?php
/**
 * Template Name: Home Page
 *
 */

wp_enqueue_script('jquery');

get_header(); ?>

<script type="text/javascript">

jQuery('body').removeClass('singular');

</script>

		<div id="primary">
			<div id="content" class="myhome" role="main">

				<div id="slider"><?php if (function_exists("easing_slider")){ easing_slider(); }; ?></div>
                <div id="home-content">
                	<h1 class="entry-title"></h1>
                    <?php the_post(); the_content(); ?>
                </div>
                <div id="bottom-box">
                	<div id="box-1">                    	
                        <?php dynamic_sidebar( 'box-1' ); ?>
                    </div>
                    <div id="box-2">
                    	<?php dynamic_sidebar( 'box-2' ); ?>
                    </div>
                    <div id="box-3">
                    	<?php dynamic_sidebar( 'box-3' ); ?>
                    </div>
                </div>

			</div><!-- #content -->
		</div><!-- #primary -->

<?php get_footer(); ?>

Open in new window

<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 */

wp_enqueue_script('jquery');

get_header(); ?>

<script type="text/javascript">

jQuery('body').removeClass('singular');

</script>

		<div id="primary">
        
        	<div id="page-banner"><img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/page-banner.jpg"></div>
            
            	<div id="wrapper">
        
                    <div id="content" class="myhome" role="main">
        
                    <?php if ( have_posts() ) : ?>
        
                        <?php twentyeleven_content_nav( 'nav-above' ); ?>
        
                        <?php /* Start the Loop */ ?>
                        <?php while ( have_posts() ) : the_post(); ?>
        
                            <?php get_template_part( 'content', get_post_format() ); ?>
        
                        <?php endwhile; ?>
        
                        <?php twentyeleven_content_nav( 'nav-below' ); ?>
        
                    <?php else : ?>
        
                        <article id="post-0" class="post no-results not-found">
                            <header class="entry-header">
                                <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
                            </header><!-- .entry-header -->
        
                            <div class="entry-content">
                                <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
                                <?php get_search_form(); ?>
                            </div><!-- .entry-content -->
                        </article><!-- #post-0 -->
        
                    <?php endif; ?>
        
                    </div><!-- #content -->
                    
                </div><!-- #wrapper -->
            
		</div><!-- #primary -->
<?php // get_sidebar(); ?>
<?php get_footer(); ?>

Open in new window

0
 

Author Comment

by:leachj
ID: 39939745
Not sure what happend here....  seems the previous code did not clear before I pasted.
0
 
LVL 15

Expert Comment

by:eemit
ID: 39939750
Change in Index.php:
<?php // get_sidebar(); ?>
To:
<?php get_sidebar(); ?>
0
 

Author Comment

by:leachj
ID: 39939766
Yep!  That did it.
0
 

Author Closing Comment

by:leachj
ID: 39939769
Thanks for all the hard work.  Much appreciated.
John
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Do you think that WordPress is just for blogs?  Think again!  WordPress is really a fantastic all around platform that you can use to develop websites on.  Integrated into its basic functionality is the ability to create pages using your choice of a…
This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

708 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

16 Experts available now in Live!

Get 1:1 Help Now