Forums

Some help with get_comment_author_link (1 post)

  1. Awipoefnka
    Member
    Posted 3 weeks ago #

    I'll explain this as best I can.

    The comment author link section on my comment form has onfocus and onblur events... see here-

    http://bit.ly/D1i3a

    In it's default state it displays "Website." When focused it changes to "http://" and when blurred it returns back to "Website."

    How do I make it so that if this input is skipped, and no website is entered, it returns only the author's name with no href?

    I only want there to be an href if something is actually added after the http://. If skipped, I would like an unlinked, author's name. The way I have it, I don't think this will ever be an empty form.

    Is editing the comment-template.php in the includes folder the only way to make this happen? I'd really rather not change wordpress's files and didn't know if there was a way to do this in my theme's functions.php.

    Thanks in advance.

Reply

You must log in to post.

About this Topic

Tags