How to add custom text when class for each category is same , like if i want to add some text below .category-logo.aspect-image img it will add custom text to all categories , how to add unique text below each category image , i tried adding new class to each category and then added text with class::after it is working fine but it only shows after reloading page every time
Please try this code and tell me if it does what you want.
I suggest using IDs to identify categories, as their slug can change. IDs, however, will always stay the same.
You can add comments in your CSS to write down which category ID is related to which category name.
This is different page. I want to add text inside the category page 'like when you click on the General category on your forum and then you will see topics page where we have category image and description on the top. i am using air theme
I also added .category-heading in the selector to prevent subcategories from having the same text under their image, and removed the max-height from the image container because it may hide the text below the image.