- This topic has 19 replies, 5 voices, and was last updated 2 years, 9 months ago by Leo.
-
AuthorPosts
-
July 22, 2021 at 1:08 pm #1866972Sourabh
HI,
how to edit this text from the comment section –
Save my name, email, and website in this browser for the next time I comment & Leave a Comment text??
And in the comment section Name and email fields are in two-row, so let me know can we set the same in one row instead of two (Like snapshot).
July 22, 2021 at 1:39 pm #1866994LeoStaffCustomer SupportHi there,
This is coming from WordPress. Take a look at this article:
https://www.webfulcreations.com/remove-or-edit-save-my-name-email-and-website-in-this-browser-for-the-next-time-i-comment/Hope this helps.
July 22, 2021 at 1:54 pm #1867010SourabhSeems fine, What about the second query ??
And in the comment section Name and email fields are in two-row, so let me know can we set the same in one row instead of two (Like snapshot). In Desktop version only..
July 22, 2021 at 2:11 pm #1867019YingStaffCustomer SupportGive this CSS a try:
@media (min-width: 1025px) { .single-post form#commentform { display: flex; flex-wrap: wrap; } .single-post p.comment-form-comment, .single-post .comment-form-cookies-consent { width: 100%; } .single-post input#email { margin-left: 20px; } }
July 22, 2021 at 10:16 pm #1867242SourabhIt’s not working… nothing changes on the desktop, however destroying the mobile version even.
July 23, 2021 at 1:00 am #1867365ElvinStaffCustomer SupportHi there,
Ying’s CSS should’ve worked to some extent.
You can try this:
@media (min-width: 1025px) { .single-post form#commentform { display: flex; flex-wrap: wrap; } .single-post p.comment-form-comment, .single-post .comment-form-cookies-consent { width: 100%; } .single-post input#email { margin-left: 10px; } input#author, input#email { flex: 1 1 auto; } } @media (max-width: 1024px) { .single-post form#commentform { display: flex; flex-direction: column; } .single-post input#email { margin-left: 0px; } input#author, input#email { flex: 1 1 100%; } }
Here’s the CSS being tested on your site –
July 23, 2021 at 3:07 am #1867472SourabhUnfortunately, it’s just a fixed-mobile issue, but no change in desktop (Snapshot attached).
July 23, 2021 at 4:33 am #1867577DavidStaffCustomer SupportAll of those methods should work.
But the only CSS you should require is this which will inline the two fields on Desktop only:@media(min-width: 768px) { .comment-form { display: flex; flex-wrap: wrap; } .comment-form>* { flex: 1 0 100%; } .comment-form #author, .comment-form #email { flex: 1 0 calc(50% - 5px); } .comment-form #author { margin-right: 10px; } }
If its not working then its probably because you have added it after some CSS that is broken, eg. a missing
}
on a media query. Add the CSS to very top of your CSS to test it and eliminate the chance you have added it inside another media query.July 23, 2021 at 5:28 am #1867639SourabhBut the only CSS you should require is this which will inline the two fields on Desktop only:
Sorry, I forgot to mention the tab version also, Lol (My Fault Sorry), Only the mobile version can have two lines due to the small screen size.
Yes, you are correct its don’t work, might be due to some broken CSS (because when posted on top, it seems fine), I have fixed broken CSS, and it’s working fine (but not for tab version).
How to apply it on the tab also??
July 23, 2021 at 9:51 am #1868194DavidStaffCustomer SupportDepends what code you have used.
The Media Query is what defines the size screen it appears on.
In my code i had this:@media(min-width: 768px)
Which means it will apply to Tablets and Destkop.
July 23, 2021 at 12:40 pm #1868417SourabhI am using given by you, I trust you since starting…and always…
Anyways, Leo gave me this link above –
I made the changes accordingly and working, Only thing that was not found in para to change the first text which was “Leave a Comment” (More in the snapshot), which line I should edit for this text???
July 23, 2021 at 3:17 pm #1868515LeoStaffCustomer SupportTry this filter:
https://docs.generatepress.com/article/generate_leave_comment/July 24, 2021 at 3:03 am #1868832SourabhIt’s fine but size issues are visible as this becomes normal heading in the tab and mobile version , how to fix it??
checked through browser tool and seems it’s due to this CSS –
@media (max-width: 768px)
body.single h3 {
font-size: 16px;
}but if I change it another part will affect so how to make the size big for a specific title ??
July 24, 2021 at 5:30 am #1868961DavidStaffCustomer SupportThe comments title has its own class of
comments-title
So you can target that class specifically:.comments-title { font-size: 20px; }
But – you have this CSS:
@media (max-width: 768px) { body.single h2 { font-size: 22px !important; } body.single h3 { font-size: 16px !important; } }
So you will need to make the comments-title more specific ie.
body.single h3.comments-title { font-size: 20px !important; }
July 24, 2021 at 6:13 am #1869006SourabhNOt working, refer to (snapshot).
-
AuthorPosts
- You must be logged in to reply to this topic.