customize sidebar
-
I’m using a theme I found a few weeks ago online that is not listed on wp.org and everything is perfect other than the sidebar so I don’t want to change themes. The problem is that half the sidebar is great – contains three big links which is exactly what I need. However the latter part of the sidebar is one that only displays info upon clicking (i.e. there is a news link and only if clicked does the news info show). I want my sidebar (below the big links) to look exactly like the default sidebar. I’ve tried doing some basic copying and pasting but I don’t know exactly what files I need transferred over from the Default theme in order for this to function properly; I’m receiving an ERROR message using Firefox regarding a elements without a title (#sidebar-navigation a).
This is the site:
https://www.voicesforacure.orgThis is the css I want to get rid of, but whenever I do I receive an error:
<div id=”sidebar-navigation”>
</div>
<div id=”sidebar-events” class=”hiddencontent dark-gray”>
<?php get_upcoming_events(); ?>
</div>
<div id=”sidebar-news” class=”hiddencontent”>
<ul class=”small”>
<?php
$sidebar_news_query = new WP_Query(“cat=$sero_news_id&showposts=$sero_news_limit”);
$wp_query->in_the_loop = true;
$i = 1;
while ($sidebar_news_query->have_posts()) : $sidebar_news_query->the_post();
if($i == 1){
$class = “start-list”;
}
else{
$class = “mid-list”;
}
?>
<li id=”post-list-<?php the_ID(); ?>” class=”post-list <?php echo $class; ?>”>
<span class=”light-gray”><?php the_time(‘F j, Y’) ?></span>
” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?><?php
$i++;
?>
<?php endwhile; ?>
<li class=”end-list”></div>
<?php
if($sero_widgets_tab_enabled == “yes”){
echo “<div id=\”sidebar-widgets\” class=\”hiddencontent dark-gray\”>- “;
if (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(“Sero Sidebar”)){
}
else{
}
echo “</div>”;
}
?>
</div>Please help!
- The topic ‘customize sidebar’ is closed to new replies.