conditional code in functions.php
-
I modified the functions.php file to change the comment title from “Leave a Reply” to “Submit your contribution.” Is it possible to add conditional code so that different pages can have different comment titles? The code I added is:
function comment_reform ($arg) { $arg['title_reply'] = __('Please submit your contribution:'); return $arg; } add_filter('comment_form_defaults','comment_reform');
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘conditional code in functions.php’ is closed to new replies.