Monday, September 30, 2019

Digital marketers are spending more on Facebook advertisements as compared to Instagram

According to a recent study, more than 60% of advertisements on Facebook are dedicated to its News Feed despite the increased advertisements on Instagram. Recently, Socialbakers published its Q2 2019 study "Key Social Media Trends" that highlights how digital marketers are spending their money on...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by agha ali via Digital Information World

How To Create an Interactive Slider With the LayerSlider Plugin for WordPress

Modern websites have to be visually appealing in order to draw in a retain an audience. Whether you are running a business or just using your site as a blog, you will need to include enticing visual content to your audience. 

Simply throwing your images into your website pages is not enough. People are now more accustomed to viewing images and videos in a more structured and attractive way. This is where the WordPress slider plugins come in. 

Sliders are used to display content in a slideshow format. They allow you to create and customize your own slides and place them anywhere on your website.

There are many WordPress Sliders on the market right now, but few can match the comprehensive and easy to use plugin, Layer Slider. With this WordPress slider plugin, Layer Slider, you will be able to show images, slideshows, and galleries with visually appealing effects. The drag and drop visual editor makes this plugin easy to use with no coding or technical skills required. In this article, I will go over how to create an interactive slider with the Layer Slider plugin for WordPress.  

What We Will Be Building

We will be creating a slide show gallery with the Layer Slider plugin to be displayed on a webpage. In our example, we are going to be creating this slider for the website of a gym.  Since the layer slider makes the images and videos the center of attention on webpages, the slider is going to serve as an advertisement to draw people into joining the gym. The slider will contain three different photos of the gym and the first photo is going to have a call to action button that will take the user to the gym sign up page. To make the layer slider the center of attention on our webpage, we are going to make the slider full width, so the user will immediately notice it.

Layer Slider Gym Ad

Creating a Slider

Once you have installed the Layer Slider plugin, head on over to Wordpress Dashboard > Layer Slider WP > Sliders. You will then be taken to the slider manager page where you can view all your existing sliders, import sliders, and create a new slider. 

To create a new slider click the add new slider button with a plus (+) sign. You will then be asked to name your slider. Since we are going to be using this slider to be and advertisement on our gym website, we are going to name our slider, "Gym Ad".

Creating Slider

After you have named your slider, click the Add Slider button. You have now created your first slider. 

Adjusting the Slider Settings

After we have created our slider, we are now going to adjust the settings of the slider. The default layout and mobile settings of a responsive layout will suit our needs here so we won't need to adjust them. We will, however, want to adjust a slideshow setting. 

Click on the slideshow menu option and find the pause on hover section under slideshow behavior. Currently, when a user pauses their cursor over the slideshow, the slideshow will pause. We do not want the slideshow to pause here so from the drop-down menu, select Do Nothing.

Next, we are going to head on over to the Navigation Area settings. In the Slideshow Timers section, we are going to click on the show bar timer option. We want to show this timer so the viewer can see the progression of the slideshow. The last setting we are going to adjust is in the Appearance. We would like to change the current skin to one that will fit better with our website design. Click on the drop-down menu next to skin and choose v5. You can view how to adjust the settings described above in the video below. 

 

Creating the Slides

Now that we have changed around the settings of the slider, it is time to add the actual slides. At the top of the Layer Slider editor, click Slides. You will be brought to the slide editor. In this example, we are going to create three different slides and the first slide will contain a button. 

By default, our first slide is already loaded up. We can now begin editing the first slide. Layer slider makes use of layers to add content to your slides. Scroll down to the bottom of the page and on the left-hand side, you will see a section to add in these layers. Click Add New > Image. We will then be taken to the WordPress Media library where we are going to choose the picture of two people working out.

Adding an Image to Layer Slider

Our image will now present in the preview section of the slide editor. As mentioned, we would like to add a button to this first slide to entice viewers to join the gym. To add this button, scroll back down to the bottom left of the editor and click Add New > Button. The button will now be displayed in the preview.

We are now going to change the text on the button and the link that will open when the button is clicked. To change the text, find the content tab in the layer editor. In the field that has the text "Button Label" we can change the text of the button. We are going to change the text to say "Join Now." To change the link, click on the tab called Link & Attributes in the layer editor. In the Enter URL field, we are going to type in samsgym.com/join.

Next, we need to reposition the button to be more in the center of the image. Simply drag over the button with your mouse and set the button to the center. 

We are now going to add one more slide. At the top of the slide editor, click the Add New button. This will create a new slide. We are going to scroll back down to the bottom of the page editor and click Add New > Image. We will now add our second image from the media library. Once we have added in this second image, it is now time to add the slider to our website. To view the steps outlined above, watch the video demo below.

 

Adding Layer Slider to your Website

The Layer Slider plugin uses shortcodes to add the slider to your site. To receive the specific shortcode for the slider you created, you must first save all the changes you made at the bottom of the slides page. You will see a Save Changes button there that you will click. 

After you have saved your slider, you will see a Use Shortcode section next to the Save Changes button. Copy this shortcode to your clipboard and head on over to the WordPress page or post that you want the slider on. Then insert the shortcode into the text area of your website. 

That is it! You have added the slider to your website and are now ready to show your audience this slider. View how to add the slider to your website in the video below.

 

Getting the Most Out of the Layer Slider Plugin

In this tutorial, we just scratched the surface of what this powerful plugin can do. This feature-rich plugin has many functions that can be used to enhance the user experience on your website. Here are of few of the most notable features of this plugin that can be added to your layer slider. 

  • Transitions: The transitions in your layer slider can add a great deal of interest to your slideshow and can keep your viewers interested in the images that you present. Layer Slider offers four different types of transitions: 2D, 3D, custom 2D & 3D, and special effects. The type of effects you use will depend on the content you are trying to present and exactly what page it is on. 
  • Layering Your Slides: It says it in the plugins name. This gallery slider plugin was meant for customization. Layering is one of the best ways to create an interactive slider that your audience will find compelling. Layer Slider gives you the option to add images, video, links, HTML, text, and buttons to a single slide on your slider. With a little bit of creativity and designing, you can create a stunning and interactive slider that features a combination of the features the plugin offers that fits your website's pages. 

Now that you have an idea of how to build a layer slider and a glimpse into its most notable features, you can see that this plugin really is a powerhouse. Just because you know how to create an eye-catching slider for your website does not mean your website's viewers are going to see it and interact with it. You have to know where to place the layer slider in order for it to gain the most attention possible. Here is a list of few areas of your website that would benefit from having a layer slider on it.

  • Homepage: Slideshows perform very well on a website's homepage. Placing your slide show on the top of the homepage ensures that your website viewers will view it. With the layering options that you have available to you, you can create a slide show for your homepage that invites your viewers to view more of your website. 
  • Product Page: If you are selling a product, images and videos are a must. Highlighting your products in an interactive slide show will give your audience a reason to explore your product further. Again, place the layer slider towards the top of the page to increase the chances that the user will see it and interact with it. 

Conclusion

Slider plugins are an absolute must-have on your website if you are going to draw in and retain an audience. The Layer Slider WordPress plugin will allow you to create a visually appealing slideshow on your website that your website visitors will love. 

By applying the steps outlined in the article above you learn how to easily create a slideshow using Layer Slider. To give this plugin a try, head over to CodeCanyon and check out the live preview of the Layer Slider plugin. And while you're here, check out some of the other great WordPress plugins available from CodeCanyon.


by Daniel Strongin via Envato Tuts+ Code

It’s Deepfakes vs. Deepfakes: Google releases a Huge Database

Google recently released a huge database that includes deepfakes coming from 3,000 AI-generated videos made by the publicly available algorithms. Generative algorithms have been so good in producing deepfakes by media synthesis that you hardly distinguish between real and fake. Such fake images...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Madiha via Digital Information World

How to Write Facebook Ads That Convert

Want your Facebook ads to move people to action? Looking for a framework to help? In this article, you’ll discover how to develop and compose Facebook ad copy that converts and sells your products. #1: Research Customer Needs and Preferences in Facebook Groups Marketers often talk about how hard it is to get accurate customer […]

The post How to Write Facebook Ads That Convert appeared first on Social Media Marketing | Social Media Examiner.


by Justin Thomas via Social Media Marketing | Social Media Examiner

How to Use Easy Video Player For JavaScript

Videos have become a key part of websites and online businesses. This is mainly due to the fact that people in general are getting faster (and in most cases cheaper) internet data plans on mobile devices. Another factor that comes into play is the higher engagement with video content. People are more likely to watch and remember a well-made interesting video than they are to read a lot of text.

If you are serious about getting more people to talk and know about your business, it's high time that you get serious about video. In this tutorial, we will help you get started right away with a step-by-step guide to using the Easy Video Player script from CodeCanyon. You can use this JavaScript library to add videos to your webpages.

Why Use Easy Video Player?

You might be wondering why you should use Easy Video Player instead of a free alternative or any other paid script.

One of the biggest reasons to choose this player is that it is feature packed. First of all, it is responsive. This means that it will look nice of devices of all sizes. It has been optimized for playing videos on both mobile devices as well as desktops.

It has support for multiple video qualities so that users can switch between SD, HD or Full HD versions of a video similar to YouTube. You can also control the playback speed of the video at runtime. It is also possible to add subtitles for multiple languages to a single video. Users can then choose the subtitles they want to display at runtime.

You can also allow the viewers to download the video with an optional download button. It is possible to show the button either globally or on individual videos.

Easy Video Player can also play videos from a variety of sources. You can use it to play local videos, stream videos from a server or to embed YouTube or Vimeo videos.

You can monetize these videos using pre-roll, mid-roll or post-roll ads. It is also possible to add popup ads to the videos and control their show and hide time. Easy Video Player also allows you to show advertisements whenever users pause the video.

It is also possible to encrypt the video paths in order to make sure that users can't steal a video by simply crawling the page source. You can also password protect the videos in order to limit access to specific set of users.

The list of features does not end here. My suggestion would be that you visit the script description page in order to read about all the features of Easy Video Player.

What We'll Be Building

Once you have completed this tutorial, you will have a fully functional video player that supports annotations. The final version of the video player will look like the image below.

Video Player Final

We will be using a video of a robin from Pixabay for this tutorial.

Getting Started

After reading that the Easy Video Player comes with so many features, you might think that it would be hard to configure or use. However, as you will see in the tutorial, getting up and running with the script is not complicated at all.

One thing that I should point out before we get started is that any local videos on your server that you play using the Easy Video Player should be located inside a folder titled content. This way you can be sure that all the features of the player will work as expected.

After you purchase the Easy Video Player from CodeCanyon, you will be able to download the script as well as the documentation. The documentation contains a lot of working examples that can be added directly to your website by simply changing the source path or URL for the videos. The fastest and easiest way for you to quickly embed videos in your webpage using this player is to use parts from the working examples themselves. Just make appropriate changes to suit your own needs.

The first step would be to include the CSS and JavaScript files in your webpage.

By default, the player keeps CSS file in the content folder and JavaScript file in the java folder. If you change the location of these files, make sure that you update their path in the webpage as well.

Now, you have to specify a container for the video player. This container div will have a unique id which is passed to the constructor of Easy Video Player. You can set the CSS property margin to auto for this div in order to center it horizontally on the webpage but that is optional.

Add the following HTML inside the body of the webpage where you want the video player to appear.

While it is not necessary, you can add some CSS in order to make the video player look even nicer or to position it properly on the webpage. Here is the CSS that we would use for this purpose.

Initializing the Video Player

Now, you simply need to initialize the Easy Video Player by passing a bunch of parameters to the constructor. These parameters control all aspects of the video player so you should read the documentation to understand how each of them works. In this tutorial, I will give you a brief overview of the options that we will modify in our own player.

This is the code that you have to put in your webpage for initializing the player. It might look very long and complicated but the parameters have self-explanatory names and they will have the same value from one player instance to another. Most of the times, you will be able to directly take the initialization parameters from the examples in documentation and make changes as needed.

Two parameters that have to be unique every time are instanceName and parentId. The parentId parameter is the id of the container for your video. The value of instanceName parameter is used to identify the player when calling methods like play().

The videoSource parameter is used to specify the path to different versions of the same video so that users can play it in SD, HD or Full HD format. The posterPath parameter specifies the path of image file that shows up before the video starts playing.

A lot of other parameters are used to control the spacing, color or background of different UI elements used in the player. If you load the webpage in a browser now, you should see something similar to the image below.

Video Player UI

Adding Annotations to Your Video

There are many situations where you will want to give the viewers some additional information while they are watching a video. Annotations are very helpful in that situation. Luckily, Easy Video Player provides a convenient way of adding annotations to your videos

You just need to use a little HTML with special data attributes. In our case, we will use annotations to tell readers a fact about robins and then link to Wikipedia if they want to read more about the bird. Here is the markup that you have to add to the webpage. It might be better to add it right below the video player container.

Setting display to none for the annotations will hide them from appearing the webpage. The attributes specified with each annotation will determine when and where they appear in the video. The distance of the annotations from the left and top side can be specified using the data-top and data-left attributes. The data-start-time and data-end-time attributes determine when the annotations will show up and disappear. You can also give users the option to close the annotations manually by setting the data-show-close-button attribute to true. You can read about all other attributes in the documentation available with the download.

Keep in mind that the annotations don't start working as soon as you add them to the webpage. Right now, the video player does not know about their existence. So, you have to specify a couple of parameters in its constructor to help it determine where to find the annotations.

If someone plays the video now, they will see the annotations after the specified time as in the image below.

Video Player Annotations

Final Thoughts

In this tutorial, we have created a feature-rich fully functional responsive video player which supports annotations using the Easy Video Player script from CodeCanyon. This is just one of the ways of using the plugin. The plugin also offers a lot of other features which increase its usefulness. For example, the script allows you to integrate different kinds of ads in your video to help you monetize your content. You can also use it to play videos inside a lightbox.

Once you purchase this script, you will get 6 months of free support and life time free updates. The plugin is well worth its price due to all the features it offers.


by Monty Shokeen via Envato Tuts+ Code

Web Design Weekly #369

Headlines

The Iceberg of React Hooks

Without in-depth knowledge, performance problems can arise and code complexity can increase due to subtle bugs and leaky abstractions. In this post, Sandro Dolidze demonstrates common problems and ways to fix them. (medium.com)

Browser Engine Diversity (css-tricks.com)

Articles

Investigate animation performance with DevTools

In this post, Milica Mihajlija covers how browser rendering works and how to navigate DevTools to diagnose animation performance issues. (calibreapp.com)

Variable fonts & the new Google Fonts API

An article that covers what the new Google Fonts API means for developers and some examples to get started quickly. (rwt.io)

An Explanation of How the Intersection Observer Watches

Travis Almand look at how to use Intersection Observer Watches, how they works and what exactly they provide to us as developers. (css-tricks.com)

React Lazy: a take on preloading views

Maxime Heckel explains how to add preloading to your route based code split apps. (maximeheckel.com)

Two Browsers Walked Into a Scrollbar (filamentgroup.com)

Tools / Resources

Working with GitHub Actions

GitHub Actions are still in beta and are changing quickly. But if you are looking to get started the possibilities are endless. This guide is mostly about pointing to documentation and exploring some fun ways to use GitHub Actions. (jeffrafter.com)

Sharing TypeScript Code Between Web and React Native

John Rumble shares some of the challenges his team has encountered when sharing code between their existing monorepo built with webpack and their new React Native app which is all TypeScript. (atomicobject.com)

Visual Regression Testing in Design Systems

Visual regression testing in a design system helps detect unintended changes. Patrick Fulton explains this type of testing and shares some effective tools for implementing it. (seesparkbox.com)

React Native 0.61 with Fast Refresh (facebook.github.io)

The perfect responsive menu (polypane.rocks)

Moving beyond console.log() (gitconnected.com)

Inspiration

What my online course generated (indiehackers.com)

Our Current Stack (codepen.io)

Jobs

Frontend Engineer at Cuvva

We’re looking for a mid to senior front-end software engineers who have worked in engineering teams within high-growh, high-scale startups, who will operate with a high level of autonomy. You must care deeply about building applications with well thought out architecture, and a very keen eye for detail and precision. (https://www.cuvva.com)

Product Designer at Postlight

We’re looking for a thoughtful and passionate Product Designer to join our team. You will become a central part of the product team, working directly with product managers and clients to solve big problems and alongside our engineers to build performant, user-centric products for the web and mobile. (postlight.com)

Need to find passionate developers or designers? Why not advertise in the next newsletter

Last but not least…

Practical Ways to Write Better JavaScript (stackoverflow.blog)

The post Web Design Weekly #369 appeared first on Web Design Weekly.


by Jake Bresnehan via Web Design Weekly

Curious to know about the best Windows Security Products? We have what you’re looking for!

Recent research evaluates the best antiviruses and Microsoft was so close to the top. Nowadays with the improving technology, the risk of threats and spams is also increasing. Hackers try out a variety of new techniques to spread the virus in the systems and to invade the privacy of its users. No...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by agha ali via Digital Information World