Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1410254

    Itwebdevelopment
    Participant

    Hi, I’d like to style my login page:

    https://www.dzdrones.com/my-account/

    To look like this:

    https://codepen.io/boudra/pen/YXzLBN

    Is this possible?

    Thank you!!

    #1410655

    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    You can add this under Custom > CSS in the Customizer:

    .woocommerce {
        width: 25%;
        margin: 0 auto;
    }
    
    .woocommerce-account .button, .woocommerce-checkout .button {
        width: 100%;
        border: 0px solid rgba(0, 0, 0, 0.1);
        font-size: 18px;
    }

    Thanks.

    #1410736

    Itwebdevelopment
    Participant

    Hi this made all my woocommerce pages that screen width can I just make it so it happens on the login?

    #1410968

    Prasant Rai
    Moderator

    Hello There,

    Extremely sorry for the confusion, please use following CSS instead:

    .page-id-32 .woocommerce {
        width: 25%;
        margin: 0 auto;
    }
    
    .page-id-32 .woocommerce-account .button, .woocommerce-checkout .button {
        width: 100%;
        border: 0px solid rgba(0, 0, 0, 0.1);
        font-size: 18px;
    }

    Thanks.

    #1411729

    Itwebdevelopment
    Participant

    Hi this is effecting the internals once the user is logged in and the woocommerce widgets in the footer. Is there any way to fix this?

    #1412008

    Christopher
    Moderator

    Hi there,

    Please provide us with login credentials and screen shots so we can check the issue.

    Thanks.

    #1412305

    Itwebdevelopment
    Participant
    This reply has been marked as private.
    #1412961

    Rad
    Moderator

    Hi there,

    Please try this

    .page-id-32 .woocommerce form.login {
        width: 25%;
        margin: 0 auto;
    }
    
    .page-id-32 .woocommerce form.login .button, .woocommerce-checkout .button {
        width: 100%;
        border: 0px solid rgba(0, 0, 0, 0.1);
        font-size: 18px;
    }

    Thanks!

    #1413162

    Itwebdevelopment
    Participant

    Hi My login button is still aligned on the left. Can you help?

    #1413442

    Lely
    Moderator

    Hi There,

    See attached screenshot of what I am seeing at the moment. Login button is centered.
    The only left aligned is the Login text. To center that, please use this custom CSS:

    .woocommerce-account .woocommerce h2:first-child{
        text-align: center;
    }

    Hope this helps.