By defmc
Ive (seemingly) successfully installed Wordpress on LEMP (16.04). Everything looks ok, until I test out my template (which works fine locally btw.)
When im on any page, my jquery resources are loaded as they should, but as soon as i switch to a post, my scripts arent loaded. Specifically; my .js-files located in the template folder dont show up in chrome devtools. So the template is broken, obviously.
Also, when im on any page, im logged in as admin in wordpress, but as soon as I switch to a post, im no longer logged in (wordpress-admin-bar disappears).
Does this makes sense to anyone? Im sure ive messed up some config along the way, but I have no idea where to begin looking. Any help appreciated :)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Try switching theme to the default 2017 theme. If it works there, then the problem is in your theme. Otherwise disable all plugins and test again.
Heres me switching from a sample-page to a sample-post. See how the bar up top disappears. And im not able to open my js-menu either.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.