Created
October 30, 2019 03:48
-
-
Save shrinkray/b186dbcd4f1430b2c5f93a6e21ce7bc9 to your computer and use it in GitHub Desktop.
Differences between site URL functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** Differences between site URL functions | |
| * | |
| * IMAGES | |
| * | |
| * bloginfo('template_directory'); Returns the wp-content url | |
| * This is the full URL https://[root-domain]/wp-content/themes/[theme-folder]/images/opt-in-2.png | |
| */ | |
| <img src="<?php bloginfo('template_directory'); ?>/images/opt-in-4.png" class="pbl"> | |
| /** | |
| * Returns site-url with path in theme | |
| * | |
| * LINKED SCRIPTS | |
| */ | |
| <script src="<?php echo get_site_url(); ?>/js/submit-root-form.js"></script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment