Archived

This topic is now archived and is closed to further replies.

  • 0

Using boxes for widgets

Question

Posted · Report post

I'm trying to design my site using the three boxes on the homepage for widgets - one for my blog's RSS feed, one for my Facebook like box, and one for my Twitter stream. I've managed to get the RSS and the Facebook widgets both working by posting the script half of the widget code in the header.php file just before the </header> tag, and the html half of the widget code as text in the corresponding box. I can't get this to work for the Twitter feed though. When I load the page the feed will be there for about a half a second and then will totally disappear.

Is there a way that, rather than fiddling with this code any longer, I could just place an actual widget in the area of the homepage where the boxes are currently?

Share this post


Link to post
Share on other sites

2 answers to this question

Posted · Report post

Hi there, take a look at the boxer plugin http://wordpress.org/extend/plugins/boxer/, it works along the same line as our boxes section but will allow you to place the boxes in additional sections via shortcodes and allow you enter additional content such as code. Have you tried looking into a twitter/facebook plugin you can activate via shortcodes? This would eradicate the need to use scripting/codes.

Share this post


Link to post
Share on other sites

Posted · Report post

First, you should never edit core files. On our next update your work will be wiped clean. If you have shortcodes for the widgets you wish to use, those may definitely be added to boxes. Widgets, like the ones found at Dashboard > Appearance > Widgets, cannot be added to boxes.

Editing the header.php is not only unsupported, but a good way to break your site.

Share this post


Link to post
Share on other sites