Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22837

    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

    #22840
    Kyle
    Member

    Hello,

    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

    #22839
    Erik
    Member

    Hi 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”>&lt;a href=”” title=””&gt; &lt;abbr title=””&gt; &lt;acronym title=””&gt; &lt;b&gt; &lt;blockquote cite=””&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=””&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=””&gt; &lt;s&gt; &lt;strike&gt; &lt;strong&gt; </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

    #22838
    BoldGrid Support
    Keymaster

    Hello 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

    
    
    		
    	
Viewing 4 posts - 1 through 4 (of 4 total)
  • 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.