Code

#TitleDate
1setting up css variables in your stylesheetOct 14, 5:36 am
2match a category id in wordpress and then add styles just for that idSep 29, 6:20 am
3simple table stripe stripingSep 29, 12:48 am
4bootstrap collapse or toggle a div visibilitySep 28, 1:13 am
5drop shadow text class easy drop shadowSep 28, 12:33 am
6center everything in a div with flex-center (centre)Sep 28, 12:07 am
7generating all css colours with php?Sep 25, 12:13 am
8country select javascript check which option is selected and show a hidden elementSep 22, 2:05 am
9country select javascript check which option is selectedSep 22, 1:54 am
10php countries array to dropdown form elementSep 22, 1:40 am
11get the current post id from content.phpSep 21, 6:07 am
12wordpress get the current category id name and slugSep 21, 6:01 am
13fix for Uncaught (in promise) Error: reCAPTCHA placeholder element must be emptySep 18, 5:43 am
14search a zip file with windows command prompt and 7zipSep 8, 1:09 pm
15css font style italicSep 2, 12:27 am
16create a rainbow background using css linear gradientSep 1, 3:53 am
17extracting the useful bits of bootstrapAug 31, 5:14 am
18Bootstrap 4 Center menu items in a navbarAug 28, 12:05 am
19certbot add a certificate for one domainAug 26, 6:46 am
20renew all certificates with certbotAug 26, 6:45 am
21Fix for Fatal error: Uncaught Error: Call to undefined function file_get_dom() simplehtmldom simple_html_domAug 26, 1:08 am
22Fixing PHP SQLite database is locked warning - Unable to execute statement: database is lockedAug 26, 12:24 am
23simple usage for php password_hashAug 25, 1:06 pm
24enable tinymce on a target textarea by idAug 19, 12:15 am
25Bootstrap Darkmode SwitchAug 18, 11:54 pm
26stop tinymce replacing urls with relative url'sAug 18, 12:55 am
27What is Core?Aug 17, 6:52 am
28Create a UTF8 General MySQL Database with CommandAug 13, 4:05 am
29Custom JS Tabs - No Jquery or Jquery UIAug 4, 11:28 pm
30fix for Uncaught TypeError: e.indexOf is not a functionAug 3, 12:20 am
31stop overscrolling on responsive iosJul 31, 3:50 am
32switching stack order of floats with flexJul 28, 11:55 pm
33To make Ubuntu do nothing when laptop lid is closedJul 27, 12:50 am
34change string to capital words ucwordsJul 21, 6:08 am
35change upper case case string to lower case (uppercase, lowercase)Jul 21, 6:02 am
36scroll to top html css and jsJul 21, 1:13 am
37bold the numbers in a ol li listJul 14, 1:13 am
38convert a string to uppercase with phpJul 14, 12:31 am
39php substr return part of a stringJul 13, 2:35 am
40php countries arrayJul 12, 11:09 pm
41add a user to a groupJul 12, 3:00 am
42loop through each directory in a target directory and compress themJul 12, 2:55 am
43loop through each directory in a target directoryJul 12, 2:47 am
44get the wordpress category name from a category idJul 6, 6:00 am
45add a class or remove it based on window scroll locationJun 30, 1:45 am
46stretching an image to fit in a banner image with gimpJun 30, 1:16 am
47javascript window.onloadJun 29, 11:32 pm
48adding pulsating dots to your css ul li listJun 26, 3:26 am
49wordpress adding post custom field meta and displaying it on you templateJun 24, 1:33 am
50get element by class name with javascript and change it functionJun 17, 1:59 am
51hide parts of a form until the 1st item is selectedJun 17, 1:26 am
52css using perspective for transformsJun 16, 5:57 am
53getting the site title vs the page nameJun 16, 5:07 am
54wordpress get home urlJun 16, 5:03 am
55add a tag to wordpress header from a pluginJun 16, 4:44 am
56list items matching a category titleJun 12, 4:08 am
57fixing the website footer and making it less uglyJun 6, 3:43 am
58loading content into fancybox modal using ajaxJun 5, 4:30 am
59inline fancybox modal testingJun 3, 6:12 am
60simple linear gradient overlay for an image to make it darker or lighterJun 2, 11:07 pm
61wp register plugin settings adminJun 1, 12:28 am
62fancybox modal popup exampleMay 29, 6:59 am
63wordpress main nav dropdown fixMay 27, 3:47 am
64Create a admin main wordpress custom menu itemMay 27, 1:39 am
65matches the url and does something if it matches a certain stringMay 26, 3:37 am
66tar.gz to compress a directory in linux and then decompress itMay 26, 2:41 am
67javascript isset equivalentMay 19, 6:39 am
68wordpress show the parent page title with fallback to titleMay 18, 1:03 am
69find and replace hrefs in existing page links using jqueryMay 8, 12:03 am
70Use Sweet Alert rather than alert!May 7, 11:35 pm
71get the href value using jqueryMay 7, 11:22 pm
72check if a timestamp is older than one hourMay 4, 1:24 pm
73Add a post date to your custom wordpress post listingMay 4, 5:49 am
74making var_dump look niceMay 4, 4:16 am
75use javascript to open a link in a new tab or windowMay 1, 3:59 am
76force existing link to open in a new window with javascriptMay 1, 3:49 am
77Find Disk Space Usage using DUApr 28, 11:30 pm
78Load and Unload TinyMCE editor from a buttonApr 17, 2:53 am
79Nginx Server Block with RewriteMar 29, 11:16 pm
80pulsating dots - glow glowingMar 13, 5:47 am
81load a youtube video in a fancybox modalMar 2, 10:46 pm
82using css linear gradient for background overlaysFeb 17, 12:34 am
83wordpress get page content to display on template pageFeb 3, 11:11 pm
84ES6 Nested Object ExampleFeb 3, 1:09 am
85ES5 vs ES6 Object ExampleFeb 3, 12:41 am
86Use Recursion to Return a Range ArrayFeb 2, 11:38 pm
87Use Recursion to Count DownFeb 2, 10:29 pm
88Use Recursion to Count UpFeb 2, 10:20 pm
89Get the documentURI with JSJan 28, 10:06 pm
90get the stylesheet directory in wordpress themeDec 16, 9:55 pm
91jquery document ready with foundation init as wellDec 16, 1:20 am
92center something with css not using flexDec 13, 12:56 am
93how to unzip in linuxDec 5, 11:51 pm
94php mysql table exists functionDec 2, 4:25 am
95how to display a php file as html with phpDec 2, 3:50 am
96jquery add a click function if the window size is greater than target_widthDec 2, 2:03 am
97jquery enable and disable attributeDec 2, 12:12 am
98js using recursion to create a range of numbersNov 25, 4:25 am
99php convert date now into a sql timestampNov 25, 12:43 am
100add google captcha to enable and disable a form buttonNov 12, 12:14 am
101Generate a Random User NameNov 11, 11:33 pm
102Using Node to get a Web Dev Environment with livereload up and runningNov 11, 12:38 am
103Using the Spread Operator to Evaluate Arrays In-Place TestsOct 14, 1:02 am
104Using the rest operator to pass in a variable amount of argumentsOct 1, 5:49 am
105Default Parameters for FunctionsOct 1, 5:23 am
106Complex Arrow Function ExampleOct 1, 5:14 am
107Writing Arrow Functions with ParametersOct 1, 12:36 am
108using arrow functions to convert small functions into one line statement functionsOct 1, 12:09 am
109Prevent Object MutationSep 30, 11:16 pm
110Changing an array declared with constSep 30, 6:17 am
111return a state name from an australian postcodeSep 29, 11:25 pm
112using let and const exampleSep 27, 4:55 am
113using let rather than varSep 27, 4:18 am
114Use Multiple Conditional (Ternary) OperatorsSep 27, 3:18 am
115js - Use the Conditional (Ternary) OperatorSep 24, 6:23 am
116Use the parseInt Function with a RadixSep 24, 6:14 am
117Using parseInt in a function to return an integer or notSep 24, 5:57 am
118Generate Random Whole Numbers within a RangeSep 24, 5:15 am
119split a string into an array using split javascriptSep 16, 4:47 am
120get the current url in javascriptSep 13, 3:47 am
121Custom 12 Grid using CSS GridSep 6, 2:19 am
122template for testing and live reloading html filesSep 4, 3:27 am
123Radial Click EffectSep 4, 1:13 am
124Generate Random Whole Numbers with JavaScript FunctionAug 26, 6:20 am
125Generate Random Fractions with JavaScriptAug 26, 6:09 am
126FCC - Basic: Profile LookupAug 26, 5:38 am
127copy a file when the date of the source is newer than the destinationAug 26, 3:27 am
128Do While LoopAug 25, 11:26 pm
129for loop through an array with javascriptAug 23, 12:18 am
130get the average of a number list using an array in phpAug 21, 12:48 am
131sublime text find and replace style tagAug 19, 12:43 am
132tinymce remove auto p tags settingAug 13, 6:15 am
133get the dimensions of an image with javascriptAug 13, 5:55 am
134target data attribute with cssAug 12, 11:52 pm
135toggle div function with chevron up down toggleAug 9, 1:19 am
136form checkbox replacement with large tick using labelAug 7, 2:15 am
137keyframe animations cssAug 6, 12:27 am
138basic for loop odd numbersJul 31, 6:20 am
139check if something is an arrayJul 31, 5:26 am
140apache redirect to https ssl from normalJul 31, 1:20 am
141getType function for jsJul 29, 11:50 pm
142Objects in javascriptJul 29, 11:25 pm
143card counting example from fccJul 29, 2:00 am
144using switch with multiple identical casesJul 29, 1:32 am
145using switch in a functionJul 28, 11:19 pm
146IP AddressJul 26, 1:30 am
147js function to calculate golf scoresJul 24, 1:48 am
148compare non equality functionJul 23, 11:15 pm
149compare equality functionJul 23, 10:57 pm
150JS Using typeof to check on string typesJul 23, 2:38 am
151testing equalityJul 22, 5:57 am
152defining a variable inside a function without using var will create a global variableJul 22, 5:15 am
153add something to the start of an array with unshiftJul 19, 2:40 am
154remove the first element in an array with shiftJul 19, 2:37 am
155document ready javascript standalone version no jqueryJul 17, 1:14 am
156add a class to a div with an id javascriptJul 17, 1:11 am
157using local storage rather than cookies to store data (localStorage)Jul 16, 11:31 pm
158remove something from the end of an array with popJul 16, 5:58 am
159add something to the end of an array with pushJul 16, 5:49 am
160Multidimensional ArrayJul 16, 4:50 am
161get the last letter of a stringJul 16, 4:40 am
162accessing part of a variable using its indexJul 16, 4:34 am
163using transform scale in css to zoom on hover overJul 16, 2:57 am
164js check the length of a stringJul 16, 2:04 am
165Bootstrap Card Formatting HTML and CSS - Header and FooterJul 10, 2:38 am
166Move any element with css offsetsJul 9, 2:31 am
167CSS Improve Compatibility with Browser FallbacksJul 9, 2:04 am
168PHP Finding the position of a string in another string using strposJul 9, 12:00 am
169PHP str_replace - find and replace part of a stringJul 8, 11:52 pm
170using scroll-behavior: smooth cssJul 8, 2:33 am
171jquery click functionJul 3, 5:33 am
172using a css grid area templateJul 3, 2:26 am
173grid column and row spacingJul 3, 2:14 am
174Random string generator function in php suniqidJul 3, 1:13 am
175CSS Grid - Basic ColumnsJul 2, 5:59 am
176flex shorthand cssJul 2, 2:24 am
177using flexbox to align elements in a rowJul 2, 1:37 am
178Viewport width and height calculationsJul 2, 12:30 am
179Making Images Retina Display FriendlyJul 2, 12:14 am
180Making an image responsive using cssJul 2, 12:03 am
181Applied Accessibility - Tab IndexJul 1, 11:52 pm
182Applied Accessibility - Access KeysJul 1, 11:40 pm
183Applied Accessibility - Screen reader only cssJul 1, 11:24 pm
184Dropdown Box with Searchable TextJun 30, 11:57 pm
185Change link target with JQueryJun 28, 12:17 am
186Drop Down Menu Swapping Left align to RightJun 26, 5:36 am
187Whois LookupJun 24, 1:00 am
188using the disk free space function in phpJun 7, 1:33 am
189create a mysql or sqlite current timestamp with phpMay 27, 5:45 am
190Cut a string when it finds a certain character with PHPApr 17, 5:30 am
191validate a url using php with FILTER_VALIDATE_URLMar 28, 11:04 pm
192function to create a uid from htmlMar 22, 12:44 am
193calculate a percentage (dec) difference based on two numbersMar 22, 12:13 am
194check if a user is logged in using sessionsMar 20, 4:34 am
195asp classic get a url and display itMar 20, 12:08 am
196Using nth-child css to hide list items or repeated elementsMar 13, 5:10 am
197PHP MySQL vs SQLite Count Items FunctionFeb 25, 3:40 am
198How Many Days Since a Date and other CalculationsFeb 11, 12:27 am
199image Checkbox Replacement for FormsJan 18, 12:28 am
200Using Flexbox rather than FloatsJan 16, 4:27 am
201Date Conversion PHPJan 14, 10:40 pm
202white space pre-wrap formattingJan 1, 10:23 pm
203Generate a random title from an arrayDec 19, 1:34 am
204echo todays date and time in a nice formatDec 18, 11:48 pm
205Core - File StructureDec 13, 11:38 pm
206Core Class - Basic Core StructureDec 13, 11:33 pm
207Generate Sub menu using CoreDec 13, 11:09 pm
208page load timer classOct 30, 12:17 am
209human_filesize phpOct 29, 5:40 am
210xcopy backup full directory windows batOct 24, 10:33 pm
211for loop set variables $p1,$p2.. etc as blankOct 24, 3:53 am
212sqlite check table name existsOct 24, 12:44 am
213get current class name with get_classOct 22, 3:37 am
214meta keywords tagOct 17, 5:50 am
215meta description tagOct 17, 5:48 am
216assign array to variables in a loopOct 17, 5:36 am
217favicon code meta tagOct 17, 4:01 am
218hide and show elements with js using getElementById and style.displayOct 17, 1:15 am
219generate a random color rgb code with phpOct 17, 12:07 am
220css :active pseudo-class usageOct 5, 1:22 am
221Regular expression breakdown regex preg_replace phpSep 21, 1:39 am
222replace anything in brackets in a string using preg_replace regex phpSep 21, 1:17 am
223for loop with a 5 incrementSep 17, 2:45 am
224Get Current Page URL PHPSep 4, 2:19 am
225Get the document root path in php $_SERVER['DOCUMENT_ROOT']Sep 4, 12:23 am
226remove all of an element in a string <h1>Aug 31, 6:25 am
227get text between tagsAug 31, 6:20 am
228sqlite basic sql and loop resultsAug 31, 6:20 am
229convert all images into base64 encodedAug 31, 6:20 am
230wordpress change domain in configAug 31, 6:20 am
231read and sort directory contents in phpAug 31, 6:20 am
232uniqid random stringAug 31, 6:20 am
233show response headers from file get contentsAug 31, 6:20 am
234wordpress show the page content for use in a templateAug 31, 6:20 am
235file get contents reads entire file into a stringAug 31, 6:20 am
236using parse_url to extract parts of a urlAug 31, 6:20 am
237basic for loopAug 31, 6:20 am
238try catch testAug 31, 6:20 am
239tell wordpress to use the direct file method if its asking for ftp detailsAug 31, 6:20 am
240wordpress enqueue slicknav and slick sliderAug 31, 6:20 am
241wordpress include jquery in theme functionsAug 31, 6:20 am
242copy fileAug 31, 6:20 am
243some date formatting just day just month just yearAug 31, 6:20 am
244header type jsonAug 31, 6:20 am
245wordpress use a shortcode in php gravity formsAug 31, 6:20 am
246extract meta tags from url and return as json arrayAug 31, 6:20 am
247csv read exampleAug 31, 6:20 am
248php get the file modified time with filemtimeAug 31, 6:20 am
249preg_replace ereg_replace replace all charsAug 31, 6:20 am
250wordpress check home and not home for banners and thingsAug 31, 6:20 am
251wordpress advanced custom fields replace shortcode for site url with blog urlAug 31, 6:20 am
252using custom request headers array with curlAug 31, 6:20 am
253sqlite delete data older than timestamp daysAug 31, 6:20 am
254wordpress get site urlAug 31, 6:20 am
255simple html dom extract attributes simplehtmldomAug 31, 6:20 am
256find the 1st occurence of a string in another stringAug 31, 6:20 am
257pretty printing json with phpAug 31, 6:20 am
258extract meta tags from file or url as arrayAug 31, 6:20 am
259wordpress show posts loop with feature image thumbnailAug 31, 6:20 am
260random number using randAug 31, 6:20 am
261search within files in a directoryAug 31, 6:20 am
262wordpress show the post content for use in a templateAug 31, 6:20 am
263show errors in php with toggleAug 31, 6:20 am
264wordpress register enqueue javascript require jqueryAug 31, 6:20 am
265count the elements in an arrayAug 31, 6:20 am
266google map with overlay dataAug 31, 6:20 am
267round number with jsAug 31, 6:20 am
268truncate string using jqueryAug 31, 6:20 am
269detect window scroll position jqueryAug 31, 6:20 am
270flems embed in urlAug 31, 6:20 am
271change the window titleAug 31, 6:20 am
272Slick Slider CarouselAug 31, 6:20 am
273add thisAug 31, 6:20 am
274change favicon with jqueryAug 31, 6:20 am
275load google sheet data into json string with jqueryAug 31, 6:20 am
276scrollbar replacement simplebarAug 31, 6:20 am
277change the water colour in google maps for an already initialised mapAug 31, 6:20 am
278parallax js scroll testingAug 31, 6:20 am
279mithril testingAug 31, 6:20 am
280validate form data using javascript to check required html elementsAug 31, 6:20 am
281do something later with settimeout or loop with setintervalAug 31, 6:20 am
282tiny mce editor tinymceAug 31, 6:20 am
283clipboard copy jsAug 31, 6:20 am
284json loop load elementsAug 31, 6:20 am
285document ready wordpress jqueryAug 31, 6:20 am
286testing chartjsAug 31, 6:20 am
287access hacker news json firebase api via jqueryAug 31, 6:20 am
288check length of element jqueryAug 31, 6:20 am
289validate email address from stringAug 31, 6:20 am
290set and check a cookie using js cookieAug 31, 6:20 am
291random string generator guidAug 31, 6:20 am
292using regex with replace to replace all instances of something in a stringAug 31, 6:20 am
293digital clock with jqueryAug 31, 6:20 am
294find all elements add class jqueryAug 31, 6:20 am
295load content with jqueryAug 31, 6:20 am
296stacktable jQuery plugin for stacking tables on small screensAug 31, 6:20 am
297jquery clone and append elementsAug 31, 6:20 am
298show the year with jsAug 31, 6:20 am
299get select option form value with jqueryAug 31, 6:20 am
300jquery jqueryui vue script includesAug 31, 6:20 am
301fancybox youtube showing video links in a lightboxAug 31, 6:20 am
302jquery accordionAug 31, 6:20 am
303jqueryui date selectorAug 31, 6:20 am
304using vue and json dataAug 31, 6:20 am
305jqueryui includes css and jsAug 31, 6:20 am
306preserve tabs in textarea when tab key is pressedAug 31, 6:20 am
307using getElementById and innerHTML to change the html of content no jqueryAug 31, 6:20 am
308make clickable element with clickable classAug 31, 6:20 am
309jquery document readyAug 31, 6:20 am
310make any element editableAug 31, 6:20 am
311simple dropdown multi level navigation ul li cssAug 31, 6:20 am
312form elements australian state listAug 31, 6:20 am
313link to an external stylesheetAug 31, 6:20 am
314random emojis copy and pasteAug 31, 6:20 am
315layout homepageAug 31, 6:20 am
316meta refresh reload pageAug 31, 6:20 am
317using foundation 6.4 xy grid basicsAug 31, 6:20 am
318youtube extract thumbnail from video linkAug 31, 6:20 am
319copy image to data uri using chrome base64 encodeAug 31, 6:20 am
320lorem ipsumAug 31, 6:20 am
321make all links target new windowAug 31, 6:20 am
322youtube embed no controls auto play iframeAug 31, 6:20 am
323responsive viewport meta tagAug 31, 6:20 am
324simple dropdown navigation ul li cssAug 31, 6:20 am
325flexbox layout templateAug 31, 6:20 am
326take full page screenshot screencapture using chrome dev toolsAug 31, 6:20 am
327emoji dataAug 31, 6:20 am
328youtube embed iframeAug 31, 6:20 am
329delAug 31, 6:20 am
330video embed full screen all screen sizesAug 31, 6:20 am
331video embed tagAug 31, 6:20 am
332video embed no controlsAug 31, 6:20 am
333form elements new zealand region listAug 31, 6:20 am
334foundation includes cdnjsAug 31, 6:20 am
335use an image to replace bullet in ul listAug 31, 6:20 am
336using mix blend mode and filter grayscale for heroAug 31, 6:20 am
337border box resetAug 31, 6:20 am
338css grid sidebar main content fluid layout with fallbackAug 31, 6:20 am
339bootstrap styled buttonsAug 31, 6:20 am
340color cycle drop shadowAug 31, 6:20 am
341embed and use a ttf font font faceAug 31, 6:20 am
342filter drop shadowAug 31, 6:20 am
343animate cssAug 31, 6:20 am
344css grid sidebar main content fluid layoutAug 31, 6:20 am
345truncate text long titles with text overflow ellipsisAug 31, 6:20 am
346transitions and the easy way to apply themAug 31, 6:20 am
347cycle color using backgroundAug 31, 6:20 am
348css grid for layouts with no rowsAug 31, 6:20 am
349foundation make row full widthAug 31, 6:20 am
350css grid for layouts and how to use itAug 31, 6:20 am
351recreate marquee element using cssAug 31, 6:20 am
352click through an overlay element pointer eventsAug 31, 6:20 am
353why are people so amazed that a column layout can have a full width elementAug 31, 6:20 am
354margin padding frameworkAug 31, 6:20 am
355more complex responsive tables cssAug 31, 6:20 am
356remove border glow css from textarea on selectAug 31, 6:20 am
357transform rotate an element in cssAug 31, 6:20 am
358transform rotate a hexagon in cssAug 31, 6:20 am
359target internet explorer with css and htmlAug 31, 6:20 am
360darken background image using cssAug 31, 6:20 am
361material design icons google fontAug 31, 6:20 am
362flex align center vertical horizontalAug 31, 6:20 am
363targeting the printed version of a page with media printAug 31, 6:20 am
364simple dropin wordpress dropdown navigation cssAug 31, 6:20 am
365make your images look non squished when not using image backgroundsAug 31, 6:20 am
366css accordion basicsAug 31, 6:20 am
367use font awesome on elements lists ulAug 31, 6:20 am
368set transparent menu over background imageAug 31, 6:20 am
369table border collapseAug 31, 6:20 am
370stack a table using css responsiveAug 31, 6:20 am
371design nice block headerAug 31, 6:20 am
372wordpress get template directoryAug 31, 6:18 am
373check the server method post or get using phpAug 31, 6:17 am
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹

Random Quote
Even if you fall on your face, you're still moving forward.
Victor Kiam