Viewing 7 replies - 1 through 7 (of 7 total)
  • You are right and hopefully the theme author will correct that issue on the next version. Unfortunately it should have been picked up during the theme review process but wasn’t. Most likely the theme author will see this ticket but I have added a comment in the them trac as well just in case

    I’d argue that this isn’t a bug but a deliberate design decision. By using get_stylesheet_directory_uri(). the theme’s developers of offering the greatest possible child theme flexibility – including an option for people to use custom .js scripts. All you need to do initially is place a copy of the js folder in your child theme.,

    Hi Esmi sorry to differ on this but this is a requirement as far as I know nothing has changed. Here is an example reviere from Chip

    Required
    When referencing (such as for enqueueing) resources (e.g. scripts, stylesheets, etc.), use get_template_directory()/get_template_directory_uri() instead of get_stylesheet_directory()/get_stylesheet_directory_uri(). The latter will break in a Child Theme.

    https://themes.trac.www.ads-software.com/ticket/17607#comment:10

    Here is the relevant guideline

    Themes are required to include functional and resource files in a manner that facilitates the use of Child Themes:
    – Use get_template_directory_uri() to include functional files, or resources that are not intended to be included in/over-ridden the Child Theme.
    – Use get_stylesheet_directory_uri() to include resources that are intended to be included in/over-ridden by the Child Theme.

    https://make.www.ads-software.com/themes/guidelines/guidelines-template-tags-and-hooks/

    Use get_template_directory_uri() to include functional files, or resources that are not intended to be included in/over-ridden the Child Theme.

    [Italics are mine]

    Seems to me that the moot point here is the intention of the theme developer. If this was a deliberate design decision, than it wouldn’t be bug. Wouldn’t be the first time Chip & I have disagreed. ??

    ?? Fair enough and not necessarily a bug but if the child theme breaks at it’s most basic then that is wrong after all we always advice users to create child themes. A user should just create a basic child theme rather than have to fix such issues

    If the user then wants to include their own script libraries they can always dequeue the parent them files and enqueue their one version… just my 2c’s

    Theme Author Template Express

    (@danstriker)

    OK thanks guys – I will change this for the update

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘404 Errors When Using Child Theme’ is closed to new replies.