1
Archive loop: "mark" current post
In archive loop module you can choose whether to show the current post or not. If shown, it would be great to style this item in a different way for usability reasons (e.g. change the text color etc. which says “this is the current post”). It would also be helpful if the module would add a css class or id so it could be styled with css.
Upvoters
1
Feature Details
Status:
Board: Divi Machine
Created: 18 July 2024
Last Updated: 18 July 2024
Posted By: gestaltung
Join the conversion, Login to Reply
gestaltung - 18 July 2024
Hi! Could you already check my suggestion? Thanks :)
Divi Engine - 18 July 2024
Hi.
Not sure what you mean by the “current post” - are you referring to showing posts on the single post page and you have the current one on there?
gestaltung - 18 July 2024
I try to explain it with screenshots 😉 I’m using an archive loop module to generate a list which looks like that:
The first entry, in this case “Feuerwehreinsätze und Abrechnungen …” is the “current post” according to the settings in the module:
Now what I want to achieve: This first entry should be styled different than the other entrys to indicate that at this moment the first post “Feuerwehreinsätze und Abrechnungen …”. is beeing shown. I thought it would be the easiest way to give the “current post” an extra css class:
So I should be able to style it with custom css.
Now I hope my request is more clear 🙂 Thanks in advance.
gestaltung - 18 July 2024
Hi,
did my explanation help to understand my request? :-)