Title: Widgets on pages question
Last modified: August 19, 2016

---

# Widgets on pages question

 *  [bdsr](https://wordpress.org/support/users/bdsr/)
 * (@bdsr)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/)
 * Hi,
 * I am very excited to have found Todd Halfpenny’s code for widgets on pages. I
   found I could get it to work on the Twenty Ten theme but when I tried to use 
   it on my own very basic theme I could only get it to work on the sidebar.
 * Can anyone advise me please what I am missing: I am getting text appearing instead
   of the widget e.g. when I try to insert a calendar in the main part of my page
   using Todd’s code, all I get is ” [widgets_on_pages id=”Calendar”]” appearing
   on the page. As I said it works beautifully in Twenty Ten and as I am pretty 
   new to WordPress I expect there is something basic I am missing.
 * Can anyone suggest what it might be?
    Thanks

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [toddhalfpenny](https://wordpress.org/support/users/toddhalfpenny/)
 * (@toddhalfpenny)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863541)
 * Hey bdsr,
 * This seems strange… could you check that there are no `<pre>` tags around the
   outputed text (use view source in the browser)?
 *  Thread Starter [bdsr](https://wordpress.org/support/users/bdsr/)
 * (@bdsr)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863548)
 * Hi Todd,
 * Yes, when I check the source code in the browser it shows ‘p’ tags. But how do
   I remove them please?
 * Thank you
 * Brenda
 *  [toddhalfpenny](https://wordpress.org/support/users/toddhalfpenny/)
 * (@toddhalfpenny)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863553)
 * This would have happened because of the copy and paste… delete it and then use
   the ‘paste as plain text’ or just type the shortcode by hand.
 * Oh, and if you like the widget then it would be great if you could rate it also.
 *  Thread Starter [bdsr](https://wordpress.org/support/users/bdsr/)
 * (@bdsr)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863595)
 * Thanks Todd. I will go in and rate the widget as well.
 * Cheers
 * Brenda
 *  [toddhalfpenny](https://wordpress.org/support/users/toddhalfpenny/)
 * (@toddhalfpenny)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863601)
 * That would be super great bdsr, thanks!
 *  Thread Starter [bdsr](https://wordpress.org/support/users/bdsr/)
 * (@bdsr)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863602)
 * Todd,
 * I went looking for how to rate it but couldn’t find it. What do I do?
 * Also, can I bother you with another widget question please? Once I have a text
   widget working I thought I could add code to create an effect that I want. I 
   have tried adding the following to a text widget:
 * <img src=””wp-content/themes/Brendas template/images/logosml.jpg”/>
    but absolutely
   nothing is showing up. The specified image is definitely in the images folder–
   I have checked.
 * Any advice you could give would be much appreciated. Now I have discovered widgets
   I would like to use them extensively if I can control what they do and how they
   look!
 * Thanks again.
 * Brenda
 *  Thread Starter [bdsr](https://wordpress.org/support/users/bdsr/)
 * (@bdsr)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863603)
 * Todd,
 * I have worked out what I was doing wrong and now have the image showing up. However
   I want to do a rollover on the image and have included the following in the widget
   code:
 * <img src=”wp-content/themes/twentyten child/images/logosml.jpg” id=”btn1″
 *  onMouseOver=”document.getElementById(‘btn1′).src = “wp-content/themes/twentyten
   child/images/button_red.gif’;”
    onMouseOut=”document.getElementById(‘btn1′).src
   = “wp-content/themes/twentyten child/images/logosml.jpg’;” />
 * But there is no action when I place my cursor on the original image. Should this
   sort of code work in a widget?
 * Thanks once again.
 *  [toddhalfpenny](https://wordpress.org/support/users/toddhalfpenny/)
 * (@toddhalfpenny)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863609)
 * Ah well done on fixing the initial image issue. I have to be honest and say I’ve
   not looked at things like this before, sorry. I don’t see why the code should
   not work since the JS is all client side. Do you have javascript enabled on your
   browser?
 * For the rating you can do this on [this](http://wordpress.org/extend/plugins/widgets-on-pages/)
   page by voting against the stars on the right.
 *  Thread Starter [bdsr](https://wordpress.org/support/users/bdsr/)
 * (@bdsr)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863610)
 * Hi Todd,
 * I have done the rating.
 * Yes I have javascript enabled some am baffled.
 *  [yieldhog](https://wordpress.org/support/users/yieldhog/)
 * (@yieldhog)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863639)
 * Hi Todd
 * I’d like very much to use widgets on pages, but it refuses to display the widget.
   I’m using WP 3.05 with an ithemes premium theme. Looking at the source code for
   this sample page, widgets on pages seems to be inserted, but it only contains
   a blank list
 * [http://www.yieldhog.com/2011/01/yellow-world/](http://www.yieldhog.com/2011/01/yellow-world/)
 * Any suggestions? Your help is greatly appreciated!
 *  [yieldhog](https://wordpress.org/support/users/yieldhog/)
 * (@yieldhog)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863640)
 * Hi Todd
 * Thanks, managed to fix the problem!
 * Cheers
 *  [toddhalfpenny](https://wordpress.org/support/users/toddhalfpenny/)
 * (@toddhalfpenny)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863641)
 * Hey Yieldhog, great news you sorted it… what was causing the widgets not to show?
   
   Todd
 *  [yieldhog](https://wordpress.org/support/users/yieldhog/)
 * (@yieldhog)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863648)
 * Hi Todd
 * Eh actually i didn’t fix it – i replaced it with another plugins that also allows
   inline widgets. It was driving me nuts after i spent almost a day trying to get
   it to work . . . i would guess its not my wordpress version (3.05) version that
   was blocking it, since bdsr above was using a late (3.04) version as well. Could
   well be my premium theme (iThemes’ Ionic child theme of Builder) that was blocking
   it).
 * But thanks for your help anyway!
 * Y.H.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Widgets on pages question’ is closed to new replies.

## Tags

 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * 13 replies
 * 3 participants
 * Last reply from: [yieldhog](https://wordpress.org/support/users/yieldhog/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/widgets-on-pages-question/#post-1863648)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
