• Resolved arnecasteleyn

    (@arnecasteleyn)


    Hi!

    i’m trying to center the log in form generated by Wp-Members. But i’m not succeeding.

    the website is: https://cms.aglaja.be/?page_id=1983

    i tried to upload my own css file with added code for the container, then tried the wrapper, then tried wp_memlogin but something seems to override this all…

    any suggestions?

    thanks in advance,
    Arne Casteleyn

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter arnecasteleyn

    (@arnecasteleyn)

    Thread Starter arnecasteleyn

    (@arnecasteleyn)

    i found this piece of code, but i have no idea where to put it… anyone can help me please?

    The simplest way to approach that would be to use the wpmem_login_form filter to return the WP login form using the wp_login_form function with echo turned off:

    add_filter( 'wpmem_login_form', function(){
    	return wp_login_form( array('echo'=>false) );
    });
    Thread Starter arnecasteleyn

    (@arnecasteleyn)

    ok, so i just used these shortcodes, it removed to login, made a simple button in my theme design and now it works like a charm! no hooks needed!

    cheers!

    [wp-members status="out"]
    2
    this content displays when a user is not logged in.
    3
    [/wp-members]

    and

    [wp-members status="in"]
    2
    this content can only be seen by logged in users.
    3
    [/wp-members]
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-Members] Log In Form’ is closed to new replies.