Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Feb 2013
    Location
    Southampton, United Kingdom
    Posts
    40
    Plugin Contributions
    0

    Default Text directly under products on main page only

    Hi

    Can anyone tell me what file to edit and the tree path to put some text onto the home page directly under the products. I only want the text on the homepage but don't seem to be able to find which file to add it to. Site is wwwdotbikeporndotcodotuk.

    Many thanks in advance

    Phil

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Text directly under products on main page only

    You want to add text after the listings for Monthly Specials???
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2013
    Location
    Southampton, United Kingdom
    Posts
    40
    Plugin Contributions
    0

    Default Re: Text directly under products on main page only

    Quote Originally Posted by kobra View Post
    You want to add text after the listings for Monthly Specials???
    Hi. Yes I do

    Regards

    Phil

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Text directly under products on main page only

    In a copy of tpl_index_default.php for your template

    Open it in a code editor and reorder the sequence that items are displayed

    Save and upload to your template structure
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Text directly under products on main page only

    One might try this also ...
    includes/ templates/template_default/templates/ tpl_modules_specials_default.php
    Place this file in your override directory and edit ...

    Place your text in the red coding below ...

    Code:
    $zc_show_specials = false;
      include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_SPECIALS_INDEX));
    ?>
     
    <!-- bof: specials -->
    <?php if ($zc_show_specials == true) { ?>
    <div class="centerBoxWrapper" id="specialsDefault">
    <?php
    /**
     * require the columnar_display template to show the products
     */
      require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
    ?><div>My unique text is here</div>
    </div>
    <?php } ?>
    <!-- eof: specials -->

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Text directly under products on main page only

    While what haredo posted will work -
    The way I am suggesting will move your define_main_page.php text to appear after your specials

    In this way, you can edit what is represented through the admin > tools > define page editor
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Feb 2013
    Location
    Southampton, United Kingdom
    Posts
    40
    Plugin Contributions
    0

    Default Re: Text directly under products on main page only

    Ok thanks guys but this is where I am a bit confused. I have opened define pages editor and opened define_main_page and input some text. Problem is that it doesn't appear on the main page hence the original question. Am I supposed to 'turn on' the pages somewhere?
    thanks

    Phil

  8. #8
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Text directly under products on main page only

    Are you editing the right file ? Should be includes/languages/english/html_includes/black_pure_free/define_main_page.php. Also try editing the file directly without using the Define Pages Editor.

  9. #9
    Join Date
    Feb 2013
    Location
    Southampton, United Kingdom
    Posts
    40
    Plugin Contributions
    0

    Default Re: Text directly under products on main page only

    Hi Steve

    The file isn't there in that file tree. define_main_page.php does sit under html_includes and that shows the text I put into define pages editor. Should I copy that file and put it into black_pure_free?
    Last edited by Phil Lomas; 3 May 2013 at 06:20 PM.

  10. #10
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Text directly under products on main page only

    Worth a try. It should work in the original directory, but copy it to the custom template directory and see if it displays.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Text under new products on main page
    By evil turinp in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 6 Sep 2011, 07:16 PM
  2. add text on main page under "new products for.." box
    By smokers-heaven in forum General Questions
    Replies: 15
    Last Post: 9 Mar 2011, 01:46 AM
  3. Center Text under image on main page?
    By HIJACKER in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Nov 2007, 11:11 PM
  4. How get text under center box on main page?
    By kittycat in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 19 Jun 2007, 06:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg