Sidebar function only display text but not html
-
I wanted to add a sidebar on my header in order to serve a header ad. I’ve opened up my functions.php and added the sidebar.
if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Header Spot', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h2>', 'after_title' => '</h2>', ));This code is being used by the theme that I purchased to add additional sidebars.
I then edited my header.php and added the function call like this
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Header Spot') ) : ?> <?php endif; ?>When I test it using the text widget I can see text, however when I try to add an img tag nothing displays.
Am I missing something? Do i need to configure something else?
Thanks for any help
-
What image markup did you use? Did you use the full (rather than relative) url for the image?
I was going to ask esmi’s question? What does your img tag look like? There really should be no problem using a text-widget for images.
I used an absolute path to make sure it would display but I however just realized that when I viewed my source that the image was there but not being displayed why this is happening I have no idea so if anybody knows that would be great
Put the image markup back and then post a url to a page containing the widget.
Here is the page http://ismio.com/prod/ search for <!– LOGO END –> below this tag is where the widget is pulling in the image tag viewed in the source but when viewing in the browser you will see no image is being displayed in top of the page header
I see an image at the top of the page. Its the ismio.com logo. What browser are you using? Maybe try clearing your cache, also.
Try it now I had removed the img tag now you can see it right below the logo
Ok guys thanks for the help but it was overflow style that was killing the image. Thank you for your help
~O~
The topic ‘Sidebar function only display text but not html’ is closed to new replies.