You are here:  » text on the first page not to repeated on subsequent pages

Support Forum



text on the first page not to repeated on subsequent pages

Submitted by Paul1107 on Thu, 2009-09-24 15:54 in

Hi David,

Sorry to trouble you with this as I know you've answered this before, but I just can't lay my hands on the post

I'm look for a way to add text to the page fro SEO purposes before using the calling code to generate the product page, but don't wan the text to appear in subsequent pages, can you help me out?

Regards

Paul

Submitted by support on Thu, 2009-09-24 16:29

Hi Paul,

It would involve inspecting the $_GET["page"] variable immediately prior to the calling code, and only displaying your content if it is less than 2; for example:

<?php
  
if ($_GET["page"] < 2)
  {
    print 
"<p>Add text for page 1 only here...</p>";
  }
?>

Cheers,
David.

Submitted by Paul1107 on Sun, 2009-09-27 11:25

Hi David,

Thanks again for the help, works a treat

Regards

Paul