Dec 15 17

Using the Functions.php file in WordPress


I have been trying so hard to make my new custom WordPress theme the RIGHT way. And I am hitting a wall.

Below is the code, which I am quite confident is correct. But it is not registering with my local site.


// adding my stylesheet filef

unction digitaldewtour_style() {

wp_enqueue_style(‘main_css’, get_template_directory_uri() . ‘style.css’ );

// calling the function i just defined above

add_action( ‘wp_enqueue_scripts’, ‘digitaldewtour_style’ );

// adding my 2 javascript files

function digitaldewtour_js() {

wp_enqueue_script( ‘slider_js’, get_template_directory_uri(). ‘/js/slider.js’, array(‘jquery’), ”, false );

wp_enqueue_script( ‘script_js’, get_template_directory_uri(). ‘/js/script.js’, array(‘jquery’), ”, false );



// calling my new function
add_action( ‘wp_enqueue_scripts’, ‘digitaldewtour_js’ );


I added a few notes in the actually code, but I just want to point out of few things for posterity.

First of all the process for using your functions.php file to call for your stylesheets or your javascript files works like this. First you create a function which “enqueues” the thing you want to link to. THEN you call that function. That call says “Hey, website. Add digitaldewtour_js to this page.” Your website/computer then looks for the function you are calling and then that functions defines exactly what it is looking for and going to call. NEAT. I just need to figure out why it doesn’t work for me.

  1. The function name is not necessarily important (ex. “digitaldewtour_style”). It just needs to unique enough that you don’t already have a function with the same name. WordPress has a lot of its own functions (so do random plug ins), so make it unique enough for you. Other than that the function name can be whatever you want.
  2. get_template_directory_uri() is a WordPress function that dynamically finds your sites theme directory. This is powerful because you don’t have to look up the url each time and for every website/theme. It will find it itself. Also the period is important it uses the path that the WordPress functions pulls up and ADDS it to whatever you put in quotations (‘style.css’).
  3. Creating a function for a javascript file is a little more complex than a style sheet. It starts the same: name the function, find the url where the page is, and then you have more options. The next field is where you can include another part, like another javascript library. I typically use jQuery (because I haven’t branched out yet… ) and WordPress already has jquery included. So I just include array(‘jquery’) and my javascript file is run with jQuery. I forget what the next field is. But the last one is asking “Do you want to call this file in your footer?” so I put false.
  4. ONE MORE IMPORTANT THING I FORGOT AND WAS TRYING TO REMEMBER… WordPress does not like “$” in jQuery. It uses other libraries that use “$”s so it’s TOO CONFUSING. If you are including some javascript with jQuery just make sure to either add a function that converts all of those “$”s or use “jQuery” in place of said “$”s.
Dec 14 17

Wookie Gingerbread Cookies


I made Wookie Gingerbread Cookies! I have been wanting to make these ever since A Force Awakens came out 2 years ago, and I finally did it! I used the “healthy” gingerbread cookie recipe from Mind Over Munch. I don’t regret it for one moment. The cookies turn out so good. They are soft and chewy and full of that holiday gingerbread flavor!

I’m not going to cover the cookie recipe here, since it’s not mine! But you can check out my video on YouTube for a little inspiration.

To make these into WOOKIES follow below:

Step One:

After making the gingerbread cookie dough of your choice, cut cookies into gingerbread man shape. Step Two: Using a fork add lines all over cookie to add “fur-like” texture.

NOTE: Since I made my cookie dough using homemade oat flour, my cookies already had a lot of texture, so I feel like I could have honestly skipped this step.

Step Two:

Bake cookies according to your favorite cookie recipe. Let cool completely before continuing to decorate.

Step Three:

Using melted chocolate (I used dark chocolate because YUM) in a piping bag with a number 5 tip, pipe 4-5 lines of chocolate from underneath the wookies left arm to just above his right arm. This is the start of your wookie’s bandolier, duh. With that same melted chocolate add your wookie’s eyes and nose. Just dots of chocolate!

Step Four:

Now using white chocolate, add details to the bandolier. Your wookies might be holding onto extra ammunition, grenades, supplies of syntherope, or maybe some space snacks. If I were a wookie, I would have snacks on me at all times.

But I think that’s obvious.

Dots of white chocolate will do for your details. Also add a thin line for the mouth. Hopefully your mouths will turn out a little bit better than mine. I was hungry for gingerbread cookies at this point and over decorating them.

This is what a wookie cookie looks like after proper quality testing. Just in case you wanted to know.

What do you do with all that extra chocolate? Well, that’s a great question. The dark chocolate tastes good right out of the piping bag. The white chocolate tastes great as a dip for your gingerbread cookie.

Oh, you still have extra chocolate?

Then write out some of your favorite Star Wars quotes!

“Help me, Obi-Wan Kenobi. You’re my only hope.” (for eating all these cookies)

“I’ve got a bad feeling about this.” (but not about these cookies!)

“Thank the maker!” (for all these delicious cookies)

“I find your lack of faith (or cookies) disturbing.”

“It’s a traaap!”

And finally.

I just got married (and had just watched Return of the Jedi), so I went romantic.

Dec 12 17

Coding a Webcam Feed


I’ve been spending an hour or 2 trying to think of a method of streaming some security cameras on a local website. I want to be able to use this as a part of a digital bulletin board used at a church and school. I’m definitely hitting a wall. But I’ve now built a local environment on my husbands computer, so that’s a positive! I love working in a local environment. It’s so fun to see changes happen so quickly.

I’ve read a lot of tutorials and no one is doing exactly what I am doing so that’s a struggle. This last tutorial I’m working through allowed me to hack in to my computer’s webcam to post it online. So hopefully there’s a way to use that same exact method, but make it access the IP address of a security camera. I just wanted to quickly type up some of my thoughts and what I’ve done so far. I really hope I can find a solution! I would be very impressed with myself!

Nov 8 17

Develop(her): Development Wish List


According to, it’s CODEVEMBER! I’m not sure exactly what that means for their website and community, but it reminded me to post more on this Develop(her) series. I think there’s a good chance I will spin this off and make it a blog attached to my portfolio, but we shall see.

I use when I’m at work and I want to put something together or experiment in my free time. It’s a work environment where you can work on front-end development (HTML, CSS, and Javascript).

Writing about what I’m doing is so helpful because I can look back and see exactly what worked for me. Right now I’m trying to remember how I got Javascript and Jquery working on a WordPress website… And I am running into some issues. I know that I’ve done it once before, but I cannot recall how. I am kicking myself for not writing it down!

My current development goal list:

Oct 28 17

Develop(her): Let’s Chat


Recently someone spoke with me about learning to code. She said she was wanting to learn a new skill and that web design sounded like a good idea and someone told her she should talk to me. Great! Any interest in coding is awesome. It’s an amazing field which apparently is booming and there should be plenty of market for new web developers ( I say apparently because I haven’t gone out and tried to get anything yet).

I told her how I think she should get started and told her to just do a google search and she will find so many amazing resources. Just get started and see if you even enjoy it! Telling someone how to code or how to learn to code isn’t an easy task. You really need to know the reason why you want to code. Do you want to create your own website? Great, you need HTML, CSS, and maybe some JavaScript. You just want a generic page for your company or blog? Ok, just learn WordPress and how to buy a domain name and hosting. You want to create your own database app system. Girl, start putting in the time now!

It’s really important to know the why on this journey. For me, I want to be able to customize any website that is thrown my way. That’s why I am making such a push to learn how to customize in WordPress because it’s a great system for a client to use, while you take care of the backstage magic.

I also would love to be able to create any app I want. If there is a problem that technology can solve, I want to be the one solving it!

The why is important, yes. But this woman asking me about coding, also got me thinking about myself. I’ve heard it time and time again how great a field web development is. But at what point will I feel confident enough to break into this amazing field? I have so many skills and so much desire. I should be there by now, right? Well, I am a work in progress. I’m about to move to a different/get married/quit my job/start a new, so I haven’t had the time I’ve wanted to really hone in on my skills and get started trying to make a living out of this. But I really just need to keep reminding myself that I can do it, I will do it, and I will do it a little bit every chance I get.

Sorry for the rambling. That was just a pep talk that I think I needed today.