Category: Developers Diary

These are notes I leave to myself about code and implementation.

Developers Diary

Free Site Scan

My coworker Richard showed me this: https://sitecheck.sucuri.net/ Free website

Developers Diary

Simple Framework, Lots of Schema

I like the simple design, and how the slider features smaller images and not the full width images (which are hard to find and slows down page speed). Inspiration for a good use of schema …

Developers Diary

Hamburger Menu Code

Animated hamburger menu is easy to work with, keeping this for future use. https://codepen.io/designcouch/pen/Atyop

Developers Diary

Pre Get Posts Code

Code snippet to put in functions.php to remove some categories from the main loop.  I’m seeing how I like my blog with photography and personal categories out of my usability blog. //https://wordpress.stackexchange.com/questions/44672/exclude-the-category-from-the-wordpress-loop —— removes categories …

Developers Diary

Checking on DNS

Recently I had to check on a DNS problem at work, and the support person said “the DNS isn’t even pointed at us (the hosting)”.  I asked him how he could see that, and the …

Developers Diary

Affix a class on scroll

Bootstrap’s data-spy functionality was working, but then it started getting hung-up and not loading.  This site had the possibility of caching from 3 different sources (Bootstrap CDN, hosting caching, and Cloudflare CDN) and I think …

Developers Diary

Removing p tags from WordPress

Does this really work? Need to test it.  Yes, it removes the p tags, but does it allow the javascript snippet in the post to run? //Removes the p tags when code is placed inside …

Developers Diary

Jquery code for Analytics Event

var url = window.location.href; url=url.split(“.”); var subdomain = url[0]; console.log (subdomain); $(“form”).submit(function(){ ga(‘send’, ‘event’, ‘FormSubmission’, ‘ClickedSubmit’, subdoman); });

Developers Diary

jQuery FIND

When trying to traverse downward in the DOM (this), utilize the FIND. I knew I was close, but I wasn’t sure how to say “find it only in THIS element only”, not all elements with …