Make editing easier by closing all ACF fields in WP edit page add_action('admin_footer-post.php', 'my_acf_collapse_field_groups_all_edit_pages'); function my_acf_collapse_field_groups_all_edit_pages() { // Check if we're on a post edit screen if (isset($_GET['action']) && $_GET['action'] === 'edit') { ?> <script type="text/javascript"> (function($) { $(document).ready(function() { // Collapse all ACF field groups by adding 'closed' class $('.acf-postbox').addClass('closed'); }); })(jQuery); </script>…
Useful Bootstrap 5 Responsive Mega Menu
Responsive Bootstrap 5 mega menu based on harvard.edu -> https://github.com/hcanning/mega-menu-overlay1 Demo: https://hcanning.github.io/mega-menu-overlay1/ (click hamburger menu and test on desktop/mobile )
CanvasLMS – Output course data using PHP and CanvasLMS API
This is useful if you want to pull CanvasLMS data into your website. Get your ACCESS TOKEN from the canvas dashboard and add to line 2 of the code below. Code includes pagination set to 1 GitHub code
Pixabay API – Get bulk images by category
Use the Pixabay API to get bulk images for your website by category. Ideal for image placeholders for websites GitHub code – Add your Pixabay API key to line 53
Pexels API – Get 100 on topic images fast
This is particularly useful for web professionals getting placeholder images quickly for demos. Get an API key here and update line 58 of this file
Vanilla JS Indeed.com results/detail page example
Useful template for displaying records/users from an api like Random User in a side by side pane. Inspired by the Indeed.com webpage. See demo for desktop layout Show records from Random User API Add records to cards Open first record on page load using a record click Scroll to top after each record click Use…
Canvas LMS Install on Digital Ocean
Ubuntu 22.04 LTS / 8 GB Memory / 160 GB Disk / NYC3 / DigitalOcean Markdown: GitHub
Cool way of downloading YouTube videos
Below is a cool way to download a 1080 video: Download https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe to a folder e.g. …/documents/youtube-downloads MUST INSTALL ffmepg to combine video stream with audio stream Open Windows Powershell as ADMIN RUN: choco install ffmpeg -y ffmpeg -version see: https://github.com/yt-dlp/yt-dlp/blob/master/README.md#general-options open the folder location of the .exe using CMD and run below…
One of my favorite ways to learn new tech
Great way to learn how to code. https://www.traversymedia.com/
Drupal theme primed for Paragraphs module
See https://drupal2go.com