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)
-   -   Flash in place of rotating images in header (http://forum.bytesforall.com/showthread.php?t=162)

frankrizzo5150 Feb 1, 2009 04:19 PM

Flash in place of rotating images in header
 
Has anyone done this? Is there a way of doing this without re inventing the wheel? :) Thanks in advance.

Brad

Flynn Feb 1, 2009 05:22 PM

The easiest way would be to include it either below or above the whole default header section that you can configure at Atahualpa Theme Options -> Header. To do that put the code required for the flash before or after

PHP Code:

<?php bfa_header_config($bfa_ata_configure_header); ?>

in header.php

endeavourz Feb 15, 2009 08:11 PM

This post was very helpful.

I want to use the image rotator on the inner pages but not on the home page. Do you know how I can keep %image from showing on my home page?

Flynn Feb 15, 2009 08:21 PM

Only on the homepage? To remove it altogether (from all pages) you can remove %image from A. Theme Options -> Header

To remove it just from the homepage would require hacking bfa_header_config.php, do you want to do that? You would have to re-apply the changes to each theme update that you install

endeavourz Feb 15, 2009 08:45 PM

Hi Flynn! Thanks for your reply.

Yes, I think I need to do this for this particular project. Can you instruct me? The page I am working on is here: http://endeavourz.net

Do you think this could be an option in future releases?

Flynn Feb 16, 2009 08:57 AM

To remove the header image(s) from only the homepage, change (should be) line 158 in functions/bfa_header_config.php from

PHP Code:

if (strpos($header_items,'%image')!==false) { 

to

PHP Code:

if (strpos($header_items,'%image')!==false AND !is_home()) { 

If you have a static page as the homepage (you don't appear to, but others might) use this instead
PHP Code:

if (strpos($header_items,'%image')!==false AND !is_front_page()) { 


endeavourz Feb 16, 2009 11:21 AM

Excellent fix Flynn! Thanks again. You made my day.

timsimpson Feb 21, 2009 12:04 PM

Flynn. Nice fix. Out of interest would I be able to remove the header image from other selected pages in a similar way? By listing page ID numbers or similar. Sorry if this is a dumb question, I'm afraid I'm a kind of brave idiot when it comes to php. Thanks, Tim


All times are GMT -6. The time now is 05:57 AM.

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