Notifications
Clear all

Popup login

9 Posts
3 Users
0 Reactions
2,752 Views
(@pyue6299)
Member Customer
Joined: 6 years ago
Posts: 53
Topic starter  

I would like to see how can I make the login modal under the post area to be a pop-up window whenever I click it? Which file and how should I amend it?


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6147
 

Hi  pyue6299,

I'm sorry, but I don't follow you. Could you please explain using some screenshots. 


   
ReplyQuote
(@pyue6299)
Member Customer
Joined: 6 years ago
Posts: 53
Topic starter  
Posted by: Astghik

Hi  pyue6299,

I'm sorry, but I don't follow you. Could you please explain using some screenshots. 

Hi team

Please see the screen shot here: https://drive.google.com/open?id=1mZDmMrAind2U9OqBiTnJvcTr_0pRpIWP

The red bracket area is the login button under the post session in my wordpress site. I want this login button to be popped-up after a user click it.

Many thanks!

Patrick

 


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6147
 

Hi Patrick,

wpDiscuz uses WordPress native (core) https://developer.wordpress.org/reference/functions/wp_loginout /" target="true">wp_loginout function.  You need to use the following WordPress hook to do this customization:

 apply_filters( 'loginout', $link );

   
ReplyQuote
(@pyue6299)
Member Customer
Joined: 6 years ago
Posts: 53
Topic starter  

Thanks~

I am not good at adding filters, would please show me a little more detail on how to achieve this?


   
ReplyQuote
Arina
(@arina)
Support Team
Joined: 11 years ago
Posts: 101
 

Dear Patrick,

Please read this support topic it should help you:

https://gvectors.com/forum/how-to-and-troubleshooting/login-link/#post-8441


   
ReplyQuote
(@pyue6299)
Member Customer
Joined: 6 years ago
Posts: 53
Topic starter  

I just copy and paste the code in that topic, but it can't work?


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6147
 

Hi pyue6299,

I'm really sorry but we have no clue about this. It'd be better to ask some developer to do this customization for you.


   
ReplyQuote
(@pyue6299)
Member Customer
Joined: 6 years ago
Posts: 53
Topic starter  

I have made it work, thanks.


   
ReplyQuote
Share:
Scroll to top