Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] Commenting out code not working for me (http://forum.bytesforall.com/showthread.php?t=20012)

markzip Mar 28, 2013 09:25 AM

[SOLVED] Commenting out code not working for me
 
http://www.mayapplepress.com
WP 3.5.1
Atahualpa 3.7.7

On http://mayapplepress.com/submissions/ I need to comment out a block of text in the middle of the page and then have the page resume after the commented out block. But when I insert the standard html tags
Code:

<!-- here is the stuff I want to remove -->
all it does is kill the rest of the page below the start of the comment.

:confused:

juggledad Mar 28, 2013 10:05 AM

are you just inserting that into the post?

lmilesw Mar 28, 2013 10:34 AM

Using some html may be iffy for a variety of reasons but you could just use something like the following.
HTML Code:

<div style="display: none;">Text I want to hide</div>
You could also create a class of, for example hide-text and put the following in CSS Inserts
HTML Code:

.hide-text {
display: none;
}

and then use the following wherever you want
HTML Code:

<div class="hide-text">Text I want to hide</div>


All times are GMT -6. The time now is 03:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.