• Resolved Balleruaille

    (@balleruaille)


    Hi,

    Really like this plugin but I’m having one issue.

    On my website/blog I have checked the box for “Users must be logged in to post comments”. However, this means that when a guest user views a post on which comments are enabled, he or she see’s a link to log in above the comments which directs them to the default wordpress login page (wp-login). I want this link to activate WP Modal Login instead.

    How may I accomplish this?

    https://www.ads-software.com/extend/plugins/wp-modal-login/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Cole Geissinger

    (@brainfestation)

    Hi Balleruaille, While this will require some programming knowledge, I can provide a gist idea that can get you going in the right direction.

    You can modify the comments template in your theme and use the PHP script to add the modal login. Then you can use add_filter() to filter the URL redirect URL when a user logs in. The name of the function for the filter is ‘wpml_redirect_to’. FYI, this filter will be deprecated in the next release, but that’s a little way down the road.

    Good luck!

    Plugin Author Cole Geissinger

    (@brainfestation)

    For an example of how to use the filter visit my comment to a semi-related post – https://www.ads-software.com/support/topic/how-to-forward-to-certain-page-after-login?replies=3#post-4346361

    Micah.Hoffmann

    (@micahhoffmann)

    Hey I am also in need of help on this.

    I understand the filter and what not, I am just lost on where to add this code. I dont see anywhere in comment.php where I think this should go. Any help would be awesome, thanks.

    Great plugin by the way, I will be sure to donate.

    Plugin Author Cole Geissinger

    (@brainfestation)

    The code belongs anywhere in your themes functions.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I redirect log in link in the comments?’ is closed to new replies.