Override templates
-
Hi Greg,
struggling a little with adding your mod for overiding templates as seen here: https://wpadverts.com/doc/child-themes-and-templates/Looks like others have experienced the exact same issue here: https://wordpress.org/support/topic/override-templates-9/
My conditions and results are the same as Sergey (@sergey561).Was there a resolve for this?
Trying to mod the list.php file. My changes are reflected perfectly in the default location: wpadverts/templates/list.php. When applying the mod I don’t see any changes.
As you suggested, I did a little debugging by adding “function override_templates( $tpl ) { echo “OK.”;” to the overides-template.php and indeed I saw “OK” in the search form. Looks like the file is not being pulled.
Pasting the function directly in the child-theme functions.php crashed the site!
Should have worked in there also right?Any pointers?
FTP showing file location at: /public_html/wp-content/themes/my-theme/wpadverts/list.phpRegards
The topic ‘Override templates’ is closed to new replies.