clarkwinkelmann
I'm not a theme developer, I'm the weakest code monkey at best.
Still keeping my fingers crossed, I was hoping to get a starting point through this thread.
So far, this is what I've managed, and I have no idea if this could be the way to go about it as it has multiple issues. One, it only works on the first site load. Two, it's retrieving aria-label attribute of the latest thread and applying it to all the threads instead of the same from their respective .DiscussionListItem-author.
`<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
var postAuthor = $('.DiscussionListItem-author').attr('aria-label');
var newSpan = $('<span>');
newSpan.text(postAuthor);
$(".item-terminalPost").append(newSpan);
});
</script>`
Any help please?