Creating custom post-listing templates in twentyseventeen child theme

You can use the Body Class Filter for this to adjust the classes being added to the body tag. add_filter(‘body_class’,’review_pages_classes’); function review_pages_classes($classes) { $classes[] = ‘blog’; return $classes; } Which classes you need to add or remove is probably a matter of trial and error, or looking at the stylesheets in more detail.

Why would adding a template file to a child theme cause an error in template-loader.php?

Your initial idea is correct, WordPress shouldn’t look for index.php if it finds category.php for a category archive. However, that may change if you don’t have file permission and ownership set properly, or if FileSystem cache is messing with file_exists() check. Follow these steps: Make sure your child theme files are readable by the web … Read more

Custom Taxonomy Theme file not routing correctly

The template isn’t determined by the URL, it’s taxonom-{taxonomy_slug}.php See here for the full template hierarchy: https://developer.wordpress.org/themes/basics/template-hierarchy/ And a visual representation: https://wphierarchy.com/ Final Note on Terminology There’s a difference between taxonomies and terms, and muddling the two words or always referring to them as taxonomies will get confusing very quickly. For example ‘accounts’ would be … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)