Remove URL form in Comments

Reports about issues that you encounter in Suffusion
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Remove URL form in Comments

Postby mshonhall » 09 May 2012, 12:28

I've been trying to figure out how to remove the URL form from the comments section of the blog, but, haven't had much luck.

The only way I've found, is to delete it in the comments.php file. And, I found that file in the Theme Editor.

I already have a child theme for our .css changes. How do I create a child theme for the comments.php file, so that my changes stick through the next update?

Thanks in advance for your help and advice!

Shon
mshonhall
 
Posts: 11
Joined: 09 May 2012, 11:44

Re: Remove URL form in Comments

Postby Colin » 09 May 2012, 12:46

Sayontan has written a starter kit for Child Themes you can get it from his blog. Good articles about child themes on Sayontan's blog and in the Wordpress Codex.
Colin
 
Posts: 2856
Joined: 27 Oct 2009, 10:46

Re: Remove URL form in Comments

Postby sayontan » 09 May 2012, 12:59

If you copy comments.php from the parent theme to a child theme, then delete the line there you should be fine.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10161
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Remove URL form in Comments

Postby mshonhall » 09 May 2012, 13:26

I have copied the comments.php file into my Child Theme directory, and deleted all uses of the URL on the page's code, but, it's still showing up.

What are the other instances that I need to remove it from?
mshonhall
 
Posts: 11
Joined: 09 May 2012, 11:44

Re: Remove URL form in Comments

Postby sayontan » 09 May 2012, 13:30

Can't really say without looking at your code.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10161
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Remove URL form in Comments

Postby mshonhall » 09 May 2012, 13:33

Well, I don't mind showing you my Child Theme comments.php page, at all!

But, I was asking if there's another page that has to have the URL form deleted from that I'm still missing?

Thank you sooo much for you help!
mshonhall
 
Posts: 11
Joined: 09 May 2012, 11:44

Re: Remove URL form in Comments

Postby mshonhall » 09 May 2012, 13:56

I've found it, also, in: wp-comments-post.php in the root directory of WordPress.

But, if I delete the code from here, it'll get overwritten upon the next update, correct?
mshonhall
 
Posts: 11
Joined: 09 May 2012, 11:44

Re: Remove URL form in Comments

Postby mshonhall » 09 May 2012, 14:20

OK... I deleted instances of the URL form in the WordPress file, and that DOES indeed remove it from the page as part of the form to fill out.

I guess my final question is, is there not a place to do that within the theme itself so that I can include it in my Child Theme and not have my changes overwritten upon the next WordPress update?

http://material-handling-blog.wh1.com
mshonhall
 
Posts: 11
Joined: 09 May 2012, 11:44

Re: Remove URL form in Comments

Postby sayontan » 09 May 2012, 15:50

The answer is, again, comments.php. The function that actually prints the form is comment_form, where you control the 'fields' element of the array. Note that if you delete the 'url' element WP will substitute its own. Insteat you should pass an empty string ("") for the URL
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10161
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Remove URL form in Comments

Postby mshonhall » 10 May 2012, 10:20

Thank you for your time.
mshonhall
 
Posts: 11
Joined: 09 May 2012, 11:44


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 3 guests