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...); */ ?>
Categories: WordPress

Leave a Reply

Submit A New Ticket

                   Create Ticket

Important Messages

Email News Letter