Hi, I need to add a CSS class to the first quote in posts.
any idea? , thank you!
colours.css
file in your style and edit to suit your needs.Code: Select all
.post blockquote:first-child {
background: red;
}
Code: Select all
[quote=Topic by Marc, Thu Aug 29, 2024 on phpBB.com]
...(...)... We are pleased to announce the release of phpBB 3.3.13 “Bertie & Ted”. This version is a maintenance release of the 3.3.x branch which introduces a number of improvements aimed at enhancing the user experience and overall stability of the software and resolves some issues noticed in previous releases.
...(...)...
Quotation source: https://www.phpbb.com/community/viewtopic.php?t=2656048[/quote]
I am probably mistaken about your aim ...Topic by Marc, Thu Aug 29, 2024 on phpBB.com wrote: ...(...)... We are pleased to announce the release of phpBB 3.3.13 “Bertie & Ted”. This version is a maintenance release of the 3.3.x branch which introduces a number of improvements aimed at enhancing the user experience and overall stability of the software and resolves some issues noticed in previous releases.
...(...)...
Quotation source: viewtopic.php?t=2656048
That's because that code is used to render each individual quote for both the top level quote and any subsequent quotes nested inside it as it repeats down the list of nested quotes. You won't be able to add a class to the first quote via code due to how it's structured.edu81 wrote: Tue Nov 12, 2024 10:37 am Yes, your code works, but I need to do it adding a class into the <blockquote> tag.
I tried to edit bbcode.html, but if I add a class on line 15, it's repeats in all blockquotes.
unnamed.png
Thank you!
Code: Select all
.post .content > blockquote:first-of-type {
background: red;
}