How can you turn off the >> (double arrow) in the default theme for just a specific list?
The objective is to have a page display an RSS listing as a list but without the double arrows. All other default formatting on a list for the main content is good.
Here's the code I've tried.
In the style sheet
.rss-listing ul li {
list-style: none;
}
and
.rss-listing ul {
list-style: none;
}
and
.rss-listing ul li:before {
list-style: none;
content: "";
}
In a separate template called rss-listing.php
<?php
/*
Template Name: rss-listing
Description: A template for scraping an rss feed.
*/
?>
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
some text
<?php require_once(ABSPATH . WPINC . '/rss-functions.php'); ?>
<?php $rss = fetch_rss('some-uri'); ?>
<ul class="rss-listing">
<?php foreach ( $rss->items as $item ) : ?>
<li><?php echo $item['image_link']; ?>
<a href='<?php echo $item['link']; ?>
title='<?php echo $item['title']; ?>'>
<?php echo $item['title']; ?>
</a>
<?php echo $item['description']; ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '', '
'); ?>
</div>
rss
<?php get_sidebar(); ?>
<?php get_footer(); ?>
I also tried adding the class to a span around the php, and numerous other changes to the CSS, including making the rss-listing an ID and others not already shown . The only thing that works to get rid of the double arrows is to remove any container with the "entry" class, but then all other formatting on the list is lost.
Any advice will be appreciated.