Recent Posts

Here are my most recent posts

Drupal

How do I set up a Drupal 8 Module to be an AJAX service?

Sarah Berg • October 9, 2017

File structures seem a lot different in Drupal 8, and I’m still getting the hang of them. This is an example of a simple module I made, so hopefully it can be a good starting point…

Read More

jQuery / Javascript

Uncaught TypeError: .sort is not a function ?!

Sarah Berg • August 16, 2017

So i’ve done some ajax calls and wanted to sort my results and ran into the error: Uncaught TypeError: resultData.sort is not a function This is because the returned data is an object and jQuery’s sort…

Read More

API

ZERO_RESULTS from the geocode API for business zip codes

Sarah Berg • May 12, 2017

We recently ran into a scenario where finding a zip code internationally was not producing any results. We read a little more into the zip code structure in Switzerland and found …

Read More

Wordpress

Formidable: Populate select field with a post type

Sarah Berg • March 9, 2017

Setting up options in formidable is easy if you know what your options are.  There are times tho that the list is dynamic and we want to keep it up to date as the site updates….

Read More

Wordpress

Visual Composer: vc_map field examples

Sarah Berg • January 13, 2017

There’s a few things missing to the documentation for Visual composer, like samples of how to use each field type.  Some of these are probably pretty intuitive, but we figured we’d make some example for each as…

Read More

Wordpress

Ajax requests in WordPress

Sarah Berg • November 7, 2016

There are many reasons to use Ajax on a website as it allows the content to load into the page as needed.  In the past i’ve always made a separate file for handling all these things,…

Read More

Drupal

How do i get all the taxonomies of a node to render in Drupal7?

Sarah Berg • June 27, 2014

After following a tutorial for getting the taxonomy terms of a node, I found that I still didn’t have all the pieces of the puzzle. Doing a foreach over $tags = $node->field_tags; would just give a…

Read More

jQuery / Javascript

How do I manually jump to a specific slide in Flexslider?

Sarah Berg • June 25, 2014

This is such a quick fix, yet very few places on the internet seem to know the 4 lined solution to this problem. If you are using the FlexSlider plugin, you may come across the scenario…

Read More

Drupal

How Do I Make a Drupal “repeater field” with Field Collections (D7)

Sarah Berg • April 26, 2013

Up until now I’ve been mainly working in WordPress, mainly because of my love for ACF and their abilities to have repeating groups of fields. And I finally found a resource that helped me achieve the…

Read More

Drupal

node–contenttype.tpl.php not overriding

Sarah Berg • April 10, 2013

I’ve worked in Drupal once before and I had forgotten the most important thing to know…. manually clearing your site’s cache. Basically this is a step you need to take when making a new template. In…

Read More

jQuery / Javascript

Limit Character Count in ACF Repeater Text Field

Sarah Berg • April 7, 2013

Limiting the characters in a given field is a good way to dummyproof your admin dashboard so content writers don’t write novel length entries for a field that should only be a few words. This could…

Read More

jQuery / Javascript

jQuery animate from “PX” to “AUTO”

Sarah Berg • April 6, 2013

so if I have the CSS property “top” equal to ‘auto and i animate it to be “30px” and I want to change it back to auto… i should be able to just do: $(’.section’).animate({’top’:’auto’},500); right?…

Read More

PHP

Can’t Update in WordPress – Missing Archive File

Sarah Berg • April 5, 2013

Working on a lot of WordPress sites, I’ve never encountered this till this point. The first clue was that I couldn’t just install plugins from the plugin library, i had to install them manually. However, updating…

Read More

jQuery / Javascript

3… 2… 1… HAPPY NEW YEAR

Sarah Berg • December 31, 2012

2012 was a good year for plugins, and are so much fun to discover. As we went into 2013, it made me think i needed a countdown. So, a looked up a few of the more…

Read More

Wordpress

My Most Used WordPress Plugins of 2012

Sarah Berg • December 30, 2012

Not really an interesting post, but I suppose I may just document the plugins I use on basically everything.  It may as well be a custom intallation just for me with all these plugin preinstalled since…

Read More