RSS Feed Button Does Not Show Up
-
Hello there,
I need help about custom buttons. I want to add RSS feed button below my posts.
No matter what I try I cannot make my RSS.png image appear on page. When I refresh the page just an empty space shows up then immediately disappears. This is the code i am using for my single.php file.
I placed the image inside the image folder that i created which is located in the child theme folder. I also tried adding long http address to the code but does not work.
<div id="primary" class="site-content"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <a href="<?php bloginfo('rss2_url'); ?>" title=""><img src="<?php bloginfo('template_directory'); ?>/images/rss.png" width="32" height="32" alt="" /></a> <!-- <nav class="nav-single"> <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> <span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></span> <span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></span> </nav>.nav-single --> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content --> </div><!-- #primary -->
Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘RSS Feed Button Does Not Show Up’ is closed to new replies.