Adding Images in Sidebar
I am brand new to WordPress. I like the Twenty Eleven theme provided by my web host. However, I am an author, and my plan was to have small images of each of my books in the sidebar to the right of the main body of each page, where the widgets are. The intention was that visitors would be able to click on these images to be taken to a page within the blog with more information on the book.
However, I cannot find any way to do this. Is it possible?
I have this same problem. did anyone answer this question?
I would like to put images in the sidebar, making them linked to a page would be good also.
i too am painfully new at this.
Try installing the Exec-php plugin and then adding this code in one of the widgets.
<?php if(is_single()) : ?> <?php $meta_values = get_post_meta($post_id, $book_excerpt, $single); ?> <?php echo $meta_values ?> <?php endif; ?>
Note: you need to also create a custom field called book_excerpt in the post editor and enter some text in that field.
If you are using a image then enter the image url in the custom field and then use php to echo it in a <img> tag.
Hello – there’s a bunch of ways to do this – for the 2011 theme, you’ll need to access your widgets area and place the image in a sidebar widget.
I’d suggest installing the plugin Jetpack. It will give you lots of nice functionality, including an image widget which will make managing things pretty easy.
Here’s a link to Jetpack : http://jetpack.me/support/extra-sidebar-widgets/
there is a plugin called ” wordpress ad widget ” – updated today, with high rating, and youtube demo, which looks very promissing for waht you want to do.
I have not tried it, because my sidebar got lost when upgrading to WP 3.5.1.
Good luck with the plugin
- The topic ‘Adding Images in Sidebar’ is closed to new replies.