CSS Fonts missing – No Access-Control-Allow-Origin header

If you have encounter this error:

Font from origin ‘http://mydomain.com’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://myanotherdomain.com’ is therefore not allowed access.

Insert this code to the .htaccess file of ‘http://mydomain.com’ to fix the issue.
[php]
<IfModule mod_headers.c>
<FilesMatch "\.(svg|ttf|otf|eot|woff|woff2)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
[/php]

How to separate images & iaragraphs

Stop images getting wrapped up in paragraph tags when they get dumped out with
simply add this on functions.php

[php]
// Stop images getting wrapped up in p tags when they get dumped out with the_content() for easier theme styling
function wpfme_remove_img_ptags($content){
return preg_replace(‘/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(\/a>)?\s*<\/p>/iU’, ‘\1\2\3’, $content);
}
add_filter(‘the_content’, ‘wpfme_remove_img_ptags’);
[/php]