Is it possible to define the WordPress Permalink in functions.php using something like this:
<?php $permalink = the_permalink;?>
Where “the_permalink” uses the inbuilt WordPress function to get the permalink of the blog, and then use $permalink further down in functions.php for example, with an image URL: <img src="'.$permalink.'/images/image1.png'"/>
I just need to pull the Peramlink into functions.php for use further down in the file like in the example above. Either the_permalink or bloginfo('template_directory') would work great.
I figured this out myself. I ended up using the following link structure in my functions.php file