Forums

Trouble creating custom comment_form (5 posts)

  1. pundurbrother
    Member
    Posted 3 months ago #

    Hi, wordpress users. I am having hard time creating custom comment_form.
    I am using Novita theme and by default comment_form is called with function <?php comment_form(); ?> in comments.php file.

    As I am translating few text lines in other language and want to get rid of URL input box. I started searching and found there is a way to add filters to comment_form. You can see what I came with in my comments.php but unfortunately it doesn't work..
    * It's not showing comment_field (Input fields: author, email, url).
    * I can not get comment_notes_after to work in any way.
    * The same with comment_notes_before

    [Code moderated as per the Forum Rules. Please use the pastebin]

    http://inline.lv/jaunumi/?p=1

    It would be really nice if someone could guide me right direction.

    P.S. The only way I got it working was modifying wp-includes/comment-template.php but it wouldn't be best solution.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 months ago #

    I'm sorry but your chosen theme is not released under GPL. Non GPL products are not welcome in the WordPress community. Official WordPress policy states that all plugins and themes that are publicly released are required to adhere to http://wordpress.org/about/gpl/

    Any support requests for non-GPL products are usually ignored, in the interests of supporting the community and its freedoms.

  3. pundurbrother
    Member
    Posted 3 months ago #

    This is not related to theme. Code I pasted is not working in other themes that are under GPL.

    http://pastebin.com/embed_js.php?i=fk6FhmNs

  4. pundurbrother
    Member
    Posted 3 months ago #

    Thank you for help esmi..

    Is it possible to access and change field "Your email address will not be published. Required fields are marked *"?

  5. pundurbrother
    Member
    Posted 3 months ago #

    If someone has come to similar trouble here's the script that worked for me.

    http://pastebin.com/embed_js.php?i=vXsNx0Rv
    This replaces comment_form function if your theme's using it

    P.S. This is supposed to be support forum. And this is related to ANY theme no matter GPL or not. Shame.. ;)

Reply

You must log in to post.

About this Topic