[Resolved] Comment area fileds inline

Home Forums Support [Resolved] Comment area fileds inline

Home Forums Support Comment area fileds inline

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #511700
    Denis

    I want to put comment fields (author, email, url) inline.

    I’ve read this thread https://generatepress.com/forums/topic/modify-comment-area-layout/ but I don’t know how to apply the code to 3 fields.

    What’s the proper CSS to do this? Thanks.

    #512425
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Sorry for not getting back to you sooner!

    Adding this should be enough:

    @media (min-width: 769px) {
        .comment-form #author, 
        .comment-form #email {
            width: 48%;
            float: left;
        }
    
        .comment-form #email {
            float: right;
        }
    
        .comment-form #url {
            width: 100%;
        }
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #512479
    Denis

    Thanks for reply, however I asked how to put 3 fields on a single line, thanks

    #512573
    Tom
    Lead Developer
    Lead Developer

    Ah, try this:

    @media (min-width: 769px) {
        .comment-form #author, 
        .comment-form #email,
        .comment-form #url {
            width: 32.5%;
            float: left;
        }
    
        .comment-form #author {
            margin-right: 1%;
        }
    
        .comment-form #url {
            margin-left: 1%;
        }
    }
    #512587
    Denis

    That works but I want to add margins between fields
    Desired result looks like
    screenshot
    Thanks

    #513040
    Tom
    Lead Developer
    Lead Developer

    Just edited the code above ๐Ÿ™‚

    #513494
    Denis

    Thanks again!
    Almost perfect, apart of Google reCaptcha overlay

    #513513
    Tom
    Lead Developer
    Lead Developer

    Can you link me to that page?

    #513515
    Denis

    DELETED

    #513522
    Tom
    Lead Developer
    Lead Developer

    Try this:

    .g-recaptcha {
        clear: both;
    }
    #513526
    Denis

    That works! Thank you

    #513532
    Denis

    resolved

    #514074
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.