Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to Find the Correct Theme Path for Child Themes?


bpisimone
Participant

@bpisimone

For number one I tried this here,

echo '<link rel="stylesheet" type="text/css" href="' locate_template( array( 'custom-login/custom-login.css' ), true)'" />';

It gets me this error

PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /Users/(...)/Sites/wordpress.mu/wp-content/themes/bp-default/functions.php on line 7

For number two I have:

require_once locate_template( array( 'library/functions/theme_variables.php' ), true );

and I get this error:

PHP Warning: require_once(/Users/(...)/Sites/wordpress.mu/wp-content/themes/bp-default/library/functions/) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /Users/(...)/Sites/wordpress.mu/wp-includes/theme.php on line 843

Thanks a lot for more pointers in the right direction, it’s puzzling me for the whole day, unfortunately.

Skip to toolbar