Install CPT UI.
Under the CPT UI, click Add/Edit Post Types.
- Post Type Slug = singular lowercased name eg.
product
- Plural Label = plural first-letter capitalised eg.
Products
Install CPT UI.
Under the CPT UI, click Add/Edit Post Types.
product
Products
A mousemove utility to get the x coordinate of an element or the window. Coordinates are left-based, but we might want to get the x coordinates originating from the right instead. To do this we need to do a bit of maths.
This little function utility (using jQuery) logs to the console the x-left and x-right coordinates.
function mouseXCoords(element) {
var obj = {