Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

CSS and JS don't loaded correctly when FoundationPress is used as a Child-Theme #1259

Closed
derweili opened this issue Mar 28, 2018 · 0 comments

Comments

@derweili
Copy link
Collaborator

How can this bug be reproduced?
When FoundationPress is used as a Child Theme instead of a parent theme, the css and js files don't get referenced correctly. This is caused by the use of the function get_template_directory_uri(). This function always loads the URL of the current active parent theme.

What did you expect to happen?
The CSS and JS files don't load correctly.

What happened instead?
CSS and JS files should load correctly

How can this be solved?
FoundationPress should use get_stylesheet_directory_uri() to load the css and js files instead of get_template_directory_uri().

Please List the Following:

  • OS & version: macOS 10.13.3
  • Node version (node -v) [Node v4+ is required] : v8.10.0
  • FoundationPress version (see line 3 in package.json): 2.10.4
  • Foundation version (found in node_modules/foundation-sites/package.json) : 6.4.3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants