Gabriola Graphics Blog

Here you'll find posts relating to a bunch of graphic and web stuff, a little hardware or software stuff, and the odd life pro tip.

Welcome! Here you'll find posts relating to a bunch of graphic and web stuff, a little hardware or software stuff, and the odd life pro tip.

Tag cloud and search at bottom of page.

Stop Divi Gallery Images From Cropping Using Functions

Currently the only options for the built-in Divi photo gallery are for "portrait" or "landscape" thumbnails, which means any aspect ratio outside of those will be cut off or cropped. The following snippet allows the thumbnail in the photo gallery to be shown in it's...

read more
recaptcha divi

Stop Spam from Divi Contact Form with ReCaptcha v3

Since Divi update 4.0.7 it is possible to natively integrate Google ReCaptcha v3 right into your contact form settings with only a few simple steps. 1. Create a google recaptcha profile for your site here — google.com/recaptcha/admin/create   2. After creating...

read more

Gravity Forms User Role Menu Restriction/Hide

Insert into your theme or child theme functions file: [code lang="php"] /* ------------------------- GRAVITY FORMS ROLES --- */ $role = get_role('editor'); $role->add_cap('gform_full_access'); add_action('admin_menu', function () { $user = new...

read more

Divi: Remove Projects From View in WordPress Admin Area

This code snippet doesn't disable Divi's own custom post type called Projects, but rather just removes it from view in the admin area. For numerous reasons you don't want to remove the Projects custom post type (screwed up templates, time outs, etc.) [code...

read more
kodi - windows 10 sharing

Kodi Sharing with Windows 10 [Solved]

We run an Android box (the Minix Neo-U1) into a TV that was gifted our way. It's been almost flawless and operates impressively as we connect wireless from some distance away. After many many months of using Kodi to connect to our Windows 10 desktop in another room in...

read more

Remove Divi Builder Button for WP User Role Author

To make things easier for the client hand-off, I removed the Divi builder button from the back-end, using the following code: [code lang="php"] /* Remove Divi Builder button for WP Role Author */ function my_custom_admin_head() { if ( current_user_can( 'author' )) :...

read more