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


  #1  
Old Aug 7, 2012, 12:20 PM
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, 01:35 PM
juggledad's Avatar
juggledad
 
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() . '
		</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, 02:07 PM
deepskyblue
 
2 posts · Dec 2011
It works perfectly. Thank you so much!

-deepskyblue

Bookmarks



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 09:34 PM
Problem with Comment Form Anchor Link adum Comments, trackbacks & pings 11 Dec 9, 2010 08:11 PM
How do I insert a "Leave a Comment" form after every post KimMaxwell Comments, trackbacks & pings 5 Aug 14, 2010 06:52 AM
Skip to Comment Form Link KenL Comments, trackbacks & pings 3 Mar 26, 2010 07:01 AM


All times are GMT -6. The time now is 10:49 AM.


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