Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default Would Like to Remove // Comments

    Hi All,
    While some SEO work I realized that there is a lot of development comments in the source. Is there a simple way to remove all of this? I would rather not go through every zencart file to delete all of the file //comments.

    Thanks in advance,
    John

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Would Like to Remove // Comments

    Well - first, double slashed comments are in the php and they don't show in your page source anyway. HTML comments do show in the source and they are <!-- -->

    There is no "easy" way to remove them except to go through each file. Enjoy!


    PS - I have to ask ... Why do you think it is necessary?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default Re: Would Like to Remove // Comments

    Hi Kim,
    Thanks for the reply. Some one told me today that they saw an area in the source that said "un comment to use this section" or something very close to that.

    Why am I doing this. . .
    I am trying to improve the code to text ratio. Since every little bit can add up to a lot I will be going through and removing every little bit. I'm sure I will not enjoy.

    Thanks again,
    John

  4. #4
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Would Like to Remove // Comments

    Interesting ... You realize that means you have to go through every single template file and any that you touch you need to put in your overrides directory?

    I think I would find more productive things to do. JMHO
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default Re: Would Like to Remove // Comments

    I do agree with bumbaa in that it would be 'cleaner' to remove all unnecessary comments but my OCD just about lets me get away with not going through every single file!

 

 

Similar Threads

  1. v154 Would like to remove the "larger image" text from my additional images
    By Ted Grapler in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 27 Jan 2016, 05:05 AM
  2. Remove Welcome: Guest! Would you like to log yourself in?
    By Elysea in forum General Questions
    Replies: 2
    Last Post: 17 Jan 2011, 10:46 PM
  3. Would like to remove empty photo box
    By MT Ed in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 Jan 2008, 05:58 AM
  4. Remove "would you like to see our newest...?
    By benjames in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Sep 2006, 06:57 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