Peaceful Youtube Preview
This plugin adds the capability to specify a custom image as a thumbnail for a Youtube video embed. An easy-to-use WordPress shortcode is provided for this purpose...
- Find the Youtube video you'd like to post, and save it's embed code in a handy place.
- Create an image that you'd like to use as the thumbnail for this video. Note that the size of this image will be used as the size of the Youtube video as well.
- Upload the image you've created to the WordPress media library. Once you've uploaded the image, jot down the file url of the image, as we'll need that for the shortcode.
- Prepare the shortcode syntax, as shown below, and place it into the post or page of your choice.
The following are two examples: The first is the original Youtube embed, as provided by Youtube. The second is the corresponding shortcode that you would use in your post or page.
This is the embed that comes from Youtube:<iframe width="420" height="315" src="http://www.youtube.com/embed/rv6oWhG76pQ" frameborder="0" allowfullscreen></iframe>
This is the shortcode as you would use it in your post or page:[peaceful_youtube_preview video="http://www.youtube.com/embed/rv6oWhG76pQ" image="http://www.peacefulmedia.com/plugin-assets/peaceful-youtube-preview-example.png"]
An example with additional parameters:[peaceful_youtube_preview video="http://www.youtube.com/embed/rv6oWhG76pQ" image="http://www.peacefulmedia.com/plugin-assets/peaceful-youtube-preview-example.png" title="A Fantastic Video!" class="peacefulPreview" playbutton="0" magnify="0.9" autoplay="0"]
Parameters for the Shortcode
- Specifies the http source of the video, as given in the Youtube embed.
- Specifies the http source of the thumbnail image, as uploaded to the media library.
- title (optional)
- Specifies the title and alt attributes of the image.
- autoplay (optional)
- Set to "1" to turn on autoplay (default), or set to "0" to turn it off.
- playbutton (optional)
- Set to "1" to turn on the overlayed playbutton (default), or set to "0" to turn it off.
- magnify (optional)
- A scaling factor applied to the sizing of the preview image and video. A value of 1.0 is the identity factor, while a value of 0.9 will reduce the image and video size by 10%.
- id (optional)
- CSS id for the wrapper div.
- class (optional)
- CSS class for the wrapper div.
Procrastination. Even though we know it is the thief of productivity we all do it. And we temporarily enjoy it because we usually fill it with something frivolous that feels rather indulgent. Yet at the same time we feel guilty because we know something is hanging over our head.
Procrastination is also the thief of passion. Do you find yourself accountable to other people yet you delay doing the things that would support your personal and professional dreams? It’s time to be courageous and move through any fear and resistance. You deserve your dreams AND they are not going to just appear without taking steps toward them.
Stop letting procrastination rob you of your productivity and passion!! Here is a seven-step process to help you “just do it” (in the video I share in a lot more detail, steps are outlines below):
- Identify the COST and PAYOFF of procrastination. Costs are easy to identify and may include things like increased stress by having less time to get things done, feeling guilty, indulging in unhealthy distraction patterns like eating, gossiping, or mindless facebooking (yes, I’ve made that a verb). Next, you may think there is no payoff to procrastination but there is! You get to temporarily experience a sense of rebellion and freedom from doing the thing you don’t feel like doing. It’s the payoff that makes procrastination so intoxicating.
- Answer, “What would be different if I got this task done?” List out all the positive benefits from completing what you’re putting off. Imagine it done. How would you feel? What would you have space for? How could you utilize all the new energy you freed up from completing an incomplete cycle of action.
- Schedule a time and commit. Leverage the energy you are feeling from step 2 to pull you into committing to getting it done. It is WAY easier to commit to something when you are in enthusiastic energy! Pick a time or ongoing window of time to JUST DO IT. And hold yourself accountable to showing up for yourself just like you’d show up for a doctors appointment or a hot date.
- Establish disciplines because discipline creates habits. You don’t procrastinate brushing your teeth because it’s become a habit. Usually we put things off because we haven’t formed a habit. For instance, I used to procrastinate writing but now that I’ve blogged at least once a week for 7 years, it’s a habit. Commit to showing up on a regular basis and doing the things you are delaying.
- Eliminate all distractions. Forget about minimizing them! TURN OFF your internet, email, social media, phone, TV, work in a new space (like a library) where food and tempting distractions are minimal. You will be amazed at how productive and focused you can be when you eliminate distractions.
- Shift your state. Your state is your physiological, mental and emotional pulse. If your energy is low, your thoughts are along the lines of “I don’t wanna” and you feel anxious, frustrated, or apathetic, guess how productive you are going to be? Not very! Shift your state to one of high energy, positive self-talk, and enthusiasm by imagining yourself 15 minutes AFTER the successful completion of your tasks. See it, feel it. Experience the relief, accomplishment and excitement you will feel. Get into that energy and then begin your task.
- Celebrate! This is an important step because you want your true payoff to come from the completion of the task and not from procrastination. Acknowledge yourself. Reward yourself with the things you may have been using to procrastinate!
Okay now it’s time to stop surfing the internet and get productive and passion. Use these seven steps anytime you find yourself procrastinating. Remember, delaying doing things that you don’t like doing OR would love to do but put last robs you of productivity and passion.
So if you want to procrastinate just a tiny bit longer and have a great laugh, check out Ellen’s take on procrastination here.
p.s. Those of you who live in LA: I’m teaching a brand new special goal-setting / manifestation workshop this TUES Jan 22nd open to women AND men. Find out more and register HERE.
p.p.s. I’m headed to AUSTRALIA!!! Join me for a special workshop in Sydney on Feb 2nd. Go here to learn more.