- AuthorPosts
- March 15, 2018 at 4:48 pm #22837Anonymous UserMember
Hi, I would like to remove the ”you may use these html tags…” from the comments section of the blog post template page. I have created a child theme for Wedge but cannot find the file to edit this element. Where should I look? Thanks, E
March 16, 2018 at 4:24 pm #22840KyleMemberHello,
Thanks for contacting us about removing the html help text from your comments. You would not wnt to edit the core files directly to do this, the simlist way is to hide the div in the custom css section of your site. Below is an entry of what that CSS snippet would like like. All you need to do is replace #form-allowed-tags with the div used on your site. If you use chrome and right click on it and click inspect it will show you the div, we can also find it for you if you can provide us a link to a page on your site that shows the text you want to remove.
#form-allowed-tags { display:none; }
Best Regards,
KyleM
March 18, 2018 at 4:44 pm #22839ErikMemberHi Kyle, sorry if my questions are uninformed. I used the developer tool to identify the offensive bits at the bottom of the page. There are two elements that I would like to be removed:
<p class=”form-allowed-tags”>You may use these <abbr title=”HyperText Markup Language”>HTML</abbr> tags and attributes:</p>
and
<div class=”alert alert-info”><a href=”” title=””> <abbr title=””> <acronym title=””> <b> <blockquote cite=””> <cite> <code> <del datetime=””> <em> <i> <q cite=””> <s> <strike> <strong> </div>
I have looked at the Custom CSS editor section, but the only code that I see there is .boldgrid-css{ background: white; }. Sorry, but what do I do next?
Erik
March 19, 2018 at 4:28 pm #22838BoldGrid SupportKeymasterHello Erik!
Thanks for posting your comment regarding removing the HTML markup alert from below the comments field.
First, I’d recommend creating a backup of your website, before implementing my recommendation below. After making that backup, navigate to Customize > CSS/HTML Editor. Under the Theme Files section, navigate to the file/path here:
inc/boldgrid-theme-framework/includes/class-boldgrid-framework-comments.php
Once that file loads in the editor, scroll down (to approximately line 138). Remove the following code from this file:
‘comment_notes_after’ => ‘<p class=”form-allowed-tags”>’ . __( ‘You may use these <abbr title=”HyperText Markup Language”>HTML</abbr> tags and attributes:’, ‘bgtfw’ ) . ‘</p><div class=”alert alert-info”>’ . allowed_tags() . ‘</div>’,
Finally, click the Update File button at the bottom of the page.
This removes the notes after the comment field, as you have described. If for some reason, this causes unwanted behavior, you can always use the backup you created (prior to making these changes), to restore the file. I hope this helps!
Sincerely,
Carlos D
- AuthorPosts
- The topic ‘Where do I find the file to edit to remove the ”you may use these html tags…” from a child theme for Wedge?’ is closed to new replies.