[Resolved] Adding category and tag to bottom of blog post as well

Home Forums Support Adding category and tag to bottom of blog post as well

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1363949
    Reena

    Hi

    I’ve just switched to Generate Press (it’s great) and am using child theme Dispatch.

    I like how the category displays at the top of the post. But is there a way to also add categories and posts to the bottom of the blog post.

    I want it to say:

    Filed Under: [Category Name(s)]
    Tagged With: [Tag Names]

    Thanks, Reena

    #1364592
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    The Page Hero will automatically remove those items if it detects them within itself so they aren’t duplicated on the page.

    You can tell them to come back like this:

    add_action( 'wp', function() {
        add_filter( 'generate_show_tags', '__return_true' );
        add_filter( 'generate_show_categories', '__return_true' );
    }, 101 );

    Let me know if you need more info 🙂

    #1365012
    Reena

    Thanks Tom. That worked perfectly.

    Do you have any info on how I can use css to style this area?

    For example, instead of the icons, I wanted it to say Filed Under: [Category Name(s)] and Tagged With: [Tag Names]. And maybe have the category and tag have the same colour as a link so people know that they can click on it.

    Thanks,

    Reena

    #1365345
    David
    Staff
    Customer Support

    Hi there,

    add this CSS to your site:

    .cat-links:before,
    .tags-links:before  {
        font-family: inherit;
        width: auto; 
    }
    
    .cat-links:before {
        content: 'Filed Under: ';
    }
    
    .tags-links:before {
        content: 'Tagged in: ';
    }
    #1366207
    Reena

    Thanks David. That’s perfect.

    #1366452
    David
    Staff
    Customer Support

    Glad we could be of help

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.