Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

how to insert php code into widget or sidebar


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Apr 6, 2010, 12:37 AM
Stingraynut
 
24 posts · Apr 2010
Cairns Australia
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

Last edited by Stingraynut; Apr 6, 2010 at 01:43 AM.
  #2  
Old Apr 6, 2010, 08:25 PM
lmilesw's Avatar
lmilesw
 
10,099 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.

Bookmarks

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 10:11 PM.


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