5391 posts
  • Australia
  • Bought between 100 and 499 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 4-5 years
  • Interviewed on the Envato Notes blog
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
Australia says

Share your mini fixes …

Often I come across a problem, invoked by a third party or just a gremlin in the system. If you have any mini fixes, perhaps share them here.

My Mini Fix for Facebook return URI

When sharing something on Facebook, the return uri now adds

#_=_

to the url.

This is really annoying.

Fix for this is. In the head of your document add this.

<script type="text/javascript">
            if (window.location.hash == '#_=_'){
                history.replaceState 
                    ? history.replaceState(null, null, window.location.href.split('#')[0])
                    : window.location.hash = '';
            }
        </script>

Regards Ste

5391 posts
  • Australia
  • Bought between 100 and 499 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 4-5 years
  • Interviewed on the Envato Notes blog
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
Australia says

Fontawesome Tip

You may have experienced this issue, that when you render your page without www. or http://www. in it, that fontawesome icons do not display.

Fix : add this to your .htaccess
<FilesMatch "\.(ttf|otf|eot|woff)$">
  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*" 
  </IfModule>
</FilesMatch>
by
by
by
by
by
by