Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

how to insert php code into widget or sidebar


  #1  
Old Apr 6, 2010, 12:37 AM
Stingraynut
 
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
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,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.

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 04:28 AM.


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