Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey there lstephan,

    How are you doing today?

    This could be possible by using Membership 2 login widget and plugins such as this one https://wordpress.org/plugins/amr-shortcode-any-widget/installation/ that allows you to add shortcodes to your page content.

    You can use that and echo the same shortcode in your header and with some custom CSS you can achieve what you want. You should add something like this in your header.php (Ideally you’d want that added in your child theme header.php so you don’t lose the changes once you update the theme)

    <div class="mycustomlogin">
    <?php
    echo do_shortcode( '[do_widget_area]' );
    ?>
    </div>

    Hope this helps πŸ™‚

    Cheers,
    Bojan

    Thread Starter lstephan

    (@lstephan)

    Hi Bojan

    Thanks a lot i will try it.

    Have a nice day

    Thread Starter lstephan

    (@lstephan)

    Sorry Boran,

    I didnt really understand. I m not so good with wordpress πŸ˜‰

    I m using enfold theme and i can create

    Thanks a lot

    Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey again lstephan,

    Let me try to provide a bit more information, please do the following:

    1. You probably already did this, install the following plugin https://wordpress.org/plugins/amr-shortcode-any-widget/installation/

    2. Once you do that please go to Appearance -> Widgets and move Membership Login widget to Widgets for Shortcodes (this area is provided by the plugin above that allows us to display widget somewhere else like for example content of a page). See screenshot http://screencast.com/t/aN2Jnp2Qt.

    3. With this we have widget area prepared that we can display it where ever we want. Since you want it in header we’ll have to edit your theme header.php. Since Enfold is not a free theme it’s hard for me to give exact instructions on where to place the code I provided above, maybe you could post link to your site so I can try to suggest based on the HTML in your header?

    This is the code that you want to use there:

    <div class="mycustomlogin">
    <?php
    echo do_shortcode( '[do_widget_area]' );
    ?>
    </div>

    This should add it to your header, it will not be horizontal but we’ll be able to do that once you have it in your header with some custom CSS.

    Also you should consider using child theme and making this change in the header.php in your child theme so you can avoid losing changes once you update the theme.

    Best regards,
    Bojan

    Thread Starter lstephan

    (@lstephan)

    Many thanks Bojan,

    Here my website test url : http://footbrest.fr/sparfel

    Horizontal login form should be where you can see “AccΓ¨s membres” on the right top header.

    Thanks again

    Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey again lstephan,

    This will be a bit tricky as the top region is the header is pretty small but lets give it a shot.

    Open your theme header.php which should be in the root folder of your theme and and search for the div that has ID header_meta and place the code below the next container which should be the first div inside header_meta div, please see screenshot http://screencast.com/t/MdXfoz2jW.

    Let me know when you do that so we can try to place everything in one line with CSS.

    Cheers,
    Bojan

    Thread Starter lstephan

    (@lstephan)

    Wonderful, it works so i ve got the form on the right place. I ve done it on my local webserver.

    So i ve to modify that css in order to have horizontal display.

    Otherwise i could perharps done it the Uber mega menu.

    Many thanks Bojan, you re the best πŸ™‚

    Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey again lstephan,

    Awesome, glad that worked.

    If you want me to help with the CSS too I could do that but I’ll have to see it on your site first, so when you’re ready to push it to your live site let me know and I’ll be happy to help πŸ™‚

    Regarding Uber mega menu, I’m not really experienced with it so I can’t say for sure if that would be possible or not.

    Thanks for the kind words and have a great weekend πŸ™‚

    Cheers,
    Bojan

    Thread Starter lstephan

    (@lstephan)

    Hi Boran,

    I have modified my website on remote server : http://footbrest.fr/sparfel/

    So you could see now the login form at the right place, so i just have to modify css i think.

    Many thanks.

    Cheers.

    Lstephan

    Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey there Lstephan,

    This appears to require a bit more CSS then I originally thought it will, try adding the following CSS code in the style.css file of your child theme or if your theme doesn’t have custom CSS tab add it in your site using the following plugin:

    http://wordpress.org/plugins/simple-custom-css

    .mycustomlogin {
        width: 73%;
    }
    .mycustomlogin {
        float: left;
    }
    
    section#ms_widget_login-3 {
        padding: 0;
    }
    
    h3.widgettitle {
        display: none;
    }
    
    .form p {
        width: 130px;
        float: left;
        margin: 5px 5px 5px 0;
        max-height: 33px;
    }
    
    form#loginform {
        margin: 0;
    }
    
    p.login-remember.ms-field {
        display: none;
    }

    This should be the result http://screencast.com/t/cus3ZpTbFC.

    Hope this helps πŸ™‚

    Cheers,
    Bojan

    Thread Starter lstephan

    (@lstephan)

    Bojan,

    I m sure you re definitly the Best !

    It works fine.

    Big thank to you

    Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey Lstephan,

    Glad I could help and thank you for the kind words πŸ™‚

    Have a great day!

    Cheers,
    Bojan

    Thread Starter lstephan

    (@lstephan)

    Great day to you too

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Horizontal login form’ is closed to new replies.