Define Page Status

Results 1 to 8 of 8
30 Oct 2012, 22:16
#1
irisesweb avatar

irisesweb

New Zenner

Join Date:
Mar 2008
Posts:
22
Plugin Contributions:
0

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.
30 Oct 2012, 22:17
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Define Page Status

When you reply - Scroll up and provide the information
31 Oct 2012, 14:54
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Posts:
13,980
Plugin Contributions:
46

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.
31 Oct 2012, 14:56
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Posts:
19,793
Plugin Contributions:
2

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 ?
13 Nov 2012, 17:53
#6
dturnertms avatar

dturnertms

New Zenner

Join Date:
Nov 2012
Posts:
18
Plugin Contributions:
0

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.
13 Nov 2012, 17:58
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Define Page Status

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
13 Nov 2012, 18:14
#8
dturnertms avatar

dturnertms

New Zenner

Join Date:
Nov 2012
Posts:
18
Plugin Contributions:
0

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)