Results 1 to 3 of 3
  1. #1

    Default Adding Php code to homepage

    Hi

    I am trying to add a snippet of php code on the homepage but I have no idea where to add the code, it needs to appear after the content from define main page. I have tried editing tpl_index_default.php and adding the code there but it isn't working. Any ideas?

    Regards
    Tracey

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding Php code to homepage

    Your define_main_page.php content goes right to the bottom of the center column, so why don't you want to add your new content to that file?

    It should also work to edit tpl_index_default.php since you are not displaying categories on the homepage, as long as you edit it correctly.

  3. #3

    Default Re: Adding Php code to homepage

    thanks I thought I had tried this, but seems i was editing the default files not the template one. Works a charm.

 

 

Similar Threads

  1. Code or mod to show all sub categories on homepage?
    By twdhosting in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Dec 2015, 09:20 AM
  2. Adding text to homepage
    By gamenet in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Oct 2010, 08:07 AM
  3. Adding Code to checkout_success.php
    By Renz in forum General Questions
    Replies: 16
    Last Post: 25 Mar 2010, 04:15 AM
  4. Adding an Image inside PHP code?
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 9 Oct 2009, 10:56 PM
  5. Entering HTM Code into PHP Files - Adding Live Search to search_header.php
    By Jump Network in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Sep 2007, 02:47 PM

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