Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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...


  #1  
Old Aug 7, 2012, 11:20 AM
deepskyblue
 
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() . '
        </code></p></div>'
;
} 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.

-deepskyblue
  #2  
Old Aug 7, 2012, 12:35 PM
juggledad's Avatar
juggledad
 
23,655 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() . '
		</code></p></div>';
} 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
  #3  
Old Aug 7, 2012, 01:07 PM
deepskyblue
 
2 posts · Dec 2011
It works perfectly. Thank you so much!

-deepskyblue

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 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 11:18 AM.


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