941-685-8851

Wordpress functions.php

March 16, 2010 by admin No Comments »

Here is the default Wordpress functions.php:

--------------------
<?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

$content_width = 450;

automatic_feed_links();

if ( function_exists('register_sidebar') ) {
 register_sidebar(array(
 'before_widget' => '<li id="%1$s">',
 'after_widget' => '</li>',
 'before_title' => '<h2>',
 'after_title' => '</h2>',
 ));
}

 ?>
----------------

Here is a customized functions.php:

----------------

<?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

$content_width = 650;

automatic_feed_links();

if ( function_exists('register_sidebar') ) {
 register_sidebar(array('name'=>right.'Right',
 'description'=>right.' The Right SideBar',
 'before_widget' => '<li id="%1$s">',
 'after_widget' => '</li>',
 'before_title' => '<h2>',
 'after_title' => '</h2>',
 ));
if ( function_exists('register_sidebar') ) {
 register_sidebar(array('name'=>left.'Left',
 'description'=>left.' The Left SideBar',
 'before_widget' => '<li id="%1$s">',
 'after_widget' => '</li>',
 'before_title' => '<h2>',
 'after_title' => '</h2>',
 ));
}

 ?>
------------------------
  • Share/Bookmark
 

Leave a Reply