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 » Plugins & Atahualpa »

Trying to insert 'dynamic headers' into horbar2


  #1  
Old May 30, 2009, 02:41 AM
fruitbat
 
2 posts · May 2009
Trying to insert 'dynamic headers' into horbar2

Hello Flynn,

Thank you so much for your theme, it's a lot more powerful than I'd ever imagined and much better than the others I looked at I'm using it as a CMS. Usually use Joomla but that's so heavy!

This is my test site:
http://www.jobigger.co.uk/wordpress/

I'm trying to insert the code from a plugin called 'dynamic headers' (DH) into horbar2 so that I can define the image displayed on each page in the blue horizontal bar without coding it in to individual pages which would make it tricky for my client to manage. I've tested the DH snippet in header.php (and it works) and may well use it there in a table or somehting and deactivate horbar2 if all else fails but I'd rather have it in bfa_header_config.php in horbar2 if that were at all possible.

This is the DN snippet:
<?php show_media_header(); ?>

I do appreciate that I haven't made a contribution yet and the reaosn is that I don't have any money, I'm trying to build up a web design business and my hubbie is out of work.. bla... bla... bla... everybody's like this at the moment! I'm getting paid once this site is finished and can make one then

I've been trying not to ask you anything, search the forums and things but this has gotten me, most probably because I'm not a proper developer - more of a look it up as I go along and hope for the best sort of designer!!

If you can help I'd appreciate it.

Many thanks

Jo
  #2  
Old May 30, 2009, 10:32 AM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Take a look at http://forum.bytesforall.com/showthr...hlight=horbar1 .
  #3  
Old Jun 3, 2009, 02:20 AM
fruitbat
 
2 posts · May 2009
Thank you
  #4  
Old Jun 4, 2009, 08:04 AM
eyup
 
34 posts · Mar 2009
Did you manage to get Dynamic Headers working?

I tried adding in: functions/bfa_header_config.php

Code:
if (strpos($header_items,'%bar1')!==false) {
	// Horizontal bar 1
	$horizontal_bar1 = '<div class="horbar1">' . <?php show_media_header(); ?> . '</div>';
	// END of Horizontal bar 1
But get:

Parse error: syntax error, unexpected '<'

?

Last edited by eyup; Jun 4, 2009 at 09:56 AM.
  #5  
Old Jun 4, 2009, 09:35 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
where did you put this code?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Jun 4, 2009, 09:57 AM
eyup
 
34 posts · Mar 2009
functions/bfa_header_config.php

(using latest version 3.3.3)

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cache and rotating images headers! Ponics Header configuration & styling 8 Dec 31, 2010 02:30 AM
Warning: Cannot modify header information - headers already sent by ... bruno-d-horse New Versions, & Updating 5 Mar 31, 2010 02:29 AM
Set different headers for each page curious Header configuration & styling 17 Jun 19, 2009 04:53 PM
Sticky Headers + Sidebar justjoolz Atahualpa 3 Wordpress theme 1 Apr 7, 2009 05:57 AM
Page Menu button images w/dynamic resize kritho Page & Category Menu Bars 1 Feb 18, 2009 05:06 PM


All times are GMT -6. The time now is 06:21 AM.


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