Hi @defdas2,
Try adding this PHP code to your child theme’s functions.
function sydney_child_archive_title() {
if (is_post_type_archive('employees')) {
echo '<h1>Employees</h1>';
}
if (is_post_type_archive('services')) {
echo '<h1>Services</h1>';
}
}
add_action('sydney_before_content', 'sydney_child_archive_title');
If you don’t have a child theme, to apply additional code to your site from dashboard, you can use Code Snippets plugin: https://ww.wp.xz.cn/plugins/search/code+snippets/
Hope this reply helps.
Hi Kharis. Thank you!
But without child theme, is different code? Deleting ‘child’ word?
function sydney_archive_title() { if (is_post_type_archive(’employees’)) { echo ‘<h1>Employees</h1>’; } if (is_post_type_archive(‘services’)) { echo ‘<h1>Services</h1>’; } } add_action(‘sydney_before_content’, ‘sydney_archive_title’);
Thanks again!