Black Friday Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] child theme customize comments template /inc/structure/comments.php

Home Forums Support child theme customize comments template /inc/structure/comments.php

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #458390
    maggew

    May you please share your tips and wisdom?

    ../themes/generatepress_child/inc/structure/comments.php

    So inside the comments.php (I duped from parent), I just tweaked some classes and layout than uploaded… no luck. When I upload file with changes, the updates are not live.

    GeneratePress 2.0.1
    GP Premium 1.5.6
    #458642
    Tom
    Lead Developer
    Lead Developer

    Instead of overwriting the entire file, just copy the function along with the function_exists wrapper.

    Then you can add that into your functions.php and make any necessary changes.

    #458654
    maggew

    🙂

    It works!! But of course you already knew that…

    I just excluded the part below and copied everything else, almost the entire file.

    Thanks pal!

    /**
     * Comment structure.
     *
     * @package GeneratePress
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    #458656
    Tom
    Lead Developer
    Lead Developer
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.