• 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

Viewing 1 replies (of 1 total)
  • Hi,

    You can only copy the template files in the theme customify folder such as header.php, footer.php, sidebar.php … and the folder template-parts to the child theme folder to override the template of the theme.

    To remove the archive prefix, please go to Appearance -> Customize -> Layouts -> Page Header -> Turn off Archive Prefix. See my screenshot https://share.getcloudapp.com/Z4uYDOzd.

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Alter how category title is displayed’ is closed to new replies.