ThemeShaper Forums » Thematic

[closed]

Modify Above Comments Form i.e., thematic_abovecommentsform

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

Tags:

  1. Pictrix
    Member

    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

    remove_action('thematic_abovecommentsform','thematic_abovecommentsform');
    }
    add_action('init','unhook_thematic_functions');

    but it doesn't work.

    I will greatly appreciate any suggestions!

    Posted 7 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.

    -Gene

    Posted 7 years ago #
  3. Pictrix
    Member

    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!
    Pictrix

    Posted 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.