Jump to content


Photo
- - - - -

Using boxes for widgets


  • Please log in to reply
2 replies to this topic

#1 buzzonabudget

buzzonabudget

    Newbie

  • Members
  • 1 posts
  • Framework Version:2.3.2

Posted 05 October 2012 - 07:37 PM

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?

#2 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 05 October 2012 - 10:08 PM

Hi there, take a look at the boxer plugin

Please Login or Register to see this Hidden Content

, 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.

#3 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 05 October 2012 - 10:16 PM

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.