• Resolved estudi33

    (@estudi33)


    Hi,

    In the blog entries, below the thumbnails, there are the meta data with links: date, author, category…

    I would like to keep them but removing the links. Is it possible?

    Thank you for your help!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter estudi33

    (@estudi33)

    Hi Zephyr Designs,

    Tahks for your help!!

    But, I don’t want to remove the post meta. I would to keep them but removing their links.
    For example, I want to show the posting date of the entry but I do not want that the date have a link.

    Menaka S.

    (@menakas)

    Hi,
    Add this to your child theme’s functions.php

    add_filter('tc_post_author_metas_html','my_author_meta');
    
    function my_author_meta($content) {
      return strip_tags($content, '<span>');
    }
    add_filter('tc_post_date_metas_html','my_date_meta');
    
    function my_date_meta($content) {
      return strip_tags($content, '<span>');
    }
    Thread Starter estudi33

    (@estudi33)

    Hi Menaka,

    Thank you for your help!!

    I added codes to functions.php but it does not work. The links are still active.

    Thread Starter estudi33

    (@estudi33)

    Hi again,

    I found the correct code:

    add_filter('tc_date_meta','my_date_meta');
    
    function my_date_meta($content) {
      return strip_tags($content, '<span>');
    }
    }

    It works!!

    • This reply was modified 8 years ago by estudi33.
    Menaka S.

    (@menakas)

    Glad ??
    Will you please mark this post as resolved?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to remove links of blog entries’ is closed to new replies.