Forums / Templates, Stylesheets, Page Layout / Move text to the bottom of main page

Move text to the bottom of main page

Started by jisul on 5 Oct 2011, 2:25 AM · Views: 1,029

Results 1 to 10 of 10
5 Oct 2011, 2:25 AM
#1
jisul avatar

jisul

New Zenner

Join Date:
Apr 2010
Location:
BC, Canada
Posts:
22
Plugin Contributions:
0

Move text to the bottom of main page

In the file tpl_index_default.php, I moved the code:

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php /** * get the Define Main Page Text */ ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?>

below,

But it does not work.

5 Oct 2011, 6:57 AM
#2
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: Move text to the bottom of main page

Try only monving this part:
<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>

<?php } ?>
5 Oct 2011, 2:11 PM
#3
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: Move text to the bottom of main page

I meant, try moving only this part:

<?php
/**

  • get the Define Main Page Text
    */
    ?>
<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?>

Tell us if it worked!

6 Oct 2011, 3:09 AM
#4
jisul avatar

jisul

New Zenner

Join Date:
Apr 2010
Location:
BC, Canada
Posts:
22
Plugin Contributions:
0

Re: Move text to the bottom of main page

No, it does not work. I use classic template for this site.
www.jisul.thequalitymugs.com

I did same thing on anther website before and it worked:
www.jisul.com

6 Oct 2011, 4:00 AM
#5
jisul avatar

jisul

New Zenner

Join Date:
Apr 2010
Location:
BC, Canada
Posts:
22
Plugin Contributions:
0

Re: Move text to the bottom of main page

The tpl_index_default.php files for the both websites are identical. However, the results are different.

6 Oct 2011, 10:10 PM
#6
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: Move text to the bottom of main page

I have to check it myself. I'll post here as soon as I've tried.

6 Oct 2011, 11:51 PM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: Move text to the bottom of main page

The code in post 1 is a standalone snippet, and can reliably be moved, but you have to move it to after the whole while() loop or it will either repeat or not execute at all, depending on where in the loop it ends up.```php

<?php $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN); while (!$show_display_category->EOF) { ?>

Move it to the very bottom of the file, just above the </div>.```php
<?php
  $show_display_category->MoveNext();
} // !EOF
?>
</div>
7 Oct 2011, 5:36 AM
#8
jisul avatar

jisul

New Zenner

Join Date:
Apr 2010
Location:
BC, Canada
Posts:
22
Plugin Contributions:
0

Re: Move text to the bottom of main page

I made the change but it made no difference.

I've just installed Zencart on a new website:

www.thequalitymugs.com

I tested the tpl_index_default.php file. No matter how I moved the codes, it did not make any difference on the layout of main page.

Since it works on my another website www.jisul.com which was installed more than one year ago, I guess there was some change on the program recently.

7 Oct 2011, 2:33 PM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: Move text to the bottom of main page

You're editing the wrong file. The one you have handling the home page is tpl_index_categories.php, not tpl_index_default.php.

8 Oct 2011, 2:44 AM
#10
jisul avatar

jisul

New Zenner

Join Date:
Apr 2010
Location:
BC, Canada
Posts:
22
Plugin Contributions:
0

Re: Move text to the bottom of main page

You are right! Thx a lot.