I want to display different text depending on the category/class that the code is embedded in i.e. when the class is .category-rabbitmq
This works in changing the background when the class is .category-rabbitmq
<style>
.category-rabbitmq
{
background-image: url('https://www.nastel.com/wp-content/uploads/2022/04/nastel_navigator_xpress.png') !important;
background-size: cover;
}
</style>
<themainbody>Read more about</themainbody><br>
This works in always displaying a variable
<style>
themainbody::after {
content: " RabbitMQ";
}
</style>
<themainbody>Read more about</themainbody><br>
However this doesn’t work in displaying the variable only when the category is set:
<style>
.category-rabbitmq
{
themainbody::after {
content: " RabbitMQ";
}
</style>
<themainbody>Read more about</themainbody><br>
Can you help?