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 » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] Add footer item only to landing page.


  #1  
Old Jan 8, 2010, 10:58 PM
Velma
 
272 posts · Feb 2009
I want to add a video to the bottom of only the Front Page (I have a static landing page). I can't see how to do that.

I did find this thread...

http://forum.bytesforall.com/showthr...ter+front+page

and thought I may be able to use it, but wasn't able to figure out how to use that with an embedded video from youtube.

Any ideas?

Velma
  #2  
Old Jan 9, 2010, 06:32 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Try this add the code to ATO->Style & edit CENTER COLUMN->Content BELOW the LOOP and surround it with
<?php if (is_front_page() ) { ...your code goes here... } ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 9, 2010, 04:40 PM
Velma
 
272 posts · Feb 2009
That's what I tried. This is the error that shows up on the Front Page after I save the code.

Parse error: syntax error, unexpected '<' in /home/pdrags/public_html/strategicsense.ca/wp-content/themes/atahualpa/functions.php(478) : eval()'d code on line 1

It's youtube code I was putting in there.
  #4  
Old Jan 9, 2010, 06:26 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
please cut and paste, exactly what you have in 'Below the LOOP', in a reply and befory you paste it, hit the little 'html' button so it will be surrounded by [ HTML ] [ /HTML ] so I can take a look
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jan 9, 2010, 07:11 PM
Velma
 
272 posts · Feb 2009
This is what I was putting in there. The first section is for the video. The rest is what's standard in there with the Theme.


HTML Code:
<?php if (is_front_page() ) { <object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/fgZwnDlM_ks&hl=en_US&fs=1&rel=0&color1=0xe1600f&color2=0xfebd01"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/fgZwnDlM_ks&hl=en_US&fs=1&rel=0&color1=0xe1600f&color2=0xfebd01" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object> } ?>  

<?php /* Displayed on SINGLE post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_post_links('Middle'); ?>

<?php /* Load Comments template (on single post pages, and static pages, if set on options page): */
bfa_get_comments(); ?>

<?php /* Displayed on SINGLE post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_post_links('Bottom'); ?>
		
<?php /* Archives Pages. Displayed on a specific static page, if configured at ATO -> Archives Pages: */
bfa_archives_page('<div class="archives-page">','</div>'); ?>
			
<?php /* Displayed on MULTI post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_page_links('Bottom'); ?>
  #6  
Old Jan 9, 2010, 07:28 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Change the first part to this
HTML Code:
<?php if (is_front_page() ) { ?>
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/fgZwnDlM_ks&hl=en_US&fs=1&rel=0&color1=0xe1600f&color2=0xfebd01"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/fgZwnDlM_ks&hl=en_US&fs=1&rel=0&color1=0xe1600f&color2=0xfebd01" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>  <?php } ?>
Because you are mixing PHP and HTML you have to close the PHP before adding the HTML, then open the PHP for the end part.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jan 9, 2010, 08:27 PM
Velma
 
272 posts · Feb 2009
OK! So what if I wanted to put something different on another page...say like a testimonial or something. How do I identify the other page? By the page number?

How would I phrase the if statement?
  #8  
Old Jan 10, 2010, 04:43 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
check out http://codex.wordpress.org/Conditional_Tags to see all teh conditional tags and their structure
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Jan 10, 2010, 08:56 AM
Velma
 
272 posts · Feb 2009
Perfect. Thanks.

I'm glad I found this place, and donated (and will add more later). I've learned a TON here already...both from asking and just reading.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to reset Footer Setting under Post Info Item Royston Post-Kicker, -Byline & -Footer 3 Dec 23, 2009 08:06 AM
[SOLVED] Footer: How to add line break in footer text StudioGal Post-Kicker, -Byline & -Footer 2 Oct 9, 2009 06:41 AM
How to use Landing Page & Blog Together and Problem with "Landing Sites Plugin" SCLove Plugins & Atahualpa 1 Aug 21, 2009 04:37 AM
How do I add a NEW css item? Tarzanna77 Atahualpa 3 Wordpress theme 1 Jun 2, 2009 03:47 AM
Add New Item to RSS / Email / Comments in header kesterbrewin RSS, Feeds & Subscribing 2 May 6, 2009 09:14 AM


All times are GMT -6. The time now is 04:55 AM.


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