Disable catalog image cropping by changing `$catimgheight` breaks child theme.
-
As Kadence Themes suggested here, I created a child theme based on Virtue so I could disable the hard-cropping of catalog images and have my changes persist across Virthue theme updates.
I copied the file
virtue/woocommerce/content-product_cat.php
tovirtue-child/woocommerce/content-product_cat.php
. I changed the line containing$catimgheight = 130;
to
$catimgheight = null;
As the WP Codex says, I also created the
style.css
andfunctions.php
files, with the minimal code they say is required.When I try to activate the child theme, I get the message: “The active theme is broken. Reverting to the default theme.”
Am I missing a step? Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Disable catalog image cropping by changing `$catimgheight` breaks child theme.’ is closed to new replies.