Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove unsubscribe button from unsubscribe page

Remove unsubscribe button from unsubscribe page

Locked

Views: 1,852

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
22 Oct 2010, 6:31 PM
#1
ia7x_shadowsi avatar

ia7x_shadowsi

New Zenner

Join Date:
Oct 2010
Posts:
6
Plugin Contributions:
0

Remove unsubscribe button from unsubscribe page

Hello,

Being new to php and zencart I'm having a little difficulty removing a button from a page.

I have changed the contents of the unsubscribe.php page and will eventually renamethe page, but for the time being I wish to remove the unsubscribe button at the bottom of the page, as I will not be using the newsletter subscribe otion (i've removed it from the side bar and set the newsletter to false within the admin panel.

Scout someone tell me where the file is in the zencart directory and what code I need to use to remove it please?

I'm using zencart ver 1.3.9g with a standard installation where zen cart is in the directory www/store and I am using the default template.

the url for the page in question is www. l o u s c r a f t y c a r d s . c o m/store/index.php?main_page=unsubscribe

i will be changing the text when i have removed the button -

Many thanks in advance

Scott

23 Oct 2010, 1:14 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Remove unsubscribe button from unsubscribe page

You have two choices:

  1. "Hide" the button via CSS -- add to your stylesheet.css file
#unsubDefault .buttonRow {display: none;}
  1. Remove the button from the PHP code -- copy /includes/templates/template_default/templates/tpl_unsubscribe_default.php into /includes/templates/YOURTEMPLATE/templates, and remove this code:
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE, 'addr=' . $unsubscribe_address . '&action=unsubscribe', 'NONSSL') . '">' . zen_image_button(BUTTON_IMAGE_UNSUBSCRIBE, BUTTON_UNSUBSCRIBE) . '</a>'; ?></div>
23 Oct 2010, 5:10 PM
#3
ia7x_shadowsi avatar

ia7x_shadowsi

New Zenner

Join Date:
Oct 2010
Posts:
6
Plugin Contributions:
0

Re: Remove unsubscribe button from unsubscribe page

Many, many thanks lat9. I'll use the first option in case I ever need to un hide it again later. Thanks again for the quick response - admin/mod team please feel free to close as this issue is resolved :)

23 Oct 2010, 7:30 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Remove unsubscribe button from unsubscribe page

No problem, glad I could help!