How can I effectively remove blog tags from the Debut theme?

Hi there!

I’m trying to remove my blog tags from the debut theme and can’t seem to get it to work. I’ve searched the forums and tried a few options, but I can’t seem to get rid of them. My real issue is that, I tagged my latest blog post with “exclude-from-email” which I was assuming would also be a hidden tag, and it’s not. womp womp So, I guess I need to remove them all now..

One of the options was this, but it didn’t work for me:

blog-template.liquid (Lines 78-88)

{% if article.tags.size > 0 %}

  • {% for tag in article.tags %} {{ tag }}{% unless forloop.last %}, {% endunless %} {% endfor %}
  • {% endif %} (this didn’t copy the way I pasted it!)

    If you have any suggestions, I would greatly appreciate it!

    Thanks! - Kel

    Hi @KelMurphy , you need to comment out blog-template line 165-172. Wrap the div with the comment tag:

    {% comment %}
         {% if article.tags.size > 0 %}
                
                   {{ 'blogs.article.posted_in' | t }}
                   {% for tag in article.tags %}
                   {{ tag }}{% unless forloop.last %}, {% endunless %}
                    {% endfor %}
               
    
        {% endif %}
     {% endcomment %}
    

    @g33kgirl YESSS! Thank you SO much! This worked perfectly!

    @KelMurphy If you want to exclude specific tags but show other tags, then rather than commenting out the code, you can exclude them from the loop using “exclude-” tag. So this code will show other tags, but not tags which contain the word ‘exclude’ eg. ‘exclude-from-blog’ or ‘exclude-from-mail’:

    {% if article.tags.size > 0 %}
              
                  {{ 'blogs.article.posted_in' | t }}
                      {% for tag in article.tags %}
                        {% unless tag contains 'exclude-' %}
                          {{ tag }}{% unless forloop.last %}, {% endunless %}
                       {% endunless %}
                 {% endfor %}
             
    
    {% endif %}
    

    Glad I could help! :slightly_smiling_face:

    @g33kgirl This is even better!!! Thanks so much!