Archive for Category: Web

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

mysql Putty Commands

Log onto mysql: mysql -p mysql -u root -p Create a database: mysql> create database ; Show all databases: mysql> show databases; Select database: mysql> use Show your database tables: mysql> show tables; Find database directory:...

Read More

Common WordPress Problem Fixes

Permalinks to ‘Postname’ cause Page Not Found To fix, find your Apache httpd.conf file. Look for the code: LoadModule rewrite_module modules / mod_rewrite.so If there a # (comment out) in front of the code above, remove the #. Save...

Read More