Problems making addition to sidebar.php
-
I am attempting to add the WeatherIcon 2.0 plug-in but it is not showing up on the live site. Instructions were followed and new files (plug-in, Weather directory, sidebar.php, and style.css. My theme is an adaptation of the HeadSpace theme.
Here is what I have in sidebar:
<div id=”sidebar”>- <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
- <h2><?php _e(‘Author’); ?></h2>
A little something about you, the author. Nothing lengthy, just an overview. -
<?php if (function_exists(‘WeatherIcon’)) : ?>
<li class=”weather”>San Francisco
<!– Author information is disabled per default. Uncomment and fill in your details if you want to use it.
–>
- <?php WeatherIcon(‘K51Q’); ?>
<?php endif; ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
You are currently browsing the archives for the <?php single_cat_title(”); ?> category.<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives
for the day <?php the_time(‘l, F jS, Y’); ?>.<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives
for <?php the_time(‘F, Y’); ?>.<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives
for the year <?php the_time(‘Y’); ?>.<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
You have searched the “><?php echo bloginfo(‘name’); ?> weblog archives
for ‘<?php echo wp_specialchars($s); ?>’. If you are unable to find anything in these search results, you can try one of these links.<?php /* If this is a monthly archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives.<?php } ?>
<?php wp_list_pages(‘title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>
- <h2><?php _e(‘Archives’); ?></h2>
-
<?php wp_get_archives(‘type=monthly’); ?>
- <h2><?php _e(‘Categories’); ?></h2>
-
<?php list_cats(0, ”, ‘name’, ‘asc’, ”, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”) ?>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php get_links_list(); ?>- <h2><?php _e(‘Meta’); ?></h2>
-
<?php wp_register(); ?>
- <?php wp_loginout(); ?>
- “><?php _e(‘Valid XHTML’); ?>
- XFN
- “>WordPress
<?php wp_meta(); ?>
<?php } ?>
</div>
The topic ‘Problems making addition to sidebar.php’ is closed to new replies.