Forums / Templates, Stylesheets, Page Layout / I would like to edit the HTML on my home page.

I would like to edit the HTML on my home page.

Locked

Views: 1,745

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
30 Oct 2008, 5:30 AM
#1
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

I would like to edit the HTML on my home page.

The site on which I am currently working is https://www.plustoofashion.com. I am interested in modifying the home page content, but I am new to ZenCart and not sure how to go about doing this. In the main content page, I have a flash animation, and below it, a list of store items. Below this list, I'd like to add another element using HTML - Just a simple image link.

I see I can edit the HTML ABOVE the product listing by accessing a php include in the admin tool, but how do I add something below it?

Thanks!

30 Oct 2008, 5:33 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: I would like to edit the HTML on my home page.

The same way you added what is there...

admin > tools > define page editor > select from drop "main_page.php" > add you link/image

Zen-Venom Get Bitten

30 Oct 2008, 5:37 AM
#3
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Re: I would like to edit the HTML on my home page.

Hmm... I can't do it here. The last developer put the flash animation on this page. That shows. Adding to this page would stick the object between the flash and the products. I would like to place this item below the products.

Any other ideas?

30 Oct 2008, 5:53 AM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: I would like to edit the HTML on my home page.

bparker:

Hmm... I can't do it here. The last developer put the flash animation on this page. That shows. Adding to this page would stick the object between the flash and the products. I would like to place this item below the products.

Any other ideas?
Try previous thread at
http://www.zen-cart.com/forum/showthread.php?t=68575&highlight=move+center

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

30 Oct 2008, 6:10 AM
#5
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Re: I would like to edit the HTML on my home page.

Hmm... not quite. And if I did that, wouldn't that move all my content underneath the products?

How did the products get there in the first place? Maybe I can add something underneath that.

30 Oct 2008, 6:51 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: I would like to edit the HTML on my home page.

You can add more text below the centerbox by using the code in /includes/templates/your_template/templates/tpl_index_default.php. Move this from line 28 to nearly the end of the file:```php

<!-- deprecated - to use uncomment this section <?php if (TEXT_INFORMATION) { ?> <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div> <?php } ?>-->

Move to just above the last </div>:php
$show_display_category->MoveNext();
} // !EOF
?>

<!-- moved from line 28 - for extra text--> <?php if (TEXT_INFORMATION) { ?> <div id="bottomInfo" class="content"><?php echo TEXT_INFORMATION; ?></div> <?php } ?> </div> ``` Then edit /includes/languages/english/your_template/index.php around line 21:```php define('TEXT_INFORMATION', 'Define your main Index page copy here.'); ```
31 Oct 2008, 3:10 AM
#7
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Re: I would like to edit the HTML on my home page.

Thanks! That works. Wow, how are we supposed to know all this stuff?

31 Oct 2008, 7:07 AM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: I would like to edit the HTML on my home page.

There are tutorials and FAQs for lots of things that are common requests. This is not a common one, but is an easy fix for someone who has studied the central template files.