We're merging with GenerateBlocks! Learn more here.

[Resolved] More control over meta display

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support More control over meta display

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #28164
    Brian & Teresa
    Participant

    Following up to a separate e-mail thread with Elvin, we are redesigning a site that is currently in a page builder. The client has accepted that if he cares about performance he must let some things go. I think we can do most of what is most important to him with our WPSP + GBP + GPP toolset, but one thing I don’t have sorted is meta display. Mostly I am talking about categories.

    <b>Is there a way to make WPSP display only the primary category?</b> We need to be able to display the category meta with the post. However, almost every post has multiple categories assigned.

    <b>Is there a way to control where the meta displays?</b> There aren’t any positioning settings in WPSP, other than below title/below post. I notice the Overlay card style has the title at the top and the meta at the bottom. This is close to what we need, if I could reverse the output order. Is there a magic code snippet that would help me accomplish that?

    If you could help with the above, I *think* I could handle the rest of what we need to do with CSS. I can provide screenshots or URLs on request, but do not want to post them publicly.

    #28186
    elvin
    Moderator

    Hi there,

    If Overlay is close enough to what you want to achieve, we can try playing around with it using CSS to achieve your preferred layout.

    You can provide the screenshots or URLs on the e-mail thread. 🙂

    #28277
    Brian & Teresa
    Participant

    The client actually preferred the post display I’d set up in the first row, which didn’t use the cards at all. We still might use that style elsewhere. The question remains about how to show only the primary category.

    Is there a way to make WPSP display only the primary category? We need to be able to display the category meta with the post. However, almost every post has multiple categories assigned. I’d prefer to remove it with a code snippet vs. hiding it with CSS, if that is an option.

    #28299
    elvin
    Moderator

    This is quite tricky to do. Please see my reply on your email. 🙂

    #28362
    Brian & Teresa
    Participant

    For the record, below is Elvin’s e-mail reply.

    WPSP e-mail support reply

    #28381
    elvin
    Moderator

    Thanks.

    The forum is having issues posting my reply so I’ve sent it there. 🙂

    Try this code:

    https://gist.github.com/ejcabquina/e286adfa39f1e2aea21c37dd03ed993f

    #28405
    Brian & Teresa
    Participant

    Thank you, Elvin. I dropped the code into a Hook Element so it would only get loaded on a specific page, and it works perfectly.

    #28426
    elvin
    Moderator

    Nice one. Glad you got it sorted. 🙂

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