Support » Theme: Longform » Do not display categories, tags and author info

  • I do not want any categories displayed either on the post list or full page post – I only have two categories anyway. Also I want to remove all tags from showing and the author info that is at the bottom of each post. I will keep the comments box at the bottom but I also do want to display wether there are any comments (shown with the categories under the post title).

    Finally if I make a link to another story at the bottom of the post I get a related article link but it is a huge thumbnail with huge letters – how can I edit this or maybe just not show it?

    Lot of requests – thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello!

    Remove categories line

    Are you using categories at all? If you don’t want the category to display on the post aggregate page or the single post page, one option would be to simply uncheck the categories on each post and the “categories line” will be removed. Though if you need to maintain your post’s categories for some reason, let me know and I will see if I can help to remove that line in the code of your theme.

    Remove tags and author info

    First create a child theme. Then copy single.php from your parent theme into your child theme. Remove lines 34 and 42–44 in this new copy of single.php.

    Related articles

    On Longform’s demo site, it is showing large images and text for related articles so it looks like this style is intentional. You can use some custom CSS to make changes, but if you’d like to remove the related articles altogether, remove line 47 in single.php (in your child theme).

    Hope that helps! Let me know if anything doesn’t make sense.

    Thread Starter emptymind

    (@emptymind)

    Thanks but I will be posting hundreds of stories so at one point I need a drop down list so visitors can choose a category. What I do not want is the category to be displayed on the archive or single pages along with the number of comments. It’s very distracting and ugly.

    So its just not displaying this line. Thanks

    I see. Try this:

    Remove categories line from heading on single post

    • Copy header.php to your child theme
    • In the new header.php file remove all the if statements that are producing the category line

    Remove categories line on archive and aggregate post pages

    The content- php files correspond to the post format. Copy the corresponding php files for the formats you will be using into your child theme and again remove the if statements that are producing the category line.

    Thread Starter emptymind

    (@emptymind)

    Thanks. I finally managed to do this using css.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Do not display categories, tags and author info’ is closed to new replies.