[Resolved] Moved Categories next to author, want to add "in" before the category list

Home Forums Support [Resolved] Moved Categories next to author, want to add "in" before the category list

Home Forums Support Moved Categories next to author, want to add "in" before the category list

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1074401
    Kathy

    New to GeneratePress and must say finding my way around is getting easier and easier!

    I successfully used the code snippet found here: https://gist.github.com/generatepress/8b1bb2d303ec2a8cc73fb382fd3656a6
    to move the categories from the bottom of content to up next to the author.

    1) this snippet was posted two years ago – it works great, but does it need any updating?

    2) I need to add the word “in” after the author and before the category list, as right now it is making the author name look a bit odd: “Date by Author category-name” – just spaces – kind of run-on-ish, especially since the author only goes by first name, making the category appear as an intended last name!

    I’d like it to read: “Date by Author in category-name”

    I’m not sure where I would add that ” in ” (with space before & after) into the snippet code. Or maybe it needs to be added elsewhere??

    Thanks!

    #1074930
    Leo
    Staff
    Customer Support

    Hi there,

    1. You can do this now:
    https://docs.generatepress.com/article/generate_header_entry_meta_items/

    2. Can you link me to the page in question after #1 is done? You can edit the original topic and use the private URL field.

    Let me know ๐Ÿ™‚

    #1075039
    Kathy

    Thanks Leo –

    Exchanged the code you provided and re-ordered it – giving same visual results as the original snippet I used. But would still like to add some wording (” in “) before the list of categories. Url added to original message (dev location).

    thanks – kathy

    #1075062
    Leo
    Staff
    Customer Support

    Add this CSS:

    .cat-links a:before {
        content: "in ";
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #1075071
    Kathy

    Argh! Of course – thank you!
    So focused on wrapping my head around the hooks and filters I totally blanked on CSS.

    Thanks so much!

    – k

    #1075074
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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