Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2010
    Posts
    6
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,926
    Plugin Contributions
    96

    Default Re: Remove unsubscribe button from unsubscribe page

    You have two choices:

    1) "Hide" the button via CSS -- add to your stylesheet.css file

    Code:
    #unsubDefault .buttonRow {display: none;}
    2) 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:

    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>

  3. #3
    Join Date
    Oct 2010
    Posts
    6
    Plugin Contributions
    0

    Default 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 :)

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

    Default Re: Remove unsubscribe button from unsubscribe page

    No problem, glad I could help!

 

 

Similar Threads

  1. Change Link for Unsubscribe Button
    By gandalfsmith in forum General Questions
    Replies: 2
    Last Post: 26 Oct 2011, 06:26 PM
  2. remove 'Newsletter Unsubscribe' link
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 10 Jun 2011, 02:18 PM
  3. newsletter unsubscribe with a button
    By balihr in forum General Questions
    Replies: 1
    Last Post: 9 May 2010, 05:09 PM
  4. How do I remove unsubscribe newsletters?
    By Jhancy in forum General Questions
    Replies: 1
    Last Post: 7 Apr 2010, 09:46 AM
  5. unsubscribe button url problem
    By passingtime in forum General Questions
    Replies: 1
    Last Post: 13 Sep 2006, 05:26 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