Changing post meta without Child theme

Hello, is it possible via plugin (or other simple method) to change meta info in posts?
I mean change “posted date author” into another form and then also remove links?
Thank’s
Chris

Do you have final result you wanted to share? Probably I could suggest you with custom code solution.

Regards,
Kharis

Kharis, yes,… thank you :slight_smile:

since my website is in German… i would like to have this line (no links, no underline, just a simple text line)

Veröffentlicht am DATE von AUTHOR

Have you found a solution, Kharis?

Hello there,

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box
    (function($){

      if ( $('.posted-on').length ) {
        $('.posted-on').each(function(){
          $(this).find('a').contents().unwrap();
        });
      }

      if ( $('.byline').length ) {
        $('.byline').each(function(){
          $(this).find('a').contents().unwrap();
        });
      }

    })(jQuery);
  1. Update
  2. Add the below CSS code to Appearance > Customize > Additional CSS from dashboard.
    .single .single-meta,
    .classic-alt .posted-on {
      text-decoration: none !important;
    }

Regards,
Kharis

Thank’s so much, Kharis… the link has disappeared which is good… but is there a possibility to change this:

VERÖFFENTLICHT 14. SEPTEMBER 2019 CHRISTOPH KUMMER (this is how it’s shown now)

into

VERÖFFENTLICHT AM 14. SEPTEMBER 2019 VON CHRISTOPH KUMMER

AM means “on” in German and should be there… and VON means “by”.

Hello there,

You could probably be able to change it with Loco Translate plugin.

Regards,
Kharis

Kharis, I think I’ve found a solution by combination of 3 steps:

  1. This will remove comments and categories from meta (everywhere), leaving only the date and the author - I added it to CSS:
    .hentry .meta-post .cat-links {
      display: none;
    }

    .hentry .meta-post .comments-link {
      display: none;
    }

    .hentry .meta-post .post-cat {
      display: none;
    }

    .hentry .single-meta .byline{
      display: none;
    }

    .single .single-meta,
    .classic-alt .posted-on {
      text-decoration: none
      !important;
    }
  1. This will add “von Autor” (German for “by author name”) to the date
    .hentry .meta-post span.posted-on::after {
        content: " von Autor";
    }

    .hentry .single-meta span.posted-on::after {
        content: " von Autor";
    }
  1. Go to settings - general - then add this to the date format field:

\a\m j.m.Y

German for “on date”

So there’s one question left:

How do I remove all the hyperlinks from all the meta?

1 Like

this has been solved too via this code :

    .hentry .single-meta .posted-on {
      text-decoration: none;
      pointer-events: none;
      cursor: default;
    }
1 Like

Great!

Glad to hear you got it resolved yourself.

Regards,
Kharis