Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Closed Thread
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 12-02-2011, 02:12 AM
Contributing Member
Latest Blog:
None

 
Join Date: 10-28-08
Posts: 66
iTrader: 7 / 100%
Help Needed to Set Text to Homepage Only

Hi All,

Does anyone know what the html code is to set some content to appear on the homepage only?

I have some text in the footer of my website but it's currently appearing sitewide.

I'd like it visible on the homepage only.

Any help would be greatly appreciated.

Cheers!
 
  #2 (permalink)  
Old 12-02-2011, 02:17 AM
HTMLBasicTutor's Avatar
Super Moderator
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 18,271
iTrader: 5 / 100%
What are you using to run the site?
__________________

HTML Basic Tutor - Learn how to code for better SEO
Basic Computer Information - Computer & internet basics for website owners

SEO troubleshooting and review services available. - Pm me.
 
  #3 (permalink)  
Old 12-02-2011, 02:21 AM
Contributing Member
Latest Blog:
None

 
Join Date: 10-28-08
Posts: 66
iTrader: 7 / 100%
Quote:
Originally Posted by HTMLBasicTutor View Post
What are you using to run the site?
Ohhh honestly I couldn't tell you. It's an affiliate based website that has a backend that allows you to add, edit and delete sections of the site.

I used the following -
Code:
<script type="text/javascript"> if(pb_action == "home"){ document.getElementById("homepageonly").style.display = ''; } </script>
This removed the text completely from the site i.e. -
Code:
<script type="text/javascript"> if(pb_action == "home"){ document.getElementById("homepageonly").style.display = ''; }<p><P ALIGN=Left>The sex toys featured on this store are of the highest quality and are shipped discretely to ensure your privacy is 100% guaranteed. You can <b>Pay with PayPal</b>, by phone, credit card, or mail and fax. All credit card payments are made through our secure online checkout system.<P ALIGN=Left></p></script>

Last edited by HTMLBasicTutor; 12-02-2011 at 02:27 AM.
 
  #4 (permalink)  
Old 12-02-2011, 02:18 PM
Rukbat's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 08-08-11
Location: Long Island, NY, USA
Posts: 287
iTrader: 0 / 0%
Evidently the site is including a footer file on every page. Find that on all pages except the home page and comment it out or delete it.
 
  #5 (permalink)  
Old 12-02-2011, 02:22 PM
Contributing Member
Latest Blog:
None

 
Join Date: 10-28-08
Posts: 66
iTrader: 7 / 100%
Quote:
Originally Posted by Rukbat View Post
Evidently the site is including a footer file on every page. Find that on all pages except the home page and comment it out or delete it.
Thanks for the response. The way the site is setup I had to create a custom homepage. It's fixed now.
 
Go Back   Webmaster Forum > Web Development > Coding Forum

Closed Thread

Tags
html code


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.gov.uk PR 6 - Homepage text link surat Want To Sell Links 0 07-08-2010 05:08 AM
[WTB] content for homepage needed Link_building_champ Content 0 02-10-2010 01:09 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:38 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.