Site logo

Archived topic

child theme customize comments template /inc/structure/comments.php

3 replies · Started by Webmaster on December 28, 2017

Viewing posts 1–4 of 4

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.

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.

:)

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.
}

No problem! :)

This archived topic is closed to new replies.