Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   how to insert php code into widget or sidebar (http://forum.bytesforall.com/showthread.php?t=6618)

Stingraynut Apr 6, 2010 12:37 AM

how to insert php code into widget or sidebar
 
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
Code:

<?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

lmilesw Apr 6, 2010 08:25 PM

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.


All times are GMT -6. The time now is 10:40 AM.

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