Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Comments, trackbacks & pings »

[SOLVED] Trying to insert a link into the comment form...

Old Aug 7, 2012, 11:20 AM
2 posts · Dec 2011
Hi All,

I've been browsing around here for quite some time since starting my website and this forum has been increadibly helpful. I've run into something though that is a bit above my skill level, as I no nothing about php coding.

I'm trying to add a small amount of text with a link to the comment form. My site is www.diyallday.com

From reading another post where someone was trying to do something similar it looks like the way to do it is by editing the comments.php file in this code:

PHP Code:
if ($bfa_ata['show_xhtml_tags'] == "Yes") {    
$comment_notes_after '
        <p class="thesetags clearfix">' 

sprintf(__('You can use %1$sthese HTML tags</a>','atahualpa'),
'<a class="xhtmltags" href="#" onclick="return false;">') . '</p>
        <div class="xhtml-tags"><p><code>' 
allowed_tags() . '
} else {
$comment_notes_after '';

I'm trying to add the text "Please review our Comment Rules" with "comment rules" linked to my comment rules page.

I want that sentence to appear immediatly before the sentence "you can use these html tags."

Also is it wise to update the code in the editor in wordpress or is there a better way to do it?

Any help is much appreciated.

Old Aug 7, 2012, 12:35 PM
juggledad's Avatar
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Change it to
HTML Code:
if ($bfa_ata['show_xhtml_tags'] == "Yes") {	
	$comment_notes_after = 'Please review our <a href="http://yourdomain.com/page-your-want-to-link-to2/">Comment Rules</a><br />
		<p class="thesetags clearfix">' . 
		sprintf(__('You can use %1$sthese HTML tags</a>','atahualpa'),
		'<a class="xhtmltags" href="#" onclick="return false;">') . '</p>
		<div class="xhtml-tags"><p><code>' . allowed_tags() . '
} else {
	$comment_notes_after = '';
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Aug 7, 2012, 01:07 PM
2 posts · Dec 2011
It works perfectly. Thank you so much!



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Website in comment form leads to author name as a link in the comment list --yeah--wow Comments, trackbacks & pings 2 Jun 2, 2011 08:34 PM
Problem with Comment Form Anchor Link adum Comments, trackbacks & pings 11 Dec 9, 2010 07:11 PM
How do I insert a "Leave a Comment" form after every post KimMaxwell Comments, trackbacks & pings 5 Aug 14, 2010 05:52 AM
Skip to Comment Form Link KenL Comments, trackbacks & pings 3 Mar 26, 2010 06:01 AM

All times are GMT -6. The time now is 10:44 PM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.