Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

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


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old May 20, 2010, 04:33 PM
schabadoo
 
2 posts · May 2010
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(); ?>
  #2  
Old May 21, 2010, 03:41 AM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
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>';
  #3  
Old May 23, 2010, 07:30 PM
schabadoo
 
2 posts · May 2010
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
  #4  
Old May 24, 2010, 05:40 AM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
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>';

Bookmarks

Tags
php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar does not display on "Home" only "About" ecarl97 Sidebars & Widgets 1 May 8, 2010 06:10 AM
[SOLVED] &quot;class&quot; appearing above header and navbar DesignFlute Header configuration & styling 6 May 7, 2010 12:50 PM
"RIGHT sidebar: Don't display on Pages" on children of specific parent Sprutt Sidebars & Widgets 1 Mar 23, 2010 03:12 PM
Need to call <li class= "current-cat-parent"> for single posts b1tzmast3r Page & Category Menu Bars 5 Jan 25, 2010 02:48 PM


All times are GMT -6. The time now is 12:11 AM.


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