Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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, 11: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, 07:32 AM
juggledad's Avatar
juggledad
 
23,682 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, 05: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, 07:26 PM
juggledad's Avatar
juggledad
 
23,682 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, 08: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, 08:28 PM
juggledad's Avatar
juggledad
 
23,682 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, 09: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, 05:43 AM
juggledad's Avatar
juggledad
 
23,682 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, 09: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 09:06 AM
[SOLVED] Footer: How to add line break in footer text StudioGal Post-Kicker, -Byline & -Footer 2 Oct 9, 2009 07:41 AM
How to use Landing Page & Blog Together and Problem with "Landing Sites Plugin" SCLove Plugins & Atahualpa 1 Aug 21, 2009 05:37 AM
How do I add a NEW css item? Tarzanna77 Atahualpa 3 Wordpress theme 1 Jun 2, 2009 04:47 AM
Add New Item to RSS / Email / Comments in header kesterbrewin RSS, Feeds & Subscribing 2 May 6, 2009 10:14 AM


All times are GMT -6. The time now is 10:46 PM.


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