I'm using Twenty Fourteen theme and I've created a child theme. Now I want to remove that annoying html stuff under the comment box. I tried doing it in the original theme using the information I found under https://my.wealthyaffiliate.com/website-development-programming/how-do-i-remove-html-tags-and-attributes-from-the-bottom-of-my-page but that prevented SI CAPTCHA Anti-Spam plugin from working. Please help if you can. ~Marion

Join the Discussion
Write something…
Recent messages
MarionBlack Premium
Thanks everyone it's now sorted using the child-theme and the code that Andre suggested. All I had to add to the new style.css was:
.form-allowed-tags code {display:none;
color: #767676;
}
:-D ~Marion
Reply
Jen090 Premium
HI Marion, if nothing still works, try the one that I blogged about:
There is one way to remove the 'eye sore' underneath the comments box. I found this easy and it worked with my websites.

Go to your Dashboard>Appearance>Editor. Then under the comments.php, look for this:

comment_form( ); towards the end of the file. Then change it into:

comment_form( array( 'comment_notes_after' => ' ') );

Click Update file.

All the best.
Reply
Sui_generis Premium
See Jen, you can't leave. We still need your expertise.
Reply
BeYou Premium
That worked great. Thanks
Reply
ROiiiY Premium
YEAH! Not the same theme, but exactly what you said worked for me too. Thanks!
Reply
CarlaIves Premium
Andre explained it better than I could, Marion. Good Luck on getting it sorted. I've always found that it's just a little thing that causes problemsl like this on my sites. I sit and stare at that @#$(*&#$(@&$@*( code until it jumps out. Sometimes, it takes several cups of coffee.
Reply
MarionBlack Premium
I took a few hours' break before I came back to find out what wonderful answers had been left for me and it worked a treat. M
Reply
CarlaIves Premium
WOOT!
Reply
MarionBlack Premium
WOOT! WOOT!
Reply
apache1 Premium
Marion it works I just tried a siterubix one go to the styles.css at bottom right as explained the above link.
When that is open to find it easier do a Ctrl-F search then type in form-allowed this should take you to the bottom section I have below.
in that second last line just type display:none;
then up date remember it is colon after display and semi-colon after none that will fix it.

.comment-notes,
.comment-awaiting-moderation,
.logged-in-as,
.no-comments,
.form-allowed-tags,
.form-allowed-tags code {display:none;
color: #767676;
}
This is how it looks on the page with the final bracket where it is now.
I just didn't highlight it.
Take care
Reply
Maksim Premium
There is issue with code you provided which can cause theme to stop from working.
You need to mention that there should be closing curly bracket }
Reply
apache1 Premium
True I just didn't highlight it as it is below the color as now show in my explanation. So My bad on that.
But It's fixed above the only part I added was the display:none; everything else was as is bracket and all.
Thanks for letting me know
Take care
Reply
Maksim Premium
Cool,

PS.I actually prefer your solution over mine, even if it involves extra step, as it provides cleaner code.

MBlack be aware then when you will do theme update you can loose those changes and will have to do those edits again.
Consider creating child theme or custom CSS.
Reply
apache1 Premium
The other thing you can do Marion if you want to test it out is just create a test siterubix with your theme and try it out there that way if something goes wrong no harm done. That's what i did I have a siterubix i test on so i changed to the same theme as yours did the above and worked.
Let us know the outcome.
Take care Marion and thanks Maksim for pointing the glitch left out.
Reply
MarionBlack Premium
Thank you Andre, I put the code into the line above when I was trying to modify the original theme and that was obviously the wrong place. I have made the addition to the child-theme style.css as you suggested and it WORKS. Thanks to everyone for your help. ~Marion
Reply
Maksim Premium
Ok there are 2 ways to create child theme

1) Copy all CSS from original and edit it.

If you used this way then you can use as suggested by apache1


2) Using @import
I did Custom theme using @import and added this line at the end:
p.form-allowed-tags {display: none;}

This is what i have in CSS and it works:


/*
Theme Name: Twenty Fourteen Child
Theme URI: http://example.com/twenty-fourteen-child/
Description: Twenty Fourteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentyfourteen
Version: 1.0.0
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-fourteen-child
*/


@import url("../twentyfourteen/style.css");
p.form-allowed-tags {display: none;}
Reply
apache1 Premium
Glad it worked for you Marion enjoy the rest of your day now.
Reply
Maksim Premium
There is CSS way:
Just add this line at the top of yours Styles.css:
p.form-allowed-tags {display: none;}
Reply
Top