Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed hardcoded path to theme #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

andrewheiss
Copy link

Hardcoded paths to the theme were causing images to not load when the WordPress installation was in a subdirectory. I replaced all instances of /wp-content/themes/pear/ with the with more dynamic get_template_directory_uri();

I also replaced the link to the home page in the logo with the more dynamic echo site_url();

Replaced it with more dynamic gett_template_directory_uri()
Replaced the hardcoded "/" in the logo with the more dynamic `echo
site_url();`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants