Alter how category title is displayed
-
Hi there, I created a childtheme version via plugin Child Theme of your theme, and wish to know how I can override one of your PHP files in the childtheme, so that my changes don’t get reset on theme update. I tried copying the folder structure and creating a copy of the file with my changes, but doesn’t seem to apply.
The file I have changed is inc/customizer/configs/page-header.php
I altered line 663: $args[‘title’] = get_the_archive_title();
To be: $catZXY = get_the_category();
$args[‘title’] = $catZXY[0]->cat_name; //get_the_archive_title();I did this so that I don’t get “Category:” to be printed out for my category headers.
Awaiting your reply, Thanks in advance. Best of Regards, Trekka12
- The topic ‘Alter how category title is displayed’ is closed to new replies.