Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

how to insert php code into widget or sidebar

Old Apr 6, 2010, 12:37 AM
24 posts · Apr 2010
Cairns Australia
I've followed the instructions here http://forum.bytesforall.com/showthr...header+section

and placed two widgets in the header. I want to run Featured Content Gallery in the right side widget.

I installed the 'Executable PHP widget' plugin and put that in the RH widget and pasted in the PHP code for the gallery
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
The gallery shows up black with a loading bar but won't progress to the slideshow.

If I paste the PHP code into Header.php the slideshow works fine but it is on the lefthand side.

I guess if I put it into a div and add a class for right align I could do it that way, but I would like to know if there is a better way ?

My test site is at http://test.robhealey.com.au

Last edited by Stingraynut; Apr 6, 2010 at 01:43 AM.
Old Apr 6, 2010, 08:25 PM
lmilesw's Avatar
10,176 posts · Jul 2009
Central New York State USA
Have you tried any other plugins such as the Linkable Title Html and Php Widget to see if it is widget related. Another I have used is the Advanced Text Widget but that is a bit older.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert php code into Byline JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 06:16 PM
[SOLVED] Where in Atahualpa is the code normally found in sidebar.php?? lhanft Sidebars & Widgets 2 Aug 9, 2009 05:10 PM
Which php file should I Edit to Insert Opt In form in SideBar for Atahualpa Theme? kacang Sidebars & Widgets 0 Aug 1, 2009 03:41 AM
[SOLVED] No sidebar.php...where do I put the code? d_random Atahualpa 3 Wordpress theme 0 Apr 3, 2009 12:42 PM
Location for php code for SOCIABLE widget? strangelove Post-Kicker, -Byline & -Footer 1 Feb 18, 2009 06:04 PM

All times are GMT -6. The time now is 11:48 PM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.