Number "1" displaying after widget
-
[ Moderator note: moved to How-to and Troubleshooting. ]
Hi,
I installed Custom Sidebar plugin in order to add sidebar in the website. I added a sidebar titled as Header Image whose id was “cs-1”. Then inserted a text block in that widget and used following code in my header file:
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
<?php if ( is_active_sidebar( 'cs-1' )) :?> <a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" class="custom-header"><?php echo dynamic_sidebar ('cs-1')?></a> <?php endif; ?> The Output of this code is given below: <a href="my site url" title="Website" rel="home"><div> <div class="textwidget"><img src="Image url" alt=""></div> </div>1</a>
You see that just before closing of anchor i have 1 being displayed. I am not able to figure why is this displaying? Please help i have been checking in all the files. Has anyone faced this issue before?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Number "1" displaying after widget’ is closed to new replies.