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)
-   -   Can't figure out how to add code to display in <div class="opacityright"> (http://forum.bytesforall.com/showthread.php?t=7215)

schabadoo May 20, 2010 04:33 PM

Can't figure out how to add code to display in <div class="opacityright">
 
Hi,

I don't know php and I'm stuck.

I'm trying to add a random quote rotater to the header of the Atahualpa theme, but can't figure it out. This is what is currently there:

if ( $bfa_ata['header_opacity_right'] != 0 AND $bfa_ata['header_opacity_right'] != '' ) { $header_image .= '<div class="opacityright">

<p>Testing text goes here</p></div>';



I need to add the random quotes to the 'opacityright' div. This is the code:

<?php echo $quoteRotator->getQuoteCode(); ?>

juggledad May 21, 2010 03:41 AM

You could try
HTML Code:

if ( $bfa_ata['header_opacity_right'] != 0 AND $bfa_ata['header_opacity_right'] != '' ) { $header_image .= '<div class="opacityright"><p>' . echo $quoteRotator->getQuoteCode . '</p></div>';

schabadoo May 23, 2010 07:30 PM

Tried it, I get this:

Parse error: syntax error, unexpected T_ECHO in /home/balves/ehswire.com/wp-content/themes/atahualpa/functions/bfa_header_config.php on line 296

juggledad May 24, 2010 05:40 AM

well try getting rid of teh word 'echo' so you have
HTML Code:

if ( $bfa_ata['header_opacity_right'] != 0 AND $bfa_ata['header_opacity_right'] != '' ) { $header_image .= '<div class="opacityright"><p>' . $quoteRotator->getQuoteCode . '</p></div>';


All times are GMT -6. The time now is 02:51 AM.

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