Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

Clicking login redirects to WordPress login page

This topic is resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Kalleshibg
    Participant
    • 18 Topics
    • 36 Posts
    @kalleshibg

    When a user tries to login it directs to WordPress login page but I need the user to get the login page created by login with Ajax. And I also get a black title bar on top with WordPress logo which I did not see in demo content. Next I want to create something like male subscribers can access only female members and viceversa. Finally a need an option so that a member gets the details of a other registered member of interest after getting approval from the member.

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @kalleshibg,

    Thank you for bring these issues to our attention. We’re glad to answer any question related with the setup/use of our theme.

    However, it very difficult for us to provide the best support possible and to keep track of issues and their resolution if you so many questions in the same topic.
    Moreover, it’s easier for us to share the resolution for a single issue with other members of our community facing the same problem.

    So, we will answer the first question in this topic. Can you please split the others into different topic?
    By doing this, you will be making a great contribution to this forum, and we thank you very much for that!

    1) If you wish to create your login page with Login With Ajax (https://wordpress.org/plugins/login-with-ajax/) like we do on our demos, please make sure this plugin is activated on your server and then, read the following tutorial to find how to setup an only login form page:

    Creating the Login Page

    Best regards,

    Kalleshibg
    Participant
    • 18 Topics
    • 36 Posts
    @kalleshibg

    Hi, I have created the login page referring the link attached and changed the login and logout menus url to show login page but every time I try to log in from any device it takes me to the WordPress login screen.

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @kalleshibg,

    To redirect all calls to the wp-login.php page to your Register/login page, please add the following code snippet to your website:

    function gwangi_custom_login_redirect(){
      global $pagenow;
      if( 'wp-login.php' == $pagenow ) {
        if ( isset( $_POST['wp-submit'] ) ||
          ( isset($_GET['action']) && $_GET['action']=='logout') ||
          ( isset($_GET['checkemail']) && $_GET['checkemail']=='confirm') ||
          ( isset($_GET['checkemail']) && $_GET['checkemail']=='registered') ) return;
        else wp_redirect(home_url('/login'));
        exit();
      }
    }
    add_action( 'init', 'gwangi_custom_login_redirect' );

    Don’t forget to replace the /login part by your login page name if you are not using the same.

    To add this code snippet to your site, we recommend that you use a the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:

    Adding Custom PHP Without Changing Your Child Theme

    We hope this will solve your issue. ?

    Best,

    Kalleshibg
    Participant
    • 18 Topics
    • 36 Posts
    @kalleshibg
    This reply has been marked as private.
    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @kalleshibg,

    To replace the link from the drop-down menu displayed to the logged-out users, simple go your Menu settings and edit the “User – Logged Out” menu. You can replace the “Login” link by your Login With AJAX page.

    To redirect all calls to the wp-login.php page to your Register/login page, please add the previously given code snippet to your website.

    We hope that it will solve your issue.

    Regards,

    Kalleshibg
    Participant
    • 18 Topics
    • 36 Posts
    @kalleshibg

    Perfect this works for me. Although I did not paste the code instead I deleted the login menu from logged out menu and recreated the login my linking to the ajax login page. works fine now , thanks.

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    You’re welcome. ?

    Best regards,

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Clicking login redirects to WordPress login page’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site