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(); ?> |
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>'; |
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 |
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 10:10 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.