I finally converted the last of my old Flash games into React, using Next JS. For simplicity, instead of symbols, I used emojis to hide the message. It’s not perfect, but the basic functionality is there. Maybe in the future I’ll improve it. The objective of the game is to reveal the quote. Each symbol… Read more »
Posts Categorized: Code
Dynamic SVGs with Custom Fields, and JavaScript
I recently worked on a WordPress project to make a site for an exhibition event (vendors in booths gathered in one place). The client wanted to have floor map that would show which booths were taken, and which were still available (there were over 130 booths). Normally, this would require a graphic that would have… Read more »
ScrollMagic for Beginners Tutorial
ScrollMagic is a JavaScript library for creating scroll interactions. It lets you create animations that start and stop at specific points during the scrolling of a page. It’s quite powerful, but can be intimidating for beginners, since unlike Skrollr, it’s all done in JavaScript. In this tutorial, I’ll cover the basics of adding ScrollMagic to a… Read more »
Redirect to Dashboard after login with WooCommerce enabled
Recently, I had to work on a site that had a few things going on: It had some users with custom roles, and capabilities Those users had a simplified dashboard WooCommerce was enabled. The problem was that when those users logged in, WooCommerce would redirect them to the “My Account” page, instead of their simplified dashboard…. Read more »
How to Make a Kindle eBook from Scratch
Update (Sept. 11, 2015): The character set for Kindle eBooks is now UTF-8. And recommends using the UTF-8 character over entities (© over ©). There are many ways to create a Kindle eBook, but creating your own source files, and then using KindleGen to convert it into Kindle Format 8 will give you more control… Read more »
Advanced Custom Fields Image Object Tutorial
Update (10/11/2016): I added some escaping to the examples. Better safe than sorry. When creating an image custom field in Advanced Custom Fields, it gives you the option of setting the “Return Value” as an “Image Object”.
My new best friend: ajax_query_attachments_args
I’m working on a site were users will have extra fields in their profiles, among them, a user picture. To achieve this, I used Advanced Custom Fields. Easy peasy lemon squeezy! The problem was that when a user went to upload or chose a file for their picture profile, it showed all media files, from… Read more »