Login Page

This topic contains 5 replies, has 2 voices, and was last updated by  Simone 8 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #38680

    hezekiah
    Buyer
    Post count: 115

    1) PLease how can I make geodirectory login page my site login page instead of wordpress login page.
    2) Is it also possible to add sidebar to this login page thanks.

    #38694

    Simone
    Expired Member
    Post count: 3515

    Hello, to change the default login page, use this code inside your functions.php in your child theme’s folder:

    
    
    add_action('init' , 'geodir_redirect_to_default_login') ;
    function geodir_redirect_to_default_login()
    {
    if(isset( $_REQUEST['geodir_signup']))
    {
      wp_redirect(home_url().'/login/');
      exit();
    }
    }

    have a look at the row

    wp_redirect(home_url().'/login/');

    and change /login/ to whatever is the login page you want to use

    #38716

    Simone
    Expired Member
    Post count: 3515

    1- I might have been misunderstood your question, are you seeing the WP login page somewhere? The only place I noticed the WP login page is when clicking on the activation link, after someone register to the website.

    2- There is no widget area for the login page however you can add this function (in functions.php inside your child theme folder)

    
    
    add_action('geodir_sidebar_signup_top','signuptext',10);
    		 
    		
    		function signuptext() {
    		
    		
    
    		echo "text here";	
    			}

    where it says

    echo "text here";

    you can replace with your own text or eventually output a widget/shortcode

    reference for how to add a shortcode here https://codex.wordpress.org/Function_Reference/do_shortcode
    or a widget here
    http://codex.wordpress.org/Function_Reference/the_widget

    #38730

    hezekiah
    Buyer
    Post count: 115

    thanks for the reply.
    1) when users click login they are directed to wp-login.php. However I want them to be directed to geodirectory login page. Nonetheless, hope this will not stop the admin from login in to wp dashboard.
    2) regarding the sidebar, i want to place a sidebar in the geodirectoty login page.

    #38778

    hezekiah
    Buyer
    Post count: 115

    thanks for the reply.
    1) when users click login they are directed to wp-login.php. However I want them to be directed to geodirectory login page. Nonetheless, hope this will not stop the admin from login in to wp dashboard.
    2) regarding the sidebar, i want to place a sidebar in the geodirectoty login page.
    thank you. hope to hear from you.

    #38811

    Simone
    Expired Member
    Post count: 3515

    1- this is happening because of your theme. Your theme has the login page set to the wordpress login page. I think you can edit it somewhere in the theme settings, or in Appareances/menu. You can edit and link it to /?geodir_signup=true

    2- this will require some custom modifications

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket