Drupal: Get the node/bundle when preprocessing a paragraph

January 20, 2022 at 9:42 am | blabbing.

If you need to preprocess a specific paragraph type for it’s content or fields but you need to know the node/entity type that the request is coming from you can use the following. Make sure that you check to make sure the $node is not NULL before running methods against $node. Here we are going… Read more »

CSS selector for lang :not en/english

January 5, 2022 at 11:49 am | blabbing.

This type of CSS selector can be useful for when you have a multi-lingual site and some content or features may be different between the EN (english) site and other languages. Without having to explicitly name each language in the selector you just want to say “everything that is not EN”.

Load the fonts first for page speed

November 21, 2021 at 1:14 pm | blabbing, Design, Programming, web.

To increase page speed for blocking font rendering and to reduce the font rendering time when the page loads on your site, add your fonts as a preload at the top of your page. This may seem counter intuitive to load an asset ahead of time for page speed, but it makes sense in two… Read more »

Finite and infinite games

April 15, 2021 at 12:05 pm | blabbing.

Something I ran across recently that I liked. There are two types of games: finite games where rules are known and an end is set, and infinite games, where the rules can change and the end is unknown. Your outlook/beliefs will determine the game you believe you are playing.

Stop animating all your pages

January 6, 2021 at 8:25 pm | blabbing, Design, web.

You know that feeling when you get to a site and there isn’t much there and then you start to scroll and POW everything comes flying into the page in all directions. Yeah. Stop doing that.

Mobile ABV Widget

October 17, 2018 at 2:25 pm | blabbing.

I was reminded that I made this mobile friendly Alcohol by Volume widget the other day. It uses basic slider or text inputs to do the calculations associated with finding the ABV in your beer/wine/cider. I made it because I couldn’t find an easier one online. It uses basic jQuery UI mobile components. You can… Read more »

Google utmz cookie values

September 24, 2013 at 9:40 am | blabbing.

When trying to get values from PPC campaigns into marketing automation or into form fields, it’s always helpful to know what fields inside the Google utmz cookie match to which fields. Here is a basic list of the variables in the cookie and how they match up. utmcmd => Medium utmccn => Campaign utmctr =>… Read more »

Google Maps pin bubble

July 29, 2013 at 10:17 pm | blabbing.

If you are looking to get rid of the Google Maps location bubble for simple Google maps iFrames try adding &iwloc=near to the end of the iFrame SRC url.

Vimeo video fitvid

February 22, 2013 at 3:18 pm | blabbing.

Just testing to see if WordPress will automatically use the Vimeo iFrame embed by simply typing in the Vimeo URL. Oh fitvid. You rock.