Results 1 to 8 of 8
  1. #1
    Join Date
    May 2006
    Location
    Queensland, Australia
    Posts
    248
    Plugin Contributions
    0

    Default Home Button and index.php?main_page=index

    Greetings;

    The "Home" button on my Template isnt linking to index.php?main_page=index. Instead it is only linking to http://www.delightsoftheflesh.com/.

    is there a way to fix this so it goes to http://www.delightsoftheflesh.com/in...ain_page=index ?

    Thanks
    Delights

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,746
    Plugin Contributions
    22

    Default Re: Home Button and index.php?main_page=index

    Go to your includes/templates/bdsm/common/tpl_header.php and find the line that displays the Home button. Then link it to index.php

    You will have to do the same with includes/templates/bdsm/common/tpl_footer.php

    The problem is that you have index.html and index.php in your root folder and servers gives priority to html

  3. #3
    Join Date
    May 2006
    Location
    Queensland, Australia
    Posts
    248
    Plugin Contributions
    0

    Default Re: Home Button and index.php?main_page=index

    Quote Originally Posted by balihr View Post
    Go to your includes/templates/bdsm/common/tpl_header.php and find the line that displays the Home button. Then link it to index.php

    You will have to do the same with includes/templates/bdsm/common/tpl_footer.php

    The problem is that you have index.html and index.php in your root folder and servers gives priority to html
    Thanks matey, ill have a look at that tommorow.

    Yea, because of the legal requirements regarding age, i have to put the disclaimer...

  4. #4
    Join Date
    May 2006
    Location
    Queensland, Australia
    Posts
    248
    Plugin Contributions
    0

    Default Re: Home Button and index.php?main_page=index

    Quote Originally Posted by balihr View Post
    Go to your includes/templates/bdsm/common/tpl_header.php and find the line that displays the Home button. Then link it to index.php

    You will have to do the same with includes/templates/bdsm/common/tpl_footer.php

    The problem is that you have index.html and index.php in your root folder and servers gives priority to html
    Found the line...

    Code:
    <div <?php echo $this_is_home_page ? ' class="current"' : ''; ?>><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></div>
    But not sure what i am suppose to change....

  5. #5
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,746
    Plugin Contributions
    22

    Default Re: Home Button and index.php?main_page=index

    Try replacing that line with this:
    Code:
    <div <?php echo $this_is_home_page ? ' class="current"' : ''; ?>><a href="index.php"><?php echo HEADER_TITLE_CATALOG; ?></a></div>

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Home Button and index.php?main_page=index

    Quote Originally Posted by Delights View Post
    The "Home" button on my Template isnt linking to index.php?main_page=index.
    Why is that a problem for you?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    May 2006
    Location
    Queensland, Australia
    Posts
    248
    Plugin Contributions
    0

    Default Re: Home Button and index.php?main_page=index

    Quote Originally Posted by DrByte View Post
    Why is that a problem for you?
    Every time someone would click on the home button it would load the index.html page and thus them having to agree to enter the site again, at least this way once they agree they can click on home and it reloads the index.php file instead of index.html.

  8. #8
    Join Date
    May 2006
    Location
    Queensland, Australia
    Posts
    248
    Plugin Contributions
    0

    Default Re: Home Button and index.php?main_page=index

    Quote Originally Posted by balihr View Post
    Try replacing that line with this:
    Code:
    <div <?php echo $this_is_home_page ? ' class="current"' : ''; ?>><a href="index.php"><?php echo HEADER_TITLE_CATALOG; ?></a></div>
    Thanks & Cheers bud, that worked like a charm....

 

 

Similar Threads

  1. How to change amout font size in /index.php?main_page=index&cPath=33
    By oavs in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Jan 2014, 10:00 AM
  2. How to add banner to index.php?main_page=index&cPath=0 ?
    By Alexiss in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Oct 2011, 04:55 PM
  3. change /index.php?main_page=index to just / with ceon uri?
    By new2u in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 Jan 2010, 02:06 AM
  4. Replies: 0
    Last Post: 26 Oct 2007, 12:55 AM
  5. Change the index.php?main_page=index and where it links to
    By tqualizer_man in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Nov 2006, 01:41 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