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.

Join the conversion, Login to Reply


user-img gestaltung - 18 July 2024

Hi! Could you already check my suggestion? Thanks :)

user-img 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?

user-img 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.

user-img gestaltung - 18 July 2024

Hi,

did my explanation help to understand my request? :-)

Upvoters
1
Feature Details

Status: In Review

Board: Divi Machine

Created: 18 July 2024

Last Updated: 18 July 2024

Posted By: gestaltung

© 2024 Divi Engine