ThemeShaper Forums » Thematic


Modify Above Comments Form i.e., thematic_abovecommentsform

(3 posts)
  • Started 11 years ago by Pictrix
  • Latest reply from Pictrix
  • This topic is resolved


  1. Pictrix

    I want to modify the content of thematic_abovecommentsform. I tried

    function childtheme_abovecommentsform() {
    // 1. Copied content of thematic_abovecommentsform() from comments.php
    // 2. Removed unwanted html and added additional text
    add_action ('thematic_abovecommentsform','childtheme_abovecommentsform');

    I also tried substituting the last line with

    add_filter ('thematic_abovecommentsform','childtheme_abovecommentsform');

    In both instances I ended up with two versions of "Above Comments Form", the modified one first and the original below. Also, "Required fields are marked *" disappeared from the modified version.

    I tried removing the original version by using


    but it doesn't work.

    I will greatly appreciate any suggestions!

    Posted 11 years ago #
  2. Hi Pictrix,

    The thematic_abovecommentsform() is just an action hook. It doesn't output any code unless you hook into it. It's only there to provide a place at which to inject code into the comments template. If you want to change the markup beyound what filter hooks are provided then copy the whole comments.php into you child theme and edit the template.


    Posted 11 years ago #
  3. Pictrix

    Thanks Gene,
    I get it, that should be easy enough. Thanks so much!

    I should add that I always find all your responses to this forum very insightful and useful. You always makes things very easy and clear. Again, I appreciate your help very much!

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.