[Support request] Multiple category display with separation in header elements

Home Forums Support [Support request] Multiple category display with separation in header elements

Home Forums Support Multiple category display with separation in header elements

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

    Hello, I am designing the haeder element for a blog post. This is the code for the template tags.

    <!– Home Hero –>
    <h1 style>
    {{post_title}}
    </h1>
    <h3 style=”background-color:white; color:white; text-transform:lowercase; width:25%; margin:auto;”>
    ({{post_terms.category}})
    </h3>

    Since I have multiple categories assigned to a post, is there a way to separate them in the header? If I use the code as above, they show like “Category 1 Category 2 Category 3 etc.”

    Thank you
    Davide

    #925801
    David
    Staff
    Customer Support

    Hi there,

    how would you want to separate them? With a pipe ‘|’ between them?
    If so you could use this CSS:

    .page-hero h3 a:not(:first-child):before {
        content: '|\00a0';
    }
    #926332
    davide

    Perfect, thank you! And how can I take out the white commas?

    http://davidepremoli.com/public_html/whitesaround/aonang/

    Thanks

    #926351
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.