WordPress PHP Codes

Meta Tags Codes These are php codes you can insert in your post page templates to show Meta information <?php the_author_posts_link(); ?>  – This will display Author’s link <?php the_time('F jS, Y'); ?> – Adds the published time of...

Read More

Useful JS Libraries

Graphs Chart.js – https://www.chartjs.org/ Vis.js – http://visjs.org/ 3D.js – https://d3js.org/ WebGL Pixi.js – http://www.pixijs.com/ Directories Jquery File Tree – https://www.abeautifulsite.net/jquery-file-tree dim noExt, noExtResult ' ASP remove file extension noExt = InStrRev(i__Name, ".", -1, 1) If ( noExt > ) then noExtResult = Mid(i__Name, 1, noExt - 1) End If i__Ext = LCase(Mid(i__Name, InStrRev(i__Name, ".",

Read More

Pixels to REM, REM to pixels calculator

Here’s a simple pixel to rem, rem to pixel calculator using ReactJs. How to use it? In most cases, 2018 and after, 16px is the norm for default pixel sizes. Just type in the pixel in the px field...

Read More

Auto Redirect to another page

Here’s are the simplest ways to auto redirect from one webpage to another. META Refresh meta http-equiv="refresh" content="0;url=YOUR-URL.COM" Javascript // will overwrite history window.location.replace('YOUR-URL.COM'); // will add to history window.location.assign('YOUR-URL.COM'); Jquery $(location).attr('href', 'YOUR-URL.COM')

Read More

Simple DIY Web Stats

Now, there’s a lot of web stats 3rd party plugins out there. Google analytics is awesome tool to keep track of your web stats. Statcounter is another tool to keep track of site. However all those information are kept...

Read More

Fix WordPress CORS Policy

I’ve had this error come up. “… has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.” To fix it, add this code to your .htaccess file: <FilesMatch ".(php|ttf|ttc|otf|eot|woff|woff2|font.css)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin...

Read More