Viewing 7 replies - 1 through 7 (of 7 total)
  • That’s not a bug, it’s a feature. : )

    I think you can fix it by creating a child theme for whatever theme you want to use, then adding the following to a functions.php for the child theme:

    function mytheme_init() {
    	add_filter('comment_form_defaults','mytheme_comments_form_defaults');
    }
    add_action('after_setup_theme','mytheme_init');
    
    function mytheme_comments_form_defaults($default) {
    	unset($default['comment_notes_after']);
    	return $default;
    }

    (That’s compliments of Rev. Voodoo in this post.)

    Thread Starter tdchristian1968

    (@tdchristian1968)

    Thanks. I am new at this

    How about getting rid of it all together? I actually see a pluggin for a contact form that I like better. But, using that is actually double. I am using Online Marketer Theme and Mantra. But, I think this is not in the theme.

    I’m not familiar with that theme, but I believe what’s happening is that it is getting the code from a core file. If it can possibly be avoided, you should not alter the code in a core file because if you do, every time you upgrade WordPress your changes will be overwritten and you’ll have to re-do them. That makes maintaining the site a real pain; the ease of maintaining WordPress is one of its main attractions, so why mess with it?

    The solution to altering core files is to create a child theme and include the code to override the core code in its functions.php as I have suggested above. That way, you can upgrade WordPress–and your parent theme–and your code changes will not be overwritten.

    what theme?

    in some themes, you might be able to hide the ‘code’ by adding this to style.css:

    .form-allowed-tags { display: none; }

    Thread Starter tdchristian1968

    (@tdchristian1968)

    Thanks for the tips guys! I am trying both ideas

    @alchymyth, Its Online Marketer Theme and Mantra. I am working on 2 sites. I tried your idea and it works. Now what would remove it completely? The Contact Plugin is more alonmg the lines of what I need anyway.

    Thread Starter tdchristian1968

    (@tdchristian1968)

    @alchymyth in the online marketer theme it removes the extra mess fine for each new page as well. In the Mantra theme it removes the entire Leave Reply from my presentation page. But, subsequent pages still have Leave Reply with added comments still there.

    @linux in the mantra theme there is a place to add custom CSS. What part of the code you gave me can I add to eliminate the entire form? I am looking at how to create a child theme to try your other suggestion.

    Thread Starter tdchristian1968

    (@tdchristian1968)

    I got i just removed <?php comment_form(); ?> from comments.php

    Thanks for the help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress 3.5 unwanted code in Leave Reply’ is closed to new replies.