with reference to this link ( https://wpforo.com/community/how-to-and-troubleshooting/where-can-i-find-and-edit-the-file-with-login-register-links-on-the-js-popup/ ), how could I set the class by the second method. I could not understand properly. I have moved the file to my child theme directory. So, I think, there will be no update problem.
Hi @civilenggnotes,
The second method provided in the above link means that another way to change the login link is customizing the add_footer_html() function and make it work as you need.
Also please provide in detail what you want to change, provide the screenshot, and we will try to help you.
I want to add the css class for the ajex login model to popup every time the the login/register button is clicked. and also the add topic for non logged-in users. I have 3 screenshot. so I am attaching the google drive link. please have alook.
1. https://drive.google.com/open?id=1cgHsMj9QXWhKit7Nzu7G-1chEbERcTku
2. https://drive.google.com/open?id=1mJ5AJpckrSK3mciyWplgal_Dhv8By4oe
3. https://drive.google.com/open?id=15ycLSx2xsqDCR6N7SNZtJJ4Gbvu5Uj5J
means that another way to change the login link
I understand that. and my question is there. I found the following code in the class-template.php file.
public function add_footer_html(){ $this->dialog(); $this->spinner(); if( apply_filters( 'wpforo_message_bubble', true ) ) $this->msg_box(); if( WPF()->current_object['template'] === 'post' ) $this->report_form(); }
What to add/replace, I could not understand. If I only have to add the below code, above/below which line I should put? and I think it is for the login, so what about the registration?? and last question, do I have to change anything for logout option??
jQuery(document).ready(function(){
jQuery('#wpf-msg-box a[href$="?wpforo=signin"]').replaceWith('<span class="lrm-login">Login</span>');
});
Should i put this code below this line??
public function add_footer_html(){
Or above the ending bracket"}"??