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 » Header configuration & styling »

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


  #1  
Old May 20, 2010, 04:33 PM
schabadoo
 
2 posts · May 2010
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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>';
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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>';
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

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 04:09 AM.


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