Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #788378

    Hallo Kriesi Team,

    Ich benutze an zwei verschiedenen Stellen auf der Website die Funktion “Blog Beiträge” aus dem Avia. Anhand der Kategorien kann ich entsprechend entscheiden, ob es sich um eine News oder um ein Produkt handelt. Im ersten Fall ist es eine News Übersicht, dort benötige ich bspw. das Datum. Im anderen Fall ist es eine Produktübersicht und dort benötige ich kein Datum.

    Kann ich evtl. anhand einer benutzerdefinierten CSS Klasse das Datum jeweils “ein- bzw. ausschalten”? Welche Lösung würdet ihr wählen?

    Gruß
    Dennis

    #789047

    Hello Dennis,

    Can you please give us a link to the page in question so we can take a closer look?

    Best regards,
    Sarah

    #790060

    Sure

    #790073

    Hi Dennis,

    Thank you for the links. If Catalog is the only page where you don’t want the date, you can use this in the Quick CSS section under Enfold > General Styling.

    .page-id-401 .post-meta-infos .date-container {display:none;}

    .page-id-401 is the unique class of the page that you gave. You will be able to see it in the body tag of the page. :) If you want to do the same thing for Catalog blog posts in another page, you can get the unique class of the page and follow the code above.

    Or, you can use something like this:

    article.category---2 .post-meta-infos .date-container { display:none; }

    Please let us know if you need additional help.

    Best regards,
    Sarah

    #790084

    Hi Sarah,

    In fact it is the other way around. I probably never need the date, except on the news page!

    How can I realize that?

    Thank
    Dennis

    #790087

    I see! Thank you for clarifying. Okay, let’s change the solution. :)

    Please use this instead:

    .post-meta-infos .date-container {display:none;}
    .page-id-480 .date-container {display: inline !important;}

    The first line removes the date for the whole site. The second line makes sure that the date appears on the news page only.

    Best regards,
    Sarah

    #790089

    Works fine so far. Thank you, Sarah!

    Good hint with the ID!

    Have a nice day!

    #790094

    You’re welcome, Dennis!

    If you have any other questions, feel free to post them here on the forum and we will gladly try to help you.

    Have a great day, and thank you for using Enfold.

    Sarah

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Meta Infos in Blog Beiträgen individuell entfernen’ is closed to new replies.