There are 4 thin widget areas in the footer. How can i change this to just 2 wide widget areas?
Make footer widget areas bigger
7 posts from 2 voices-
Posted 1 year ago #
-
Hey,
in your footer.php delete two of these:
<div class='box box_mini'> <h4>Archive</h4> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </div>They don't look exactly the same but just make sure you delete from <div ... > to </div> .. if this makes any sense.
and in your style.css change the width of this element to make your 2 "big" widgets wider:
.wrapper .box_miniPosted 1 year ago # -
I can see the css put i don't see any code like this in footer.php. In fact there isn't a single <div> in footer.php?
Posted 1 year ago # -
Your footer.php file should look something like this
<?php global $k_option; ?> </div><!-- end #top --> </div><!-- end #wrapper --> <div class='wrapper' id='footerwrap'> <div id='footer'> <div class='footer_widgets'> <?php ########################################################################################################### # if footer widgets are applied to "footer widget area" display them, else show predefined lists ########################################################################################################### if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Area')) : else : $exclude = ''; if($k_option['blog']['blog_widget_exclude'] == 1) { $exclude = '&exclude='.$k_option['blog']['blog_cat_final']; } ?> <div class='box box_mini'> <h4>Pages</h4> <ul> <?php wp_list_pages('title_li=' ); ?> </ul> </div> <div class='box box_mini'> <h4>Blogroll</h4> <ul> <?php wp_list_bookmarks('title_li=&categorize=0'); ?> </ul> </div> <?php endif; ?> </div> <div class="box box_custom_footer"> <?php ############################################################################################ # FOOTER RIGHT BLOCK DEFINITIONS WITH FALLBACK MESSAGES IF NO DATABASE ENTRIES ARE FOUND ############################################################################################ if($k_option['footer']['button_link'] != '') $k_option['footer']['button_link'] = get_page_link($k_option['footer']['button_link']); ?> <!-- big button --> <a href='<?php echo $k_option['footer']['button_link'] ?>' class='custom_button ie6fix rounded'> <strong><?php echo $k_option['footer']['button1']; ?></strong> <span><?php echo $k_option['footer']['button2']; ?></span> </a> <div id='sitesearch_footer'> <h4>Search Site</h4> <?php get_search_form(); ?> </div> <!-- copyright text --> <p><?php echo $k_option['footer']['copyright']; ?></p> <!-- social bookmarks --> <ul class="social_bookmarks"> <li class='rss'><a class='ie6fix' href="<?php bloginfo('rss2_url'); ?>">RSS</a></li> <?php if($k_option['footer']['acc_fb'] != '') echo "<li class='facebook'><a class='ie6fix' href='http://facebook.com/".$k_option['footer']['acc_fb']."'>Facebook</a></li>"; if($k_option['footer']['acc_tw'] != '') echo "<li class='twitter'><a class='ie6fix' href='http://www.twitter.com/".$k_option['footer']['acc_tw']."'>Twitter</a></li>"; if($k_option['footer']['acc_fl'] != '') echo "<li class='flickr'><a class='ie6fix' href='http://www.flickr.com/people/".$k_option['footer']['acc_fl']."'>flickr</a></li>"; ?> </ul> </div> </div><!--end footer--> </div> <?php wp_footer(); if($k_option['general']['analytics']) echo $k_option['general']['analytics']; ?> </body> </html>Posted 1 year ago # -
This is the entire contents of the footer.php in the display theme:
<?php
$pageinfo = array('full_name' => 'Footer Options', 'optionname'=>'footer', 'child'=>true, 'filename' => basename(__FILE__));$options = array (
array( "type" => "open"),
array( "type" => "group"),
array( "name" => "Contact Button Line 1",
"desc" => "Enter the first line of text to display within your contact button.",
"id" => "button1",
"std" => "Contact Form",
"size" => 20,
"type" => "text"),array( "name" => "Contact Button Line 2",
"desc" => "Enter the second line of text to display within your contact button.",
"id" => "button2",
"std" => "get in touch with us",
"size" => 20,
"type" => "text"),array( "name" => "Button Link",
"desc" => "Select the Page the button should link to",
"id" => "button_link",
"type" => "dropdown",
"subtype" => "page"),array( "type" => "group"),
array( "name" => "Copyright Text",
"desc" => "Enter your copyright text here",
"id" => "copyright",
"std" => "This site uses valid HTML and CSS. All content Copyright © 2010 DISPLAY, Inc",
"size" => 75,
"type" => "text"),array( "type" => "group"),
array( "name" => "Facebook Account",
"desc" => "Enter the name of your facebook account to create a small icon link within your footer",
"id" => "acc_fb",
"std" => "",
"size" => 20,
"type" => "text"),array( "name" => "Flickr Account",
"desc" => "Enter the name of your flickr account to create a small icon link within your footer (looks something like this: 34166943@N05 )",
"id" => "acc_fl",
"std" => "",
"size" => 20,
"type" => "text"),array( "name" => "Twitter Account",
"desc" => "Enter the name of your twitter account to create a small icon link within your footer",
"id" => "acc_tw",
"std" => "",
"size" => 20,
"type" => "text"),array( "type" => "group"),
array( "type" => "close")
);
$options_page = new kriesi_option_pages($options, $pageinfo);
Posted 1 year ago # -
Gosh, I've been looking in Wordpress using appearance ~ editor and the footer.php displays as I mentioned above but when I look at the footer in CPanel is displays as you said. I'm completely confused as to how footer.php can be different between these two interfaces but nevertheless I have it working now. Thanks very much!
K
Posted 1 year ago # -
Glad I could help :)
Posted 1 year ago #
Reply
You must log in to post.














