Login widget in header

Discussion in 'Setting-up protection' started by neild1, Apr 4, 2016.

Thread Status:
Not open for further replies.
  1. neild1

    neild1 New Member

    Joined:
    Jan 15, 2009
    Messages:
    21
    Hi

    I would prefer to use the Login Widget in the header of my site, rather than in a sidebar.

    Currently the widget is displaying the information in a stack with the boxes extending across the full width of the header:

    Login
    [_______________________________________]
    Password
    [_______________________________________]
    [Login button]

    Which file do I need to edit please to remove the linebreaks so as to get a linear display likte this:

    Login [__________] Password [___________] [Login button]

    Many thanks
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    You can remove it in file
    wp-content/plugins/amember4/views/widget_login_form.phtml
  3. neild1

    neild1 New Member

    Joined:
    Jan 15, 2009
    Messages:
    21
    Thanks.

    Unfortunately it made no difference, so I'll have to have a rethink.
  4. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Don't forget to delete browser cache as you might still be viewing old version of the page.
  5. neild1

    neild1 New Member

    Joined:
    Jan 15, 2009
    Messages:
    21
    You had my hopes raised for a moment, but alas, no joy.

    Removing the linebreaks and paragraphs didn't do the trick as I had thought - it's been a few years since I've got my hands dirty with code so I am a bit ring rusty and am probably missing something blindingly obvious.

    Does anyone have any suggestions how I can achieve the linear layout described above please? My site is a full width page on the home page so the option of placing the login widget in the sidebar is a non-starter. But displaying full width login boxes when placed in the header is also not an option...
  6. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Can you post up site address so can see the actual page?
  7. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    I guess it is matter of some CSS rules eg:
    Code:
    #loginform {
        overflow:hidden;
    }
    #loginform label,
    #loginform input {
        float:left;
    }
  8. neild1

    neild1 New Member

    Joined:
    Jan 15, 2009
    Messages:
    21
    Sorry for not getting back...

    I abandoned the idea once I discovered that the theme I am using has a pop-up WP login lightbox which was very easy to edit using the details from widget_login_form.phtml.
Thread Status:
Not open for further replies.

Share This Page