13 November 2021 at 9:39 pm #1590Mark AteerParticipant@mark::
Is it possible to change the default title text in the Divi Comments Module? I want to have a different title, replacing ‘Submit a Comment’ with various text according to the category of post.
I did find a plugin that could do this, but it doesn’t seem to play with Divi (Change Comment Form Title) and hasn’t been tested with last 3 versions of wordpress.
I also found CSS that can universally change the title text, but I can’t vary on each category of post.
I’m guessing I could give a class ID, but need a CSS expert to give me a steer with that, as I’ve tried several ways I thought might work and failed.
Any thoughts from this community?
13 November 2021 at 9:42 pm #1591Terry HaleKeymaster@mizagorn::
The <article> tag will have the category within its classes. For example, <article class=”category-recent category-viewpoint”>, where “recent” and “viewpoint” are post categories.
You can add specificity to your CSS by including the article class for each category before you change the text based on category.
- This reply was modified 10 months, 3 weeks ago by Terry Hale.
- You must be logged in to reply to this topic.