Aug 092016
 

So there are some plugins out there to hide and show WordPress comments (notably the one named “Hide Show Comment“), but there are some things I didn’t like about it.

  1. They want you to pay for more options (I’m quite frugal).
  2. There is no option to hide the comment form – only the comments.

So here’s how you do it. We’ll be using jQuery (JavaScript) and inserting the code with a plugin.

  1. Install a plugin that lets you insert custom code.
    1. SEO Ultimate can do this under the “Code Inserter” section (use the “Before Item Content section).
    2. Insert Headers and Footers can do this (use the “Scripts in Header” section)
  2. Insert the script below.
<script type="text/javascript">
    jQuery(function(){
            // make the "leave a comment" text hide/show the comment form.
            jQuery('.comment-reply-title').click(function(){
                jQuery('.comment-form').slideToggle('fast');
            });

            // hide the comment form by default
            jQuery('.comment-form').hide();

            // make the text look like a link so the user knows it's clickable.
            // return false means the page will not reload.
            jQuery('.comment-reply-title').wrap("<a href="" onclick="return false;" >");

            // the reply button should always show the comment form
            jQuery('.comment-reply-link').wrap("<a href="" onclick="jQuery('.comment-form').show();" >");

            // the cancel reply link should always hide the comment form
            jQuery('.cancel-comment-reply-link').wrap("<a href="" onclick="jQuery('.comment-form').hide();" >");
        });
</script>

That’s all you need really. The rest is just nitpicking. One issue is that the comment form is not hidden by default. If we simply add some CSS to fix it, then people who have JavaScript turned off will never see the comment form. So we want to hide the comment form by default only when JavaScript is supported.

    1. Add the following JavaScript to the header.
<script type="text/javascript">
document.documentElement.className = "js";
</script>
  1. Add the following custom CSS using a plugin or your theme (for example the plugin “Simple Custom CSS“).
/** hide the comment form only if JavaScript is enabled. */
.js .comment-form { display: none; }

The JavaScript-dependent CSS was taken from https://css-tricks.com/snippets/javascript/css-for-when-javascript-is-enabled/.

May 182016
 

Our daughter had been wetting the bed for quite some time even though fobedwetting_alarmr a number of years after being potty trained she never had an accident during the day. At night though, she just wouldn’t wake up. For a long time we thought, “I guess her body just isn’t ready.”

Then we decided to try something other than just waiting – a bedwetting alarm. It attaches to the underwear and makes a noise and vibrates as soon as it gets wet. The results were fantastic! On the 7th night she had her first dry night and got up by herself to go to the bathroom. It was one of those proud parent moments that non-parents don’t understand and probably think to themselves “So what, I pee in the toilet all the time.”

I do have to say though that it’s important to read the directions fully and make sure you’re using it right. The first night with the alarm, for me it seemed pretty loud and I knew what was going on, so I went in to the room to wake up my daughter. I said “Hey, time to go pee.” I said, “HEY! Time to go PEE!” I poked her a bit, I pulled on her arm, I shook her leg. She slept through it all. I had to physically sit her up and make her get up and stand up. I was surprised by how much she could sleep through. The instructions say that the child needs to turn off the alarm themselves. This is very important, otherwise they might not be awake enough when they get to the bathroom, thus negating the entire effect. Another important thing: If you use the kind that attaches to the arm and has a wire going down, the wire needs to go through a shirt. So the child has to wear a shirt to bed even if that’s what they’re not used to. You know, so they don’t strangle themselves and die.

The last important thing I’ll mention – the alarm needs to be used even after a number of dry nights. Relapses are possible. The product we used was similar to http://amzn.to/23WklEu or http://amzn.to/1TimCF6. Good luck!

 Posted by at 10:04 pm
Feb 022016
 

I found this in the “drafts” section. It was written around 2011/2012 before we moved.

I don’t have a lot of acquaintances, but the ones I do have asked me about why and how I will be moving to France.

Why are you moving to France?

Aaron: I lived there in 2003 for about a year and made some friends there. Since that time I’ve always wanted to live there. Since then I’ve gotten married, had two kids, and finished my Master’s but I’ve basically always had this plan.

How long will you be there?

As long as it takes! I guess. We don’t have a set amount of time to return to the States, so “forever” is the official answer.

So you found a job?

Aaron: Yes. Finding a job as a technically skilled worker was “not difficult,” I would say. You do have to speak french well enough to get through the interviews of course. I will work for GFI, apparently as a consultant about 40% of the time and on in-house projects about 60% of the time.

Will you get a car?

Maybe. The plan is to NOT get a car, but since I’ll be handed out to work on projects for various companies at different locations it may be necessary. The public transportation system is quite good over there though, so we’ll see.

Where will you live?

In Aix-en-Provence in the south. It’s where I stayed in 2003 and it’s a great city.

Are you going to buy a house?

We don’t have enough money to just buy houses in other countries. We will save up though and see what happens. There are very few houses in the center of town where we’d like to live anyway.

But what will you do in France?

Aaron: This is one of those “I don’t get it” questions that I get sometimes. I will go to work, come home, spend time with my family, and everything else normal people do. Just because it’s a different country doesn’t mean I’m retiring or ending my productive life.

Jen: The same things I do here. I will take care of the kids, take care of my husband, take care of our home, and whatever else I need to do. After that I will figure something out. There isn’t really an answer for “what will you do” here in the States, so there isn’t a real answer for that in France.

What about your kids?

They will be fine. They’re not the first kids to speak two languages. We can all think of some other examples. 🙂

What about your dog?

He will be fine. He’s not the first dog to speak two languages. He’s coming with us of course! There’s no quarantine when going from the States to France. Quarantines tend to be only for islands like Britain and Hawaii.

Will you visit the States?

Yes. Probably at least yearly, although we haven’t decided what time of year yet. There are advantages to coming during a warmer time of year when outside activities (besides skiing) can still be enjoyable. We have Ohio to visit for Jen’s family and Colorado to visit for Jen’s and my family.

Can I come stay with you (for free)?

If we’ve said to you “you should come visit us,” then yes. Otherwise, no. In other words, if you were invited then yes, otherwise no.

What will you miss the most?

Aaron: Probably Chipotle and watching my mother and daughter play together.

Jen: Besides my friends and family, Starbucks.

What will you love the most?

Aaron: I will love raising my children in a place where salads are served in schools, where there is a minimum of 21 days vacation a year, and where the work week is 35 hours instead of 40 without a huge fuss. We also plan on trying to absorb some of the better assumptions and prejudices that Americans have about the French, such as there being less consumerism there and having a general love for life and personal enjoyment instead of a love for work and money. Plus it’ll be fun and a challenge.

Jul 312014
 

Yesterday we had a great time visiting parc de Saint-Pons in Gémenos. You can click here for a link to the city’s website about the park.

 

The kiddos and I showed up at about 10:30am and were met with a sign at the entrance saying that the park was closed due to weather or the risk of fires. We decided to head inside anyway since there were already a bunch of other cars there. It turns out that the lower portion of the park was open but the upper portion was closed since it was such a windy day.

We had a great time exploring the creek in the lower portion of the park and even found an interesting little bug while waiting for Aaron to join us for lunch.

 

 

After lunch we headed back to the creek for some more exploring. This time we took off our shoes and hiked through the water all the way to the point at which the park was closed.

Such a fun day! We can’t wait to go back and explore the upper portion of the park! I have it on good authority that it’s even more beautiful with waterfalls, more woody areas and even an abbey. 🙂

 Posted by at 5:51 pm