December 29, 201213 yr Hi there, I am new to Wordpress and am currently customising a theme I've bought from Themeforest for my new business, and not really knowing Wordpress I can't diagnose and fix problems yet so I hoped you could help. Using Chrome Developer Tools I am getting 8 errors and 1 warning, those being: OPTIONS http://s.gravatar.com/css/hovercard.css?ver=2012Decaa 405 (Method Not Allowed) XMLHttpRequest cannot load http://s.gravatar.com/css/hovercard.css?ver=2012Decaa. Origin http://snowtrippin.co.uk is not allowed by Access-Control-Allow-Origin. OPTIONS http://s.gravatar.com/css/services.css?ver=2012Decaa 405 (Method Not Allowed) XMLHttpRequest cannot load http://s.gravatar.com/css/services.css?ver=2012Decaa. Origin http://snowtrippin.co.uk is not allowed by Access-Control-Allow-Origin. XMLHttpRequest cannot load http://s0.wp.com/wp-content/mu-plugins/notes/admin-bar-rest.css?ver=2.0.4-201252. Origin http://snowtrippin.co.uk is not allowed by Access-Control-Allow-Origin. XMLHttpRequest cannot load http://s0.wp.com/i/noticons/noticons.css?ver=2.0.4-201252. Origin http://snowtrippin.co.uk is not allowed by Access-Control-Allow-Origin. Resource interpreted as Image but transferred with MIME type text/html: "http://snowtrippin.co.uk/". GET http://snowtrippin.co.uk/-webkit-linear-gradient(bottom,%20rgb(149,%20149,%20149,%20rgb(74,%2074,%2074)) 404 (Not Found) GET http://snowtrippin.co.uk/-webkit-linear-gradient(bottom,%20rgb(55,%2055,%2055%200px,%20rgb(70,%2070,%2070)%205px) 404 (Not Found) Also, using the W3c validator I am getting stray </p> tags all over the place and I don't know how to remove them! Any insight you guys can offer would be gratefully recieved! Cheers, Paul. snowtrippin(dot)co(dot)uk
December 30, 201213 yr Also, using the W3c validator I am getting stray </p> tags all over the place and I don't know how to remove them! One idea that might help you with the p tag issue. WordPress has a tendency to wrap rendered shortcodes in <p> tags. See http://codex.wordpress.org/Function_Reference/wpautop The answer is to delay the running of the wpautop until after WP has processed the short codes. We use a customised version of this function; http://www.viper007bond.com/tag/wpautop/ Your other issues with loading resources could be a cross-domain permission problem. Hope this helps, Have a good new year! Rich
December 31, 201213 yr I think the issue is with a plugin that you have installed. becuase you cant use XMLHttpRequest on cross domains. you need to use JSONP to get rid of the XML error
Create an account or sign in to comment