Hi all,
Really new to Sage here, so forgive me if this is a stupid question.
I’m using MAMP along with Sage. The server runs on localhost:3000 and MAMP on localhost:8888.
I need to compare image URL’s within Javascript to switch out some images. Long story short, whenever I reference get_template_directory_uri(); in the template it presents me with //localhost:3000. However when I reference it from functions.php, it includes the http:
I’m struggling to understand this issue, so if anyone could shed some light that would be amazing.
Thank you,
Danny