[Support request] Styling the comments section

Home Forums Support [Support request] Styling the comments section

Home Forums Support Styling the comments section

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1512204
    Baz

    Hi, I want to make some style changes to the comments section, using a child theme. Can you please tell me which file contains the comments CSS for the GP theme?

    Thanks.

    #1512616
    Leo
    Staff
    Customer Support

    Hi there,

    What kind of style are you after?

    The file in GP is the comments.php file:
    https://github.com/tomusborne/generatepress/blob/master/comments.php

    But the actual comment system is actually coming from WordPress itself.

    There might be filters you can use as well depending on what you want ๐Ÿ™‚

    #1512927
    Baz

    Hi Leo,

    I don’t need to make any PHP changes, just CSS, like adding a background color and border to the comments section and responses e.g.

    .comment-list article {
    	background-color: #eee;
    	border: 1px solid #333;
    	border-radius: 5px;
    	padding: 30px;
    }

    Just wondering if GP contained CSS for the comments section somewhere within the theme.

    Thanks.

    #1512970
    Leo
    Staff
    Customer Support

    You would just add the required CSS using one of these methods and overwrite what’s in the theme originally:
    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps ๐Ÿ™‚

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