Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2008
    Posts
    22
    Plugin Contributions
    0

    Default Define Page Status

    I'm trying to disable my contact us page. I've set the define page status to 3, it shows as set to 3, but the page is still there. I've tried changing a couple of different pages to 3 and it seems to work with them.

    I've searched and searched the forums and have not found anything that fits my situation.

    ANY help would be appreciated.

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

    Default Re: Define Page Status

    When you reply - Scroll up and provide the information
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: Define Page Status

    Here's a link to the page I'm attempting to disable http://irisoriginals.com/Emporium/in...age=contact_us

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,903
    Plugin Contributions
    96

    Default Re: Define Page Status

    As the navigation header for your store is non-standard, I'd suggest that you look in /includes/templates/forest_path/common/tpl_header.php. It looks like the code that was added there to display the "Contact Us" link didn't check to see if the page is currently enabled.

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

    Default Re: Define Page Status

    Your template designer has coded a link to the Contact Us page in the main navigation bar. You'll need to find that (probably in tpl_header.php) and remove that line.

    The Define Page Status option only removes access to the Contact Us page from the Information box. It doesn't remove the page itself.

    Why don't you want your visitors to contact you ?

  6. #6
    Join Date
    Nov 2012
    Posts
    17
    Plugin Contributions
    0

    Default Re: Define Page Status

    To remove the "Contacts" button completely from view you'll need to modify a line of code in the file:

    Emporium/includes/templates/template_default/common/tpl_header.php

    The code line your looking for sits between the lines starting with <!--bof-navigation-display and <!--eof-navigation-display and is the only line with the words "Contact Us" in it.

    I can't say exactly what it will read but you need to remove that line of code. It might say something like the following :

    <li class="current"><a href="http://irisoriginals.com/Emporium/index.php?main_page=contact_us"><span>Contact Us</span></a></li>

    only it probably will have some php coding embedded. Basically to remove "Contact Us" from the display you need to remove everything between (and including) the opening and closing <li></li>

    If you want to post the block of code between <!--bof-navigation-display and <!--eof-navigation-display then I can probably tell you what to replace it with.

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

    Default Re: Define Page Status

    Quote Originally Posted by dturnertms
    To remove the "Contacts" button completely from view you'll need to modify a line of code in the file:

    Emporium/includes/templates/template_default/common/tpl_header.php
    NO, NO
    Never edit a core file when it can be overridden for your template
    Make a copy and place it in your template's override structure
    See faq's if you have a question
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Nov 2012
    Posts
    17
    Plugin Contributions
    0

    Default Re: Define Page Status

    Apologies ; Further to posting above, then line of code to delete is :

    <li<?php echo (($current_page_base == 'contact_us') ? ' class="current">' : ' class="contact">');?><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo '<span>' . BOX_INFORMATION_CONTACT . '</span>'; ?></a></li>

    BUT it sits in the filepath:/includes/templates/forest_path/common/tpl_header.php

    (Make backup copy first too)

 

 

Similar Threads

  1. Remove Define Page x from Define Page Status
    By krazykev in forum Basic Configuration
    Replies: 1
    Last Post: 15 Feb 2009, 08:33 PM
  2. Define Page Status
    By ash.whitehair in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 17 Jan 2008, 09:36 PM
  3. duplicated 'define page 2' and define page status not appearing
    By twitchtoo in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 7 May 2007, 06:03 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