How to add extra input fields to CPT’s comment form?

If you have already found the filter inside the comment_form function, you are quite close. There is a filter called comment_form_default_fields which allows you to add extra input fields to the array of fields, which normally holds name, mail address and url. You use it like this (in your theme’s functions.php): add_filter (‘comment_form_default_fields’,’wpse270550_add_field’); function wpse270550_add_field … Read more

Sharing common functionality (functions, template parts) between plugins and themes?

The important thing is to make plugin and theme completely functional on their own. Let’s take a look at Codex definition of both theme and plugin: WordPress plugins allow you to easily modify, customize, and enhance a WordPress site. WordPress Themes are files that work together to create the design and functionality of a WordPress … Read more

How to Edit the style of header title of Twenty Eleven Theme?

The CSS rule that is setting the color of the site title, which you referred to being on line #58 of index.php (which is actually shown as line #60 in your screenshot), I think, is generated from the WordPress customizer – Appearance -> Customize from within your admin area. The Chrome element inspector isn’t referring … Read more