- 
		AuthorPosts
 - 
		
			
				
May 5, 2017 at 1:49 pm #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ß
DennisMay 7, 2017 at 8:10 am #789047Hello Dennis,
Can you please give us a link to the page in question so we can take a closer look?
Best regards,
SarahMay 9, 2017 at 8:14 am #790060Sure
May 9, 2017 at 8:43 am #790073Hi 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-401is 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,
SarahMay 9, 2017 at 9:07 am #790084Hi 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
DennisMay 9, 2017 at 9:15 am #790087I 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,
SarahMay 9, 2017 at 9:19 am #790089Works fine so far. Thank you, Sarah!
Good hint with the ID!
Have a nice day!
May 9, 2017 at 9:27 am #790094You’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
 - 
		AuthorPosts
 
- The topic ‘Meta Infos in Blog Beiträgen individuell entfernen’ is closed to new replies.
 
