jasoncigar Posted May 21, 2005 Share Posted May 21, 2005 Hi I would like to have an image show up on the front page only. I hardcoded an image on the front page but it seems to show up on EVERY OTHER page. Any way to do this? Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2005 Share Posted May 21, 2005 All of the "other" index.php pages besides the front page will have a ?cPath= in the URL. You could do something like: (!isset($HTTP_GET_VARS['cPath'])) { echo 'display the image' } or, depending on where/how you're inserting the image, [bunch of html code] <?php (!isset($HTTP_GET_VARS['cPath'])) { ?> [your html where you display the image] <?php } ?> [next bunch of HTML code] Try that. -jared Link to comment Share on other sites More sharing options...
jasoncigar Posted May 21, 2005 Author Share Posted May 21, 2005 ok... heres an odd one then. My stores' back pages do not have cPath in the URL ?? I do believe Ive seen others that dont as well. Is there a front page variable? All of the "other" index.php pages besides the front page will have a ?cPath= in the URL. You could do something like: (!isset($HTTP_GET_VARS['cPath'])) { echo 'display the image' } or, depending on where/how you're inserting the image, [bunch of html code] <?php (!isset($HTTP_GET_VARS['cPath'])) { ?> [your html where you display the image] <?php } ?> [next bunch of HTML code] Try that. -jared <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2005 Share Posted May 21, 2005 What is the URL to your store? Perhaps I'm misunderstanding. What is a URL where you'd like the image to show up? What is a URL where you'd like the image to NOT show up? -jared Link to comment Share on other sites More sharing options...
jasoncigar Posted May 21, 2005 Author Share Posted May 21, 2005 What is the URL to your store? Perhaps I'm misunderstanding. What is a URL where you'd like the image to show up? What is a URL where you'd like the image to NOT show up? -jared <{POST_SNAPBACK}> BTW< I am using STS to create this store. I would like the image to show up on the main page: http://www.visceralclothing.com/catalog/ and, for example, to not show up on a product page: http://www.visceralclothing.com/catalog/pr...p?products_id=3 Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2005 Share Posted May 21, 2005 BTW< I am using STS to create this store. I would like the image to show up on the main page: http://www.visceralclothing.com/catalog/ and, for example, to not show up on a product page: http://www.visceralclothing.com/catalog/pr...p?products_id=3 <{POST_SNAPBACK}> Peace and Good Day everyone :D Appreciate all the help I can get. Using Fantastico to build my store. My Webpage How can I add an image under the "Welcome please log in or create account" And how can I remove all the text under it? "This is a default..........." I would like the Boxes "What's new in May" to appear under this image. I have gone to [path catalog/includes/languages/english/index.php] to edit. The result always shows this: Parse Error. Unexpected T-String... blah blah blah Would appreciate a Step by Step guide. I have been trying all sorts ending with having to Uninstall and then to Re Install up to a dozen times, being a newbie but I believe I was doing the wrong things. please help Thanks in advance Link to comment Share on other sites More sharing options...
jasoncigar Posted May 21, 2005 Author Share Posted May 21, 2005 I figured t out... silly me. it was late anyhow. I just put the front page feature in the modues/new_products.php file (since I removed everything else that used to show up on the front page only) Link to comment Share on other sites More sharing options...
Guest Posted May 21, 2005 Share Posted May 21, 2005 I figured t out...silly me. it was late anyhow. I just put the front page feature in the modues/new_products.php file (since I removed everything else that used to show up on the front page only) <{POST_SNAPBACK}> Someone help me, help me pleaszzzze :'( Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.