New Landing How can we help? Themeforest Theme Support Neighborhood can't override single-product.php?

Viewing 6 posts - 1 through 6 (of 6 total)
  • #86886
    airuck
    Member
    Post count: 36

    We have a child theme, and we need to tweak the span widths in the layout of single-product.php for the sidebar vs main content. It looks like we have to override the single-product.php template to do this, which is no problem.

    However, when I create a /woocommerce/single-product.php template, it doesn’t override neighborhood’s single-product.php. I know the template is in the correct location, because if I rename neighborhood’s single-product.php (e.g., single-product-TEST.php), the child theme single-product.php loads. For some reason on this file, the child theme file isn’t taking precedence. We have other templates replaced (e.g., checkout/form-coupon.php) which work fine.

    Running latest neighborhood 1.80 and latest wordpress version.

    #86909
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Why are you taking this file /woocommerce/single-product.php to edit side bar width ? Please take this file /neighborhood/single-product.php and paste it at child theme folder at /neighborhood-child/. Hope that should work and let me know.

    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

    #87120
    airuck
    Member
    Post count: 36

    Hi Mohammad,

    Thanks, that seems to be the problem. The single-product.php files are the same in both locations (one at /neighborhood, one at /neighborhood/woocommerce), and this code exists atop both:

    	 * Override this template by copying it to yourtheme/woocommerce/single-product.php
    	 *
    	 * @author 		WooThemes
    	 * @package 	WooCommerce/Templates
    	 * @version     1.6.4
    

    Are the two identical copies of single-product.php present in the current neighborhood 1.80 release? If not, can I get a zip file with the latest so I can update my local repository? I don’t want to have multiple copies, and in case I have old copies of other files, I’d like to correct the issue.

    If the files are both present in 1.80, can you pass along to the developer to remove one and to update the comment at the top to match the correct version and template override location?
    Thanks!

    #87153
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    Thanks for pointing that out – I’ve removed it from the main directory for the next update. Feel free to delete that file in your version.

    – Ed

    #87166
    airuck
    Member
    Post count: 36
    This reply has been marked as private.
    #87168
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    We glad that could your help.
    Thanks ๐Ÿ™‚
    With Best Regards
    Swift Ideas

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.