Systaweb

Interactive Websites Made Easy

Posted by Al Catoe On May - 11 - 2010 0 Comment

Commenting Out Code

There are times when you are testing template tags, plugin tags, or different bits of code and you need to prevent them from showing or intiating (being active). To do this, you “hide” them with comment codes. To restore their activation, just remove the comment code.

To hide or deactivate HTML:

<!-- <div><p>This is some HTML in the redblock class.</p></div> -->

To hide or deactivate CSS styles:

/* .redblock {font-size: 80%; font-style: italic; color: red; } */

To hide or deactivate PHP code in a template file:

<?php // the_content(Continue Reading...); ?>

or

<?php /* the_content(Continue Reading...); */ ?>

Related Posts:

  • No Related Posts
Categories: WordPress

Leave a Reply

Shop Online

Featured Posts

hacked

Why was my website hacked?

If your website has been a victim of being hacked, how did it get chosen? The first thing that ...

256px-Photoshop_logo_svg

How To Create A Favicon In Pho

A Favicon is a little custom icon that appears next to a website's URL in ...

How to Add an Icon to Your Dom

You can use shortcut icons to display your logo or some other small graphic on ...

Sponsors