• So I’ve installed both the parent and child theme for Hueman. I understand where to place the code in the child theme for any customization, but what if my edits include removing code, not adding it? Especially if the files I need are not listed?

    Example
    In the child theme for Hueman, the files available to edit are content-featured.php, content.php, functions.php, inc/featured.php and style.css.

    But the files I need to edit are found in the parent theme, index.php and sidebar.php, not found in the child theme. AND, I need to remove code from them, not add.

    How would I best handle this? TIA

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    You can copy index.php and sidebar.php into child theme’s root folder, WordPress will load them from your child theme instead of parent theme.
    This is template overriding.

    You can edit your copy of index.php and sidebar.php in your child theme.

    But before every parent theme update, you should compare the difference between your parent theme ( index.php and sidebar.php ) with those in the new version update.
    Take note of the difference and decide if you need to include them in your child theme’s index.php and sidebar.php
    This will prevent any fatal error due to incompatible child theme.

    Thank you.

    Hi khowell8615.

    In the child theme for Hueman, the files available to edit are content-featured.php, content.php,

    Those aren’t normally included in a default child theme. Did you copy those from the parent theme to your child theme?

    Thread Starter khowell8615

    (@khowell8615)

    Hi and thanks for responding! I should have mentioned that. I did copy the files over to my child theme and succeeded in completely hosing my site. I can’t recall the exact error. So I went back into my cpanel, deleted the files I copied over, and was back in business, so I obviously screwed up something there.

    Denzel, how would I access the updated theme to compare files before actually updating?

    Hi khowell8615,

    You can manually download the latest copy from https://www.ads-software.com/themes/hueman/

    You can manually download older version by editing the download link with the version number.
    For example. https://downloads.www.ads-software.com/theme/hueman.1.5.5.zip

    To compare files on your desktop, you can use a diff tool such as https://sourcegear.com/diffmerge/

    Or you can use the diff tool in trac.
    Diff Tool in Trac

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hueman Parent/Child Themes – Editing’ is closed to new replies.