我需要listings_recently.php
文件的子副本才能对其进行更改。我需要将此文件包含在我的子主题中:/themes/listingeasy/core/widgets/listings_recently.php
据我所知,我需要告诉主题来寻找该文件。那是我的孩子的主题functions.php
做成的吗?
这是我的functions.php
:
get_template_part('get_stylesheet_directory() . "/core/widgets/listings"','recently');
get_template_part('get_stylesheet_directory() . "/core/widgets/listings_recently.php"');
两行都不行。
我该如何进行?这是文件夹架构:
themes
listingeasy
single.php
core
widgets
listing_recently.php
listingeasy-child
functions.php
single.php (I made changes here and its working)
core
widgets
listing_recently.php (Changes here aren't working)