Datumsanzeige aus JP Related Posts entfernen

  • [CODE]Hallo zusammen,

    ich habe in meinem Theme (Uku/Elmastudio) die Datumsanzeige mit folgendem CSS ausgeschaltet:

    CSS
    .entry-date {
      display:none !important;
    }


    Das funnktioniert auch alles. Nur wird das Datum immer noch unter den einzelnen Artikeln bei den "Realted Posts" von Jetpack ausgegeben. Hier mal ein Link zu einer Artikel, um das Ganze zu veranschaulichen:
    https://www.mojitopapers.de/craft-beer-festival-warschau/

    Ich habe folgendes CSS ausprobiert (bin da aber totaler Anfänger):

    Code
    .jp-relatedposts-post-date {
    display: none;

    Das funktioniert leider nicht. Kann mir da jemand weiterhelfen?

    Vielen Dank bereits an dieser Stelle für eure Hilfe!

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Wenn du das unter "[size=14]Das könnte dich auch interessieren[/SIZE]" meinst, versuche nachfolgendes in die Zusätzlichen CSS zu kopieren.

    Code
    .related-post-date {
      display: none;
    }

    Zu finden im Dashboard unter Design - Customizer - Zusätzliche CSS (bei sehr vielen Themes).

    nothing is as easy as it looks. --- Wenns gefällt - gibts dafür einen Button ;)
    Manchmal komme ich mir wie eine Suchmaschine vor ....:rolleyes:

  • Perfekt, das hat funktioniert, vielen Dank!
    Dort hatte ich auch bereits einen anderen Code, der die ganzen entry.-Eintragungen nicht anzeigt, wie Autor usw.
    Kaum ist ein Problem gelöst, kommt das nächste, jetzt hat er beim Bildupload den HTTP-Fehler, da muss ich erstmal im Forum suchen, was ich da machen kann, denn 1:1 das gleiche Foto hatte ich schonmal, also kann es nicht am Foto selbst liegen. Naja, für dieses Problem mit dem Datum bin ich hier fertig, danke an alle :)

    EDIT: Problem 2 auch gelöst: PHP aktualisiert - tadaaaa!

    2 Mal editiert, zuletzt von _Kultur_ (23. Dezember 2018 um 18:22)

  • If we add a filter we should, therefore, think about if we should add filters for the context / except / etc. Not sure if it's a good idea.
    $ defaults = array (
    'title' = '<span class = "jp-relatedposts-post-title">% 1 $ s </ span>',
    'date' = '<span class = "jp-relatedposts-post-date">% 2 $ s </ span>',
    'context' = '<span class = "jp-relatedposts-post-context">% 3 $ s </ span>',
    );

    wp_localize_script ('jetpack_related-posts', 'jetpack_relatedpostshtml', apply_filters ('jetpack_related_posts_default_html', $ defaults));

  • There, I have had every other code that does not show the whole entry. Entries, including author, and so forth.
    Hardly a problem is solved, the next comes, now he has the photo upload, the error is due to the first I have to do the discussion board, what I can do because 1: 1 the same picture I had school, so it can not be the photographer itself. Well, for this hassle with the dateboard,what I can do because 1: 1 the same picture I had school, so it can not be the photographer itself. Well, for this hassle with the date

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!