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'); ?> 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 |
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 09:17 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.