I'm reviewing a theme and I've found uses of get_template_part where I believe that locate_template is the proper item. Specifically the code below loads the custom stylesheet.<div><br></div><div><div><?php get_template_part('css/custom-css')?></div>
<div><br></div><div>It was my understanding that in this case we should use:</div><div><br></div><div><?php locate_template( array( '/css/custom-css.css' ), 1); ?></div><div><br></div><div>and that get_template part was to call a file in the same directory like loop-main.php. Is there established best practice and if so what is it? Is the use above an okay way to call a custom stylesheet in to the theme? If not what way is currently advised?</div>
<br>Curtis McHale<br>PH: 604.751.3482<br><a href="http://www.curtismchale.ca">http://www.curtismchale.ca</a><br>Linkedin: <a href="http://www.linkedin.com/in/curtismchale">http://www.linkedin.com/in/curtismchale</a><br>Twitter: <a href="http://twitter.com/curtismchale">twitter.com/curtismchale</a><br>
<br>
</div>