Archive For The “Web Tutorials” Category

Learn From What You See: It All Starts With Inspiration

Learn From What You See: It All Starts With Inspiration

The world around us is full of little things and experiences that shape us, our way of thinking, but also how we tackle our work. Influenced by these encounters, every designer develops their unique style and workflow, and studying their artwork — the compositions, geometry of lines and shapes, light and shadows, the colors and patterns1 — can all inspire us to look beyond our own horizon and try something new.

It doesn’t really take much to let your mind wander. Always remember to take a closer look at things around you; you’ll be sure to find inspiration in the little things2. But for now, let’s dig into another collection of brilliant illustrations and photographs. read more

Read more »

The Surprising Relationship Between Gamification And Modern Persuasion

The Surprising Relationship Between Gamification And Modern Persuasion

If you’re like me, then being persuaded requires a scientific approach and concrete examples. And that’s exactly what this article does. It explains how gamification can work by showing the relationship between gamification, UX design and BJ Fogg’s modern persuasion phenomenon, “mass interpersonal persuasion.” And it has a lot of practical gamification examples that you can apply to your own products for more engaging experiences.

Today, virtually all companies (except for special ones like Basecamp1) have to grow non-stop. Why? Well, that’s simply how the capitalist engine works. Investors pour money into startups, banks loan money to entrepreneurs, employees accept stock options instead of cash, all in the hope of the company growing much bigger. That’s why there is so much emphasis on growth. Otherwise, the whole system would collapse. It’s kind of crazy when you think a bit more deeply about it, but I’ll leave that part to you for now. read more

Read more »

How to Style Each WordPress Post Differently

How to Style Each WordPress Post Differently

Have you ever come across a site that style their blog posts differently? Some sites have sticky posts highlighted with a custom background whereas others may have each category post styled with a unique look. If you ever wanted to learn how to style each… Read More » The post How to Style Each WordPress Post Differently appeared first on WPBeginner. ...

Read more »

The iOS 10.3 Security Alert Is Killing App Store Downloads: Here’s How To Fix It

The iOS 10.3 Security Alert Is Killing App Store Downloads: Here’s How To Fix It

In its move to patch a security hole as part of the iOS 10.3 release, Apple has introduced (yet) another redirection mechanism that developers must handle when attempting to implement mobile deep-link routing (i.e. the mechanism to route users to a specific page inside a mobile app, rather than the App Store or app home page).

This redirection instance has introduced additional friction to the app download and reopening process, and data shows that it has decreased conversion rates on iOS 10.3. This post examines the issue in detail and discusses solutions to help developers fix it. read more

Read more »

How to Control Your RSS Feeds Footer in WordPress

How to Control Your RSS Feeds Footer in WordPress

Do you want to customize the RSS feed footer in WordPress? This allows you to add custom text, links, or even advertisements below your post content in the RSS feed. In this article, we will show you how to easily control your RSS feed footer… Read More » The post How to Control Your RSS Feeds Footer in WordPress appeared first on WPBeginner. ...

Read more »

How to Create a Client Dashboard in WordPress

How to Create a Client Dashboard in WordPress

Do you want to create a client dashboard in WordPress? A custom dashboard in WordPress can help your clients with resources and shortcuts they need to get started. In this article, we will show you how to create a client dashboard in WordPress without writing… Read More » The post How to Create a Client Dashboard in WordPress appeared first on WPBeginner. ...

Read more »

Do you want to Create Custom Inputs With Vue.js ?

Do you want to Create Custom Inputs With Vue.js ?

Component-based libraries or frameworks such as Vue have given us the wonderful ability to create reusable components to be spread throughout their respective application, ensuring that they are consistent, and (hopefully) simplifying how they are used.

In particular, form inputs tend to have plenty of complexity that you’d want to hide in a component, such as custom designs1, labels, validation, help messages, and making sure each of these pieces are in the correct order so that they render correctly.

On top of that though, Vue has a built-in directive called v-model that simulates 2-way binding by binding a value and capturing input events. If you’re going to build a custom input component, then you’ll definitely want to support the v-model directive.

Sadly, when I looked around for examples of custom inputs in Vue for radio buttons or checkboxes, they either didn’t take v-model into consideration at all, or they failed to implement it correctly. There is some decent documentation for custom text inputs2, but since it doesn’t explain customizing radios or checkboxes, we’ll discuss that here.

This tutorial aims to help you…

  1. Understand how v-model works on native inputs, focusing primarily on radios and checkboxes
  2. Understand how v-model works on custom components by default
  3. Learn how to create custom checkboxes and radios that emulate how v-model works on them natively

Quick note before we get started: ES2015+ code will be used throughout the code examples. I’ll also be favoring the Single File Component3 syntax over using Vue.component or new Vue.

Further Reading on SmashingMag: Link

How Does v-model Work Normally? Link

The official Vue documentation8 is actually pretty good on this topic, but there are a few minor blind spots. In any case, we’ll be trying to cover it pretty thoroughly here.

In essence, v-model is just a shorthand directive that gives us 2-way data binding, and the code it is shorthand for depends on what type of input it is being used on.

Text Boxes Link

<input v-model="message" placeholder="edit me"> <p>Message: {{ message }}</p> <!-- OR --> <p>message:</p> <p style="white-space: pre-line">{{ message }}</p> <textarea v-model="message" placeholder="add multiple lines"></textarea>

When using a text input (including types such as email, number, etc.) or textarea, v-model="varName" is equivalent to :value="varName" @input="e => varName = e.target.value". This means that the value of the input is set to varName after each update to the input varName is updated to the value of the input. A normal select element will act like this too, though a multiple select will be different.

Radio Buttons Link

So, what about radio buttons?

<input type="radio" value="One" v-model="picked"> <input type="radio" value="Two" v-model="picked"> <span>Picked: {{ picked }}</span>

read more

Read more »

8 Best Places to Get a Custom Logo for Your WordPress Website

8 Best Places to Get a Custom Logo for Your WordPress Website

Do you want to get a custom logo for your WordPress website? A custom logo helps establish your brand and makes your website stand out. In this article, we will show you some of the best places to get a custom logo for your website… Read More » The post 8 Best Places to Get a Custom Logo for Your WordPress Website appeared first on WPBeginner. ...

Read more »

Summer Bliss And August Adventures: Wallpapers To Kick-Start The New Month (August 2017 Edition)

Summer Bliss And August Adventures: Wallpapers To Kick-Start The New Month (August 2017 Edition)

Could there be a better way to welcome the new month as with a tidy desktop and a fresh wallpaper? Well, we’ve got you covered. To help you start into August freshly inspired, artists and designers from across the globe once again1 challenged their artistic skills to create unique desktop wallpapers for you to indulge in — wallpapers that are a bit more distinctive as the usual crowd.

All wallpapers in this collection can be downloaded for free and come in versions with and without a calendar — to keep your deadlines always in sight or to stick to your favorite wallpaper even after the month has ended. A big thank-you to everyone who shared their artworks with us! Now it’s up to you to decide which one will become your August companion. read more

Read more »

20 Best BuddyPress Themes for Your WordPress Website

20 Best BuddyPress Themes for Your WordPress Website

Are you looking for the best WordPress themes for BuddPress? BuddyPress is a sister project of WordPress. It allows you to build an online social network on top of your WordPress website. In this article, we have hand-picked some of the best BuddyPress themes for… Read More » The post 20 Best BuddyPress Themes for Your WordPress Website appeared first on WPBeginner. ...

Read more »