Overriding theme's comment block
-
otoparkom
Could you try using the template tags instead:
http://wordpress.org/plugins/comment-popularity/faq/I suppose I should add those codes to my functions.php. It didn’t work.
You add the
add_actionsnippet to the functions.php file , yes.But the others go in your
comments.phptemplate at the appropriate place. You’ll need to replace thewp_list_commentsthat is already there.What theme are you using? Do you know how to make a child theme?
EDIT: Sorry, you already mentioned the theme. Is it a free theme available on the repository?
Nope, it’s a premium theme.
I appreciate your support but that’s too much work Paul. Can you fix this in the next versions? Or add a simple option for custom template users?
Thanks!
otoparkcom
Unfortunately, it’s impossible to make it integrate seamlessly with every theme available automatically.
Each theme’s HTML and CSS are different, so there’s always going to be some CSS tweaking to do.
Right now, the plugin adds no CSS at all, but I am considering adding maybe a custom CSS field for people who don’t know how to make a child theme or edit their theme’s CSS.That’s why you often see premium themes mention that their themes support styling for the most popular plugins such as Gravity Forms, Contact Form 7, etc…
I see. Can we handle this with a simple, one-time CSS code? Without directly modifying php files?
Sure. You should do a child theme:
If you have a premium theme, then they should have documentation and support on customizing the styles and creating a child theme.
Here are some resources that should help:http://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/
The topic ‘Overriding theme's comment block’ is closed to new replies.
(@otoparkcom)
11 years, 8 months ago
Hi there,
This is exactly the voting plugin I was lookin for, BUT;
That’s my theme’s (Newspaper) default commenting structure. And that’s after Comment Popularity is activated.
I’d like the plugin to add only those two arrows, not change the whole comment block back to default.
Thanks.
https://wordpress.org/plugins/comment-popularity/