Jump to content
Sign in to follow this  
Keith Vaugh

Footer - change the number of columns

Recommended Posts

Keith Vaugh

Is it possible to change the number of columns in the footer from 5 to 4? Thanks

Share this post


Link to post
Share on other sites
cmunns

Create a file in your Base theme called template.footcols.php THen paste this in there `

<?php if (!dynamic_sidebar($this->name) ) : ?>
<?php if(pagelines_option('footer_logo') && VPRO):?> <?php bloginfo('name');?> <?php else:?>

<?php bloginfo('name');?>

<?php endif;?>

<?php _e('Pages','pagelines');?>

<?php wp_nav_menu( array('menu_class' => 'footer-links list-links', 'theme_location'=>'footer_nav', 'depth' => 1) ); ?>

<?php _e('The Latest','pagelines');?>

  • <?php foreach(get_posts('numberposts=1&offset=0') as $key => $post): setup_postdata($post);?>
  • <?php echo $post->post_title; ?>
    <?php echo ( !is_404() ) ? custom_trim_excerpt(get_the_excerpt(), 12) : ''; ?>
    <?php endforeach;?>
<?php print_pagelines_option('footer_terms');?>
<?php endif; ?>
`

Share this post


Link to post
Share on other sites
Keith Vaugh

Thanks Adam, Much appreciate the assistance.

Share this post


Link to post
Share on other sites
nudolio

I needed to do this too.. does this override the 5 col widget? - cause i dropped this code into base as template.footcols.php and still get 5 columns on my site. do i need to write some css for this puppy?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×