• Resolved Hans-Gerd Gerhards

    (@hage)


    Hi,
    is it possible to display only the date in the post meta overview ?
    Under Customizer -> Blog -> Posts it seems to be only possible to show either nothing or author and date. Using Customizer CSS I couldn’t find a solution to hide the author, because it is not possible to hide “written by” in addition.

    Best Regards,
    Hans-Gerd

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Romik84

    (@romik84)

    This could be done by a child theme for now as those specific elements don’t have specific classes to use to hide them.

    Thread Starter Hans-Gerd Gerhards

    (@hage)

    Hi @romik84,
    ok – but that would be a nice feature for a next version ??
    Best Regards,
    Hans-Gerd

    Romik84

    (@romik84)

    maybe ?? in some future version ??

    Thread Starter Hans-Gerd Gerhards

    (@hage)

    Hi,
    if i see that correctly, i have to comment out the lines 505 and 506 in file template-tags.php and copy the file into the childtheme folder under folder “inc”. Correct ?
    I just tested it, but unfortunately it didn’t work.
    Thanks for advice.
    Best Regards,
    Hans-Gerd

    Jarret

    (@jarretc)

    I think the closest you’ll get is adding the following into Appearance->Customize->Additional CSS

    .container .post .post-meta .author :not(.published) {
         display: none;
     }
     .container .post .post-meta span {
         color: #249a25;
     }
     .container .post .post-meta {
         color: white;
     }

    Without modifying the theme files or having to use a child theme

    Romik84

    (@romik84)

    Hi @jarretc, yes, that pseudo class can do its job too ??

    Thread Starter Hans-Gerd Gerhards

    (@hage)

    Hi @jarretc,
    thanks a lot. I will try it and will back here soon.

    Thread Starter Hans-Gerd Gerhards

    (@hage)

    Hi @jarretc,

    thanks a lot again. It works, but I have it changed a little:

    .container .post .post-meta .author :not(.published) {
         color: white;
     }
     .container .post .post-meta span {
         color: #249a25;
     }
     .container .post .post-meta {
         color: white;
     }

    Best Regards,
    Hans-Gerd

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hide Author in Post Meta’ is closed to new replies.