Website Coding

Stuck on a line of code? Find resources and post your coding questions here.

Forum Sponsor (Advertise with us)
Reply
 
Thread Tools Display Modes
    #1 (permalink)  
Old 02-19-2008
Tess's Avatar
Senior Member
Company name: Codehead, LLP
Latest blog post: SEO Q&A
 
Join Date: Apr 2007
Location: Portland, OR
Posts: 9,131
Blog Entries: 3
Default Commenting out bits of code in HTML (don't erase it, just hide it)
For those of you who are working to add little bits and pieces of code to your stash of knowledge here's a little tidbit I use on a regular basis.

This is PERFECT for when you have something you change or update on a regular basis, either for yourself or for that client who changes her mind all the time So - let's say you've got a chunk of your page that you want to 'hide' - you don't want to lose the code because you worked darn hard on it and might need or want it later, but you don't want it showing up on your website - at least for now.

Simply insert the following into your HTML code:
<!-- at the start of whatever it is you want to hide
and
--> at the end of whatever it is you want to hide

So:
<!-- This part of my website code will not show up or take space on the page but will still be visible to me when I go into the backend of my site, keeping it safe and sound for me should I ever want to use it again! -->

Give it a shot
__________________
Create a welcome packet for new clients with this guide and free templates!

(Available in PDF and Kindle versions)
Reply With Quote
    #2 (permalink)  
Old 02-19-2008
Office Goddess's Avatar
Senior Member
Company name: The Virtual Office Goddess, LLC
 
Join Date: Aug 2007
Location: Boulder, CO
Posts: 2,966
Send a message via Skype™ to Office Goddess
Default Re: Commenting out bits of code in HTML (don't erase it, just hide it)
Cool! Thanks! I'm learning in "bits and pieces"
__________________
Lily Chambers, The Virtual Office Goddess, LLC
Author "How to Do Your Own Small Business Bookkeeping"
Reply With Quote
    #3 (permalink)  
Old 02-20-2008
CYMMTJ's Avatar
Contributing Member
 
Join Date: Sep 2007
Posts: 183
Send a message via AIM to CYMMTJ
Default Re: Commenting out bits of code in HTML (don't erase it, just hide it)
Ohhhhh! I knew there was a way!! Thank you for this tip!
__________________
Yvonne
Office Savvy Assistant
Reply With Quote
    #4 (permalink)  
Old 03-06-2008
jeannedb's Avatar
Junior Member
Company name: NowAssistingYou.com
 
Join Date: Aug 2007
Location: Michigan
Posts: 254
Send a message via AIM to jeannedb Send a message via MSN to jeannedb
Default Re: Commenting out bits of code in HTML (don't erase it, just hide it)
This is especially useful if you are adapting something like WordPress to a more website-like (less blog-like) type of site. I can easily go into the Presentation panel and just comment out the code for the things that make the site look like a blog. For example, I comment out the little boxes at the end of posts that typically include date stamps, author names, tags, etc. I also comment out the comment boxes because I don't want the client to have to remember to click the "No comments" radio button each time a post is created.

This is a great tip Tess and not one that I would have even thought of mentioning.

OH - it's also great to use if you're working with pre-made templates and want to play around and figure out how to adapt it to your needs.
__________________
Jeanne
NowAssistingYou.com

Virtual Assistant :: Web/Blog Design & Hosting :: Writer
Reply With Quote
    #5 (permalink)  
Old 03-06-2008
Modern Marketing Support's Avatar
Resident Member
Company name: Modern Marketing Support
 
Join Date: Sep 2007
Location: Ontario, Canada
Posts: 1,249
Default Re: Commenting out bits of code in HTML (don't erase it, just hide it)
Thanks for the tip Tess!

I'm getting better at html and this is one more thing to add to my knowledge
__________________
Shari Sultana
Online Business Manager (marketing for retail ecommerce)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy HTML Tess Website Coding 15 08-05-2009 08:32 AM
Mailto HTML code that includes subject line automatically Tess Website Coding 0 02-18-2008 05:57 PM
HTML Tutorial vainparadise Website Coding 4 01-17-2008 09:58 AM


All times are GMT -4. The time now is 11:14 AM.

International Virtual Assistants Association
Project Management for Virtual Assistants
Work from Home | Become A Virtual Assistant
Virtual Assistant Directory
Affordable Logo Design
Virtual Assistant Contracts
Virtual Assistant Forums Advertising

© Virtual Assistant Forums 2012
All content and images are protected under copyright law and may not be reproduced in any way without express written consent.