Coudl Javascript in Post break Appearance?
-
2 things happened at nearly the same time, so I don’t know cause/affect.
Problem:
1) some, not all, text widgets went missing and/or relocated to the wrong sidebar
2) WP dashboard, Appearance indicates parent theme is missing.
3) WP dashboard, Appearance -> Customize seems to revert widgets/sidebars to broken state, after successfully re-edited.Changes:
1) auto install of WP 4.2.4
2) I added an inline reference to an external javascript to create a google map in a post, using as a guide:
https://codex.www.ads-software.com/Using_Javascript
added the following inside:
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false" type="text/javascript"> </script> <script src="/wp-content/uploads/scripts/contactMap.js" type="text/javascript"></script> <script type="text/javascript">// <![CDATA[ buildMap(); // ]]></script>
NOT CHANGED:
Theme or Child Theme.Questions:
1) Is using inline <script> for external javascript acceptable? I chose that method over wp_enque_script() because it was easier to understand. Externally, the page looks fine … now that I put the widget pieces back together.2) How do I fix the Parent theme status of missing in dashboard? I see the parent beside the active child theme in Appearance? Would a WP upgrade break parent theme? Would my javascript reference?
3) How do I get past the Appearance->Customize reverting my widgets/sidebars to a broken state?
Page in question: Contact-Us
Site has not gone live yet. Was supposed to do that yesterday when all this went wrong. I don’t want to push live until I know that I have a clean start. Please help. Thank you.
- The topic ‘Coudl Javascript in Post break Appearance?’ is closed to new replies.