DJO Global
Woocommerce Site - For an Online Medical Supplies Company Uses Revolution Slider and a couple of other goodies. Year - 2019 Client - DJO Global View Actual Site Read the full article
$LAYYYTER
Three Goblin Art
todays bird
almost home
No title available

titsay

izzy's playlists!
Mike Driver

Andulka

tannertan36
Sade Olutola

Product Placement

Kiana Khansmith

Kaledo Art
Claire Keane

❣ Chile in a Photography ❣
No title available
DEAR READER
Cosimo Galluzzi

Discoholic 🪩

seen from Germany
seen from Germany

seen from Malaysia

seen from Italy
seen from United States
seen from Ireland
seen from Azerbaijan
seen from Brazil

seen from Australia
seen from Netherlands

seen from India
seen from United States
seen from Russia
seen from South Africa

seen from Ireland

seen from Malaysia

seen from Russia
seen from United States

seen from Singapore

seen from Italy
@xhostcom
DJO Global
Woocommerce Site - For an Online Medical Supplies Company Uses Revolution Slider and a couple of other goodies. Year - 2019 Client - DJO Global View Actual Site Read the full article
Multiple Varied Form Inputs VueJS
Enable GZIP Compression on WordPress or ClassicPress
As I have discussed several times before, page load speed is an important aspect that determines the success of your WordPress site. It plays a major role in user experience as well as search engine ranking. So, as a WordPress site owner, you will have to try several strategies to ensure fast page load speeds. One of the popular strategies recommended by experts will be to enable GZIP compression on your WordPress site. Here, I will discuss more on GZIP compression and how you can enable it for a superior performance of your WordPress site.
What is GZIP Compression?
GZIP is a file format that will reduce the size of HTML, CSS and JavaScript files so that they are served faster when a user requests for it. It is generally done on the server side and helps in a significant reduction of file size. It is one of the essential optimization strategies that you will generally see on a WordPress website. All browsers that are commonly used now support GZIP compression, and looks for the specific header while making an HTTP request. If the specific header of GZIP compression is present, browsers will serve the compressed files that are of reduced size. This makes sure that all your users will benefit from faster page load speeds thanks to GZIP compression.
The importance of enabling GZIP compression
Good page load speed is an essential requirement for a WordPress website. You will have to try out different optimization strategies to ensure a smooth performance of your website. It is relatively simple to enable GZIP compression and hence most website owners make sure that it is done. Now, if you have not enabled GZIP compression, you might notice an error on page speed tests by popular tools. For example, if you have enabled GZIP compression on your site you will be able to see a perfect score for ‘Enable Compression’ on your GTMetrix audit.
If you have not enabled GZIP compression on your WordPress pages, most page speed test tools will show it as an error. You can also check whether GZIP compression is enabled on your site by using the developer tools on your browser. For example, on Chrome, you can go to developer tools and check the Response headers. Here you will see ‘Content Encoding: gzip’. This means GZIP compression is enabled.
Use the developer tools on your browser to ensure GZIP compression is enabled on your browser.
How to enable GZIP Compression?
You have to enable GZIP compression to make sure certain resources like HTML, JavaScript and CSS are served in a compressed form. This will ensure that web pages are loaded pretty fast on your site. If there are large files that are not compressed, they can significantly affect page load speeds on your site. To enable GZIP compression, you can follow some of the common steps suggested by experts. Here are some of them: Reach out to the support team of your hosting service GZIP compression is a commonly used web optimization strategy. Hence, a lot of hosting services enable GZIP compression by default. You can check using the above strategies to ensure that it is enabled. In case, it is not enabled on your site, you can always raise a support request to your hosting service provider. Most popular hosting service providers will oblige with your request. If you are a WordPress beginner and do not feel comfortable managing the technical aspects of your site, this is the best possible way. A good hosting service provider will have no problems in getting this done for you. You can check out good hosting providers in this article! Use plugins to enable GZIP compression Another relatively simpler option will be to use a caching plugin with GZIP compression support. Such plugins will have options to enable GZIP compression in their settings. If your caching plugin does not have access to modify files on your server, you may still have to ask your hosting service provider. Here are some of the plugins that will help you enable GZIP compression on your WordPress website. WP Rocket WP Rocket is a powerful solution that will help you optimize and speed up your WordPress website. It is a plugin that involves only minimum and simple configuration steps so that even beginners can easily set it up. It will help compress HTML, JavaScript and CSS files so that your web pages will load faster.
Advanced features and great support sets apart WP Rocket from the rest of the caching plugins. Additional features The plugin also helps you in the following aspects related to optimization. Instant activation of page caching Preloading of cache to facilitate faster indexing by search engines. Lazy loading of images Flexible for developer-level customization. Enable GZIP Compression This is a simple plugin that you can download and use if your website is running on Apache HTTP server. You can use it specifically to enable GZIP compression. However, if you need some more advanced optimization features, consider the premium version. Premium version features In addition to helping you enable GZIP compression, the premium version also helps you to: Set document expire times Enable image lazy loading Block image hotlinking It is also compatible with WooCommerce and hence you can use it if you are running an online store as well. PageSpeed Ninja This is another popular WordPress performance plugin that will help you enable GZIP compression easily. Once you install the plugin, you can enable the option easily along with several other options that will help you optimize your site performance.
You can simply enable the option for compression in the plugin settings. WP Super Cache This is another plugin that you can use to compress files on your website. You will be able to enable this option in the plugin settings. It will also help in converting dynamic files to static while serving to users. That means a majority of users such as those who has not logged in will get the static version that is easier to load. This will help to make sure the site is performing optimally.
This is one of the most popular WordPress caching plugins, and has multiple configuration options that you can choose depending on your technical expertise W3 Total Cache This plugin will help a lot in improving the search engine ranking as well as user experience of your WordPress website. It offers several advanced features to improve page load speed on your website including compression of HTML, JavaScript and CSS files. Moroever, it also offers CDN integration to help you avoid latency when serving customers globally.
W3 Total Cache is a complete package that helps with overall aspects of your site’s performance Additional features Some of the other features you will get with this plugin are: Lazy loading to improve the page load speed as well as user experience. Browser caching using cache-control to deliver pages faster. JavaScript grouping by the template with embed location control. Non-blocking JavaScript embedding. WP-CLI support for cache purging Editing your .htaccess file (Apache) If GZIP compression is not enabled on your WordPress site, you can manage that by editing the .htaccess file. You can find the .htaccess file on your root WordPress install using an FTP tool. Once you find the .htaccess file of your WordPress install, you can insert the following code below the # End WordPress tag. Be careful when you perform this step, as a wrongly configured .htaccess file could break your website. # Compress HTML, CSS, JavaScript, Text, XML and fonts AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml # Remove browser bugs (only needed for really old browsers) BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0 no-gzip BrowserMatch bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent Most of the servers will be using Apache, and the above process works in those cases. However, if you are using NGINX or IIS, the process is slightly different. Enabling GZIP Compression for NGINX For NGINX servers, you will have to find the nginx.conf file, and add the following code. gzip on; gzip_disable "MSIE .(?!.*SV1)"; gzip_vary on; gzip_types text/plain text/css text/javascript image/svg+xml image/x-icon application/javascript application/x-javascript; This will help to enable GZIP compression on your website if you are using NGINX servers. Compression for IIS 7 users If you are using Microsoft IIS servers, the process is slightly different. IIS uses two different types of compression – dynamic and static. You can follow the instructions in the Microsoft IIS documentation to enable both types of compression. Hopefully, this article has provided you an overview of how to enable GZIP compression on your WordPress website. This is one of the important optimization strategies and one that is relatively simple. Leave a comment below with your thoughts! If you enjoyed this post, why not check out this article on how to Reduce HTTP Requests in WordPress or ClassicPress! Post by Xhostcom Wordpress & Digital Services, subscribe to newsletter for more! Read the full article
Enable GZIP Compression on WordPress or ClassicPress
As I have discussed several times before, page load speed is an important aspect that determines the success of your WordPress site. It plays a major role in user experience as well as search engine ranking. So, as a WordPress site owner, you will have to try several strategies to ensure fast page load speeds. One of the popular strategies recommended by experts will be to enable GZIP compression on your WordPress site. Here, I will discuss more on GZIP compression and how you can enable it for a superior performance of your WordPress site.
What is GZIP Compression?
GZIP is a file format that will reduce the size of HTML, CSS and JavaScript files so that they are served faster when a user requests for it. It is generally done on the server side and helps in a significant reduction of file size. It is one of the essential optimization strategies that you will generally see on a WordPress website. All browsers that are commonly used now support GZIP compression, and looks for the specific header while making an HTTP request. If the specific header of GZIP compression is present, browsers will serve the compressed files that are of reduced size. This makes sure that all your users will benefit from faster page load speeds thanks to GZIP compression.
The importance of enabling GZIP compression
Good page load speed is an essential requirement for a WordPress website. You will have to try out different optimization strategies to ensure a smooth performance of your website. It is relatively simple to enable GZIP compression and hence most website owners make sure that it is done. Now, if you have not enabled GZIP compression, you might notice an error on page speed tests by popular tools. For example, if you have enabled GZIP compression on your site you will be able to see a perfect score for ‘Enable Compression’ on your GTMetrix audit.
If you have not enabled GZIP compression on your WordPress pages, most page speed test tools will show it as an error. You can also check whether GZIP compression is enabled on your site by using the developer tools on your browser. For example, on Chrome, you can go to developer tools and check the Response headers. Here you will see ‘Content Encoding: gzip’. This means GZIP compression is enabled.
Use the developer tools on your browser to ensure GZIP compression is enabled on your browser.
How to enable GZIP Compression?
You have to enable GZIP compression to make sure certain resources like HTML, JavaScript and CSS are served in a compressed form. This will ensure that web pages are loaded pretty fast on your site. If there are large files that are not compressed, they can significantly affect page load speeds on your site. To enable GZIP compression, you can follow some of the common steps suggested by experts. Here are some of them: Reach out to the support team of your hosting service GZIP compression is a commonly used web optimization strategy. Hence, a lot of hosting services enable GZIP compression by default. You can check using the above strategies to ensure that it is enabled. In case, it is not enabled on your site, you can always raise a support request to your hosting service provider. Most popular hosting service providers will oblige with your request. If you are a WordPress beginner and do not feel comfortable managing the technical aspects of your site, this is the best possible way. A good hosting service provider will have no problems in getting this done for you. You can check out good hosting providers in this article! Use plugins to enable GZIP compression Another relatively simpler option will be to use a caching plugin with GZIP compression support. Such plugins will have options to enable GZIP compression in their settings. If your caching plugin does not have access to modify files on your server, you may still have to ask your hosting service provider. Here are some of the plugins that will help you enable GZIP compression on your WordPress website. WP Rocket WP Rocket is a powerful solution that will help you optimize and speed up your WordPress website. It is a plugin that involves only minimum and simple configuration steps so that even beginners can easily set it up. It will help compress HTML, JavaScript and CSS files so that your web pages will load faster.
Advanced features and great support sets apart WP Rocket from the rest of the caching plugins. Additional features The plugin also helps you in the following aspects related to optimization. Instant activation of page caching Preloading of cache to facilitate faster indexing by search engines. Lazy loading of images Flexible for developer-level customization. Enable GZIP Compression This is a simple plugin that you can download and use if your website is running on Apache HTTP server. You can use it specifically to enable GZIP compression. However, if you need some more advanced optimization features, consider the premium version. Premium version features In addition to helping you enable GZIP compression, the premium version also helps you to: Set document expire times Enable image lazy loading Block image hotlinking It is also compatible with WooCommerce and hence you can use it if you are running an online store as well. PageSpeed Ninja This is another popular WordPress performance plugin that will help you enable GZIP compression easily. Once you install the plugin, you can enable the option easily along with several other options that will help you optimize your site performance.
You can simply enable the option for compression in the plugin settings. WP Super Cache This is another plugin that you can use to compress files on your website. You will be able to enable this option in the plugin settings. It will also help in converting dynamic files to static while serving to users. That means a majority of users such as those who has not logged in will get the static version that is easier to load. This will help to make sure the site is performing optimally.
This is one of the most popular WordPress caching plugins, and has multiple configuration options that you can choose depending on your technical expertise W3 Total Cache This plugin will help a lot in improving the search engine ranking as well as user experience of your WordPress website. It offers several advanced features to improve page load speed on your website including compression of HTML, JavaScript and CSS files. Moroever, it also offers CDN integration to help you avoid latency when serving customers globally.
W3 Total Cache is a complete package that helps with overall aspects of your site’s performance Additional features Some of the other features you will get with this plugin are: Lazy loading to improve the page load speed as well as user experience. Browser caching using cache-control to deliver pages faster. JavaScript grouping by the template with embed location control. Non-blocking JavaScript embedding. WP-CLI support for cache purging Editing your .htaccess file (Apache) If GZIP compression is not enabled on your WordPress site, you can manage that by editing the .htaccess file. You can find the .htaccess file on your root WordPress install using an FTP tool. Once you find the .htaccess file of your WordPress install, you can insert the following code below the # End WordPress tag. Be careful when you perform this step, as a wrongly configured .htaccess file could break your website. # Compress HTML, CSS, JavaScript, Text, XML and fonts AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml # Remove browser bugs (only needed for really old browsers) BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0 no-gzip BrowserMatch bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent Most of the servers will be using Apache, and the above process works in those cases. However, if you are using NGINX or IIS, the process is slightly different. Enabling GZIP Compression for NGINX For NGINX servers, you will have to find the nginx.conf file, and add the following code. gzip on; gzip_disable "MSIE .(?!.*SV1)"; gzip_vary on; gzip_types text/plain text/css text/javascript image/svg+xml image/x-icon application/javascript application/x-javascript; This will help to enable GZIP compression on your website if you are using NGINX servers. Compression for IIS 7 users If you are using Microsoft IIS servers, the process is slightly different. IIS uses two different types of compression – dynamic and static. You can follow the instructions in the Microsoft IIS documentation to enable both types of compression. Hopefully, this article has provided you an overview of how to enable GZIP compression on your WordPress website. This is one of the important optimization strategies and one that is relatively simple. Leave a comment below with your thoughts! If you enjoyed this post, why not check out this article on how to Reduce HTTP Requests in WordPress or ClassicPress! Post by Xhostcom Wordpress & Digital Services, subscribe to newsletter for more! Read the full article
How To Install The MySQL Database Server
The MySQL database server is a powerful tool that allows developers to expand the offerings of web sites, applications, and more. In fact, if it weren’t for the likes of MySQL, web server software like WordPress would have a lot of trouble functioning properly. This is because databases store crucial information those platforms depend on. And without the means to serve that database information up, there’d be no way for the software to use the data. That’s where database servers like MySQL come into play. MySQL is an open-source database server that can be installed and run on many platforms (such as Linux, Windows, and MacOS). MySQL is a relational database, so it’s perfectly suited for apps like WordPress. What is a relational database? Simply put, a relational database is a set of formally described tables that house data which can be accessed in different ways. The information contained within a relational database is easily compared because it is saved in columns and rows. But how do you install the MySQL database and how do you enter data into its tables? I’m going to walk you through that process. I’ll be demonstrating on the Ubuntu Server 18.04 platform. Although I’ll be using the command line, there are plenty of tools (such as phpMyAdmin) that make use of web-based or local client GUI applications for the process. Once you have your database up and running, with data inserted, that database can then be used for in-house or third-party applications. Although you’ll be learning how to add data via the command line, you shouldn’t have much problem with it. If you do, you can always hire one of many third party QA services like BairesDev to help you with the task.
What You’ll Need
The only things you’ll need to make this work are: A running instance of Ubuntu Server 18.04. A user account with sudo privileges. With those things at the ready, let’s install the database server, create a database, and add data.
Installing MySQL
Believe it or not, the installation of MySQL is actually quite simple. Log into your Ubuntu Server instance and issue the command: sudo apt-get install mysql-server -y Once the server is installed, you’ll want to start the server with the command: sudo systemctl start mysql Finally, you’ll want to enable the MySQL daemon to start upon server boot (in case you ever have to reboot the server). This is done with the command: sudo systemctl enable mysql
Securing the Installation
Before you can create that first database and add data, you must secure the MySQL installation. This allows you to do the following: Enable the Validate Password Plugin, which ensures that all passwords must adhere to strict password policies. Create a password for the MySQL admin user. Remove anonymous users. Disable root login. Remove the test database and access to it. Reload privilege tables. To run the security tool, issue the command: sudo mysql_secure_installation If you want to enable the Validate Password Plugin, type Y and hit Enter on the keyboard (otherwise hit any key). Next, create your admin user password and then answer Y for the remaining questions. Once you finish that, you’re ready to continue on.
Creating a Database
Let’s say you work with an IT software outsourcing company and you need to create a database of clients you work with. We’ll call that database clients. In order to create the database, you must first log into the MySQL shell. To do that, issue the command: sudo mysql -u root -p You will first be prompted for your sudo password. Once you successfully enter that, type the admin user MySQL password you created when you secured the installation. You’ll know you’ve successfully logged into the MySQL shell when you see the command prompt change
The MySQL shell is ready for commands. Let’s create a database called clients. To do that, issue the command: CREATE DATABASE clients; In order to add data to the new database, you have to switch to it with the command: USE clients; You should see in MySQL report that you’ve switched databases.
We’ve created and switched to the new database. Now it’s time to create a table in our new database. This is where the process requires a bit of thought. You need to know the information that will be stored in the table. Since this is clients, let’s say you want to store the clients: First and last name Business name Email address Phone number If a piece of data will contain letters and numbers, you’ll most likely use the VARCHAR (variable character) type. If the data is only a number, you’ll use the INT (integer) type. For our list above, we could get by with using all VARCHAR types (even the phone number will have the – character). Say you want to create a table for clients from the USA, using the list of data information above. The command to create this would be: CREATE TABLE usa (name VARCHAR(20), business VARCHAR(20), email VARCHAR(20), phone VARCHAR(20)); The numbers in parentheses denote the longest a string can be. If you know you’ll have entries that will require more than 20 characters, up that number. Type the command SHOW TABLES; to see the newly added table.
Our newly-created table.
Adding Data
Now we’ll add data to our table. Say you want to add the following client: Name – Paul McGowan Business – Xhostcom Email – [email protected] Phone – +1 646 224 2225 The command for this would be: INSERT INTO usa (name,business,email,phone) VALUES("Paul McGowan","Xhostcom","[email protected]","1-646-224-2225"); To make sure your data was successfully entered, type the command: SELECT * FROM usa; You should see the new entry listed.
Our new entry has been successfully added. Once you’ve finished working on the database, type the exit command and you’re back at the Linux bash prompt.
Conclusion
And that’s all there is to installing MySQL, creating a database, and then adding data to the database. With this information, you should be able to create all kinds of databases for numerous use cases on your server. If you enjoyed this post, why not check out this article on Setup ClassicPress on Ubuntu at Digital Ocean! Post by Xhostcom Wordpress & Digital Services, subscribe to newsletter for more! Read the full article
Create a Video Marketing Strategy
It’s becoming much harder to reach customers with traditional methods of digital advertising. Companies need to constantly step up their game to stay relevant on the web. If you feel the same, creating a video marketing strategy for your business might just what you are looking for. Video marketing isn’t exactly new, but it has been gaining traction as a valuable and relevant way of attracting visitors and customers. While online users often completely tune out forms of advertising like banner ads, video marketing continues to grow as a promotion channel. It’s also quite versatile as you can use it on social media, your website, in online advertising, and various other channels. Plus, unlike typical advertising, it integrates naturally into a website’s content or a social media feed. While video marketing may be one of the more difficult and expensive forms of marketing yourself to pull off effectively, the results are more than worth it. Just look at these stats — 12 times more shares on social media, 49% faster revenue growth, and 157% increase in organic traffic from SERPs than people who don’t use video. How could you not try it? That’s why, today I'll take a look at how to create an effective video marketing strategy, beginning to end and set you up for marketing success.
Why Video Marketing?
Your business probably operates on a tight budget, and you might spend a lot on advertising as it is. Wasting money by making bad investments can easily sink your company. Is video marketing really worth your time? For most companies, it almost certainly is. Video advertising is popular, versatile, and effective. If you have a social media account, you’ve undoubtedly noticed the explosion of branded video content. 85% of Americans watch videos online, reaching up to 95% in some other countries. Pretty much everyone watches videos, so using them will undoubtedly expand your reach. And it’s not just popular among users. 87% of businesses use video marketing, and 83% say it gives them a good ROI. In short, your competitors are doing it, and most of them are finding that it works well. That means they already have an edge on you. Considering how popular video content is among users, it’s not surprising to see its effectiveness as a marketing tool. 83% of consumers would share a branded video they enjoyed, and 85% want to see more of them from companies they like. For example, this brand video made quite a splash when it came out: Your consumers aren’t just willingly engaging with video content — they want to see more of it. It’s rare for advertising to elicit such a strong positive reaction, so this could completely revolutionize your marketing. You should certainly employ other, perhaps more well-established forms of online advertising alongside it. But video marketing isn’t just a fad that’s on its way out. More and more marketers are adopting this versatile form of promotion. Yet, many businesses choose not to pursue it simply because they don’t know where to start. If you’re among them, this guide to creating your own video marketing strategy will help you learn the basics.
Understand Yourself and Your Audience
It might be exciting to dive straight into recording and editing, but this process starts slow. Before you so much as begin making plans, you need to determine your target audience and understand your own business’ branding. Every business targets a buyer persona: the ideal person who’s most likely to be interested in your products, broken down by demographics like age, race, and interests. The same goes for marketing video content. Who is your target audience? Who is your content most likely to reach? Your first step should be doing some research and getting a rough idea of what platforms they’re on, what types of videos they’re interested in, and what tone and style resonates best with them. Finding success in video marketing starts with understanding your audience.
For example, if you decide to produce step-by-step software tutorials, how you go about this depends on your target audience. Some may prefer a straightforward and serious approach, while others would like an upbeat narrator. A slow-paced tutorial that covers all the very basics is appropriate if you’re targeting older users, but it would quickly frustrate a young adult that’s already well-versed in technology. Know your audience, and be prepared to craft your content around them. Besides that, figuring out what type of content is consistent with your branding is key to reaching your target audience. What sort of videos do similar companies put out? Do they create helpful guides, funny viral videos, professional interviews and explainer videos? It isn’t just about your audience; what type of videos work with your branding? Figure out how to use the brand you’ve built to put your own spin on things. There are many types of video content you can create, but you’ll need to make it yours if you want to leave an impact.
Lay Out a Basic Video Marketing Strategy
Once you have a good idea of who you’re marketing to, it’s time to start creating a rough draft of your strategy. That means doing all the deep research, making outlines, and generally deciding on goals and the way you’re going to go about this. First step: Research. The best place to start is figuring out and choosing the types of videos you want to focus on. Here are just a few examples: Explainer videos are essentially mini advertisements that convince customers to try your product. Brand videos focus on your company’s mission, vision, and goals. Product videos show demos, unboxings, and shots of your stuff in action. Instructional videos and tutorials walk users through using your product. Case studies feature your customers and the positive effects you’ve had on them. Vlogs give a glimpse into you and your company’s daily life. Pick a few that are appropriate for your brand and interesting to your target audience. This will help with the next step: planning out the particulars. How long do you want your videos to be? They might be less than a minute long, just a few minutes for bite-sized content, or even 20-40 minutes of in-depth discussion. This very much depends on the type of videos you’re making. You should also decide how frequently you’ll want to post them — daily, weekly, monthly? — and the tone you’re trying to emulate. Are your videos formal and professional, or casual and cheerful? Last, pick your platforms. Social media like Twitter and Facebook are usually best suited for short explainer videos and fun viral subjects, while YouTube and Vimeo host all kinds of medium- and long-form video content. You don’t need all the nitty-gritty details, but it’s good to have a general plan for your project’s scope. Create a Detailed Content Strategy Guide Once you have a basic idea of what you’re after, you should create a detailed content strategy guide. This will help you and anyone who’s working with you stay on brand and keep things moving forward. Keep it all collected in one document for easy sharing. In it, start by stating your reason for pursuing video marketing — what you hope to achieve, and what you want to give your customers. Also clearly identify your target audience, who your videos are made for, and how you plan on reaching them. You should next lay out the detailed guidelines for your video content, using the research you did before. Here are some good things to include: Target video length Tone Schedule Publishing platforms Branding considerations like colors to use in graphics Also state how you plan on managing the creation of videos before, during, and after their publication. List who’s involved at each stage of the process so they can be reached easily. If you have any resources like a schedule, brainstorming forum for pitching video ideas, or links to video content you’d like to draw inspiration from, make sure to list these as well. You might not know all of this yet, but start making this document anyway and fill it out to completion as you do more research. (By the way, it’s also a good idea to have a content style guide for your blog.) Figure Out the Budget Last, you need to determine how much this is all going to cost. This includes the initial price of purchasing equipment and software, plus any recurring costs like video hosting, advertising, or paying actors. If you’re starting out with yourself, a smartphone, and a free editing program, you might not need to buy anything. But creating more professional, high-quality content will usually mean paying some money. Here’s a brief list of items to take into account. Equipment: Video cameras, lenses, lights, tripods, and any other accessories you’ll need to improve the quality of your film. Locations and Studios: Setting up a recording studio, filling out the set/purchasing a green screen, or renting out a location to film in. Employees: Actors to play roles, film crew to work the cameras, lighting, and audio, editors to fine-tune the videos, and animators or artists to create graphics. Costumes and Props: Professional clothes, makeup, and props if necessary. Software: Editing software to clean up, cut, and tweak your videos. This is usually a one-time fee but it can cost several hundred dollars. Advertising: Don’t forget to budget the money it’ll take to push your video out there and get it seen. Depending on the type of videos you’re making and how much you’re investing into quality, you might need to pay thousands of dollars, or only a few hundred. It’s best to start small, gauge the success of your endeavor, and work your way up from there.
Bring it All Together
Once you have a concrete plan in place and the resources to pursue it, you can finally make the arrangements. Hire new employees or give your current ones tasks, write up and edit your first script, and start ordering props and setting up your recording studio.
Once you’ve gathered everything you need, you can finally record, edit, and upload your first video. This first experience should give you a better idea of the time the whole process will take, so you may want to tweak your schedule a little. Then you can get right to work on producing your next set of content!
Analyze and Optimize
No matter how much planning you put in, your first few videos definitely won’t be perfect, but it’s part of the learning experience. Part of having a video marketing strategy in place is to use analytics and social media metrics to help you gauge user reaction and figure out what you did right or wrong. Platforms like Twitter and YouTube come with comprehensive analytics built in, but if you’re hosting on your own site, you may need to use a tool like Google Analytics. These tools can gauge clicks and watch time across individual videos, which are invaluable statistics to examine in depth. If you’re posting somewhere like YouTube or on social media, you’ll also have access to engagement metrics like view count, shares, likes, and comments.
At first, you may want to post a variety of content and see what gets the best response. Every few weeks or months, make sure to go over your analytics and evaluate how well you’re doing. Use this to optimize your content strategy and see if you’re doing everything right or if it’s time to take things in a new direction. After that, it’s a matter of rinse and repeat.
Create a Detailed Video Marketing Strategy to Get More Clicks
Video marketing is definitely one of the more difficult promotion strategies to set up and maintain, but it’s also one of the most lucrative sources of growth. Creating an effective video marketing strategy is the key to finding success in your new endeavor. Identifying your brand and audience, planning around this knowledge, and analyzing your metrics to continue optimizing your strategy will help you grow and make better content. While high production value should be an end goal, you don’t need to spend thousands of dollars to get into video marketing. You can start with a smartphone camera and a free video editing program like Openshot. Pick a budget that matches your business and see what you can do. If you enjoyed this post, why not check out this article on Sitejet Review And Appraisal! Post by Xhostcom Wordpress & Digital Services, subscribe to newsletter for more! Read the full article
Creating a Strong Landing Page With WordPress or ClassicPress
When it comes to online promotion, landing pages are a great way to drive your campaign goals. However, creating a successful landing page is different than other types of pages and posts on your Wordpress or ClassicPress site. A powerful landing page is one that is carefully crafted with a few select (yet essential) elements. Whether you’re building one to generate leads, boost sales, or promote a product, there are certain features and techniques you can use to maximize their effectiveness. In this post, I’ll discuss some of the important elements of landing pages. Then we’ll walk you through the process of creating one in five simple steps. Let’s get started! Regardless of the type of campaign you’re building the page for, there are a handful of elements that should be included in the design of your landing page. The most important elements include: A catchy headline to grab the visitors’ attention. Clear, concise copy to help persuade the reader. High-quality images to break up the page. A Call To Action (CTA) that stands out. Nauto provides a good example of a landing page that effectively combines the above elements:
The purpose of a landing page is to inspire and drive action from the visitor. Therefore, it’s important to make sure that each element on the page serves a specific function to help further the mission. Now we’ve covered some of the essential elements of a landing page, it’s time to put them to use. Let’s take a look at how you can create a strong landing page with WordPress in five steps.
Create Your Landing Page Template (Manually or via Plugin)
Of course, there are workable methods for creating a landing page template. If you’re comfortable working with CSS, you can create your blank page template within an existing WordPress theme. You can do this by creating a child theme, then adding in new style.css and functions.php files. Next, you can create a custom page template, saved as page-landing.php. However, if you don’t want to worry about coding, you can use a plugin such as Landing Page Builder (although many options exist). Plugins such as this can make the process of designing your page quicker and easier.
Once you install and activate the plugin, go to LandingPages by PluginOps > Add New Page within WordPress, and launch the editing panel. Next, click on Templates. You can choose a template based on the type of campaign you’re building it for. If you want to work with a clean canvas, we recommend the ‘Blank’ option. You’ll find similar processes for all popular page builders, and some will even include landing page templates to help get you up and running quickly.
Customize Your Layout and Eliminate Unnecessary Elements
As we noted, landing pages should only include the most necessary elements. Even leaving in the default page title and sidebars included with WordPress pages and posts can be a distraction. There are plenty of different methods you can use to remove the page title in WordPress. For example, two options are to leave it blank or to modify your CSS. A simple display: none; property and value gets the job done in a pinch. Depending on the theme you’re using, you may also want to change the page layout to full width to eliminate unnecessary sidebar elements or padding:
Some pre-set templates from plugins (such as the blank template from the Landing Page Builder plugin) will sort this for you. You’ll usually be presented with a blank canvas for you to create your own layout:
However, you’ll want to be sure to delete any unnecessary links, buttons, and other elements before continuing. This could give you more work than if you started from scratch, so it’s worth bearing in mind when you make your initial decision on which approach to take.
Write Clean, Concise Copy Using Action-Based Language
Landing page copy should be straightforward, clear, and specific. This includes a brief, attention-grabbing headline that quickly explains the offer. For the page copy, focus on the benefits of the promotion. Think small, digestible paragraphs and bullet lists that make for easy scanning. It’s also a good idea to incorporate action-based language, such as ‘download your e-book now’ or ‘start your free trial today’. If you’re using the WordPress editor, you can insert and format your copy as you would any other page. Page builders usually let you insert your own using the design blocks:
With the advent of the Block Editor, the boundaries are becoming blurred. Both this and page builder plugins include modules for inserting body copy, headlines, lists, icons, and much more.
Add Images or a Video That Accurately Depicts Your Offer
Using high-quality images and videos can make your landing page more engaging and scannable. As a general rule of thumb, aim to use media that is representative of your offer. It’s also best to use unique, creative images rather than generic, stock photography. Again, if you’re using the WordPress editor, you can insert media via the content blocks:
If you’re using a page builder plugin, there’s usually a similar offering, and you may find more power under the hood. For example, you could add a background image and overlay the landing page text:
When choosing where to place your images, it’s important to consider your CTA and lead forms. Let’s look at this now.
Strategically Place Your Lead Form and One Call To Action
Landing pages are usually purpose-driven, making the CTA arguably the most important element on the page. Whether it’s a download button, a sign-up form, or something else, the CTA should stand out on the page to capture the visitor’s attention. Best practice is to keep it ‘above the fold’ – in other words, so that it’s visible without scrolling. This way it’s immediately visible and accessible, and also becomes the focal point of your landing page. When creating and styling your CTA button, consider using a contrasting color that stands out against the rest of the page. We also recommend using clear language so your visitors know exactly what they need to do. It’s worth taking some time to work on your CTA formatting and style, as it’s such an important part of your landing page:
It’s a good idea to work closely with your client (if that’s the working relationship dynamic,) given your CTA’s importance and value to the success of your promotion. Landing pages are an effective way to generate leads and drive conversions. However, if you want them to be the most effective, there are certain ‘must-have’ elements to include during the design and creation process. In this post, we explained how you can create a strong landing page with WordPress in five simple steps: Create your landing page template (manually or via a plugin). Customize your layout and eliminate unnecessary elements. Write clean, concise copy using action-based language. Add images or video that accurately depicts your offer. Strategically place your lead form and one CTA. Do you have any questions about creating a landing page with WordPress? Let me know in the comments section, and if you enjoyed this post, why not check out this article on 9 Top Call To Action Plugins For WordPress or ClassicPress! Post by Xhostcom Wordpress & Digital Services, subscribe to newsletter for more! Read the full article
Backlinks on your Wordpress or ClassicPress site are still one of Google's top ranking factors and have a significant impact on the success of your blog.
How to Generate Backlinks for Your Wordpress or ClassicPress Site http://www.xhostcom.com/how-to-generate-backlinks-for-your-wordpress-or-classicpress-site/
Vue vs Angular Framework Comparison
Selecting a front-end framework can be a tricky and time-consuming process, and many would be developers encounter this dilemma whilst getting "information overload in the process! In today’s article, I am going to quickly compare a couple of JavaScript frameworks which are popular choices, Vue vs. Angular. Let’s look at their history, job market, and learning curve, and other characteristics that will help us determine the winner. After that, I guess, you’ll be able to decide which one to pick for your front-end or full-stack development project.
Library vs. Framework
Let us get the terminology clear before we dive into discussing the features and practical uses of the frameworks in question. Some developers use these terms ‘library’ and ‘framework’ interchangeably, but they’re actually different. A Library is a collection of reusable code that is used to solve common problems. There are various libraries out there for addressing different problems. For example, we have libraries for performing mathematical calculations. We also have libraries for machine learning, and so on. A framework provides us with a lot of reusable code, just like a library, but it also gives us a structure or a skeleton for application development. So when using a framework, we have to build our application according to that framework. Frameworks have opinions in terms of how we should structure our applications, how the application should get started, how various components should interact with each other, and so on.
Why Use Frameworks and Libraries?
Angular and Vue are both examples of popular frameworks for building front-end applications. One of the questions we get most often is, “Why do we have to use a framework or a library to create our apps? Can’t we get by with plain old JavaScript?”
The answer is, “Yes, you certainly can.” But that would be a waste of a lot of time. Here is the reason. Imagine you want to build a desk. Would you buy pieces of wood and put them together? Or you’d prefer to go to the forest and cut the trees first to get wood? There’s no reason to cut the trees, of course, when there is plenty of wood ready for you to reuse. We use frameworks and libraries to maximize our productivity and speed up the web development process. There is a lot of code that’s tested and ready for us to reuse without having to reinvent the wheel, in a similar way to some of the well known CSS Frameworks. The concept with the above is to shorten the development time of a site or app by using pretested and laid out blocks which just make life a lot easier.
Vue.js vs. Angular: Popularity
Vue and Angular are among the top tools used for building web apps these days. But which of the two participating in the Vue vs. Angular duel is better? Let’s find out right now. We suggest that you look at the results of this StackOverflow developer server in 2019. Here’s the list of the most loved web frameworks.
As you may see, the winner is React, which we’re not going to discuss in this article. But it was closely followed by Vue.js last year, and Angular seems to be losing its popularity compared with 2018. Still, when it comes to large businesses, Angular is definitely a favorite here. It’s used not only by Google but also by other big companies like Nike, Lego, and The Guardian. Notwithstanding its being extremely popular with developers, Vue is somewhat neglected by large corporations. Still, it’s gradually picking up and being adopted by more and more companies. Now small businesses like GitLab, Repro, and 9Gag use Vue to create their projects, and chances are other companies will soon follow their example.
Angular vs. Vue: History
Now that you know which of the two frameworks is more popular with developers, it’s about time we took a quick look at their history. Angular is one of the oldest frameworks. It’s developed by Google and was initially released almost ten years ago. Until 2016, it used to be called Angular.js. In 2016, the Angular team released Angular 2, which boasted lots of improvements, including the support for Ng Modules. But, in fact, the second version had nothing in common with Angular.js. It’s possible to state that it was a completely new framework. So, to reduce confusion, the Angular team decided to drop the “js” from the original name, and they called the new framework “Angular.” This made a lot of developers unhappy. Their apps, which were developed with Angular.js, had to be rebuilt using the new version. Also, over the last three years, there have been several other releases, including Angular 4 that came out in 2017. Unlike Angular, Vue wasn’t created by a huge tech company. It was designed by an ex-Google employee six years ago. Presently, it’s maintained by a group of enthusiasts. Even though it’s a new tool, it has gained a lot of popularity over the past couple of years and is on the increase among many web technology outfits due to its clear documentation, which makes it easier to be used by large teams.
Angular vs. Vue: Differences
As you know, Angular is not just about creating and rendering components. Though it has components too and also follows a components-driven approach, Angular has earned the reputation as a complete framework or even platform. It boasts a rich set of tools that help you with developing modern web apps. All these tools you need for very large apps ship as part of Angular developed by the Angular team. So, you don’t even need to rely on some third-party vendors. Additionally, it uses the native API, HTML templates for the components, and CSS, which you can easily add if need be. On the downside, it uses Typescript as a language, which is pretty hard to master. Just like Angular, Vue is a complete solution. Though Vue boasts fewer features than its counterpart, this is increasing, for example with the introduction shortly of Vue 3 and the Vue Composition API, and it’s widely used for building UI components in the web application market. It also has routing and state management solution courtesy of the Vue team. Similar to Angular, it uses native API, HTML templates, and CSS. As you see, Vue is quite similar to Angular, especially from the syntax perspective.
6. Angular vs. Vue: Learning Curve
Angular has always been famous for having a steep learning curve because it’s a full-blown framework. In contrast, because Vue is less complex and , it has fewer concepts that you need to learn and understand with less complicated syntax. I would say, learning Vue requires a smaller amount of time and effort than its counterpart Angular. So, if you’re starting out, I would say – start with Vue. Moreover, it gives you tons more job opportunities Once you learn Vue, if you want to expand your career options or just curious, you can proceed to master Angular.
7. Angular vs. Vue: Performance
We can rightly note that both Vue and Angular offer pretty good performance to users. They might differ on your machine or your exact requirements, or in your web app, of course. But, in general, both tools are darn fast and efficient. One thing to note, though, according to the benchmark test run on the frameworks in question, Angular was found to be a bit slower. Still, this is hardly surprising, since Angular ships with a pretty big codebase. Consequently, the apps you create with this tool are more heavy and unwieldy. Hopefully, this will drastically become better in the future versions (Angular 7 and higher), where Angular will use a more improved renderer leading to a smaller codebase. If you enjoyed this post, why not check out this article on How To Build Vue Wordpress Rest API Websites Post by Xhostcom Wordpress & Digital Services, subscribe to newsletter for more! Read the full article
What Is Above The Fold Content in Wordpress or ClassicPress?
Above the fold content is an important part of website design and site building with Wordpress or ClassicPress. Although the notion has become more and more complex with each passing year. While it may not be seen as consequential as it once was, it still requires understanding and consideration for all websites seeking to present an engaging experience for their visitors.
What Is Above The Fold?
The concept of above the fold goes back centuries, to the beginnings of the printing press. Newspapers, due to the way they were printed on large sheets of paper, were folded once they hit the news-stands. This led to only the top half of the paper is visible to the passer-by. The newspaper industry quickly worked out that to garner an audience, they must present attention-grabbing headlines, content, and imagery on the top half of the page. This basic principle remains the same for digital content. Of course, websites do not have a physical fold like newspapers, the fold in this regard relates to the scrollbar. Anything that isn’t visible immediately, that requires scrolling, is considered below the fold. Unfortunately, the digital version of above the fold isn’t quite as simple as the print version.
Dimensions
The first consideration for a website is how its dimensions appear to the reader. Not all screens are the same. What’s more, with the proliferation of pads and phones, each site presents in vastly different ways. That’s not to mention issues regarding screen resolutions and browser plug-ins. Phone dimensions have become arguably the most important area to consider carefully, with its use eclipsing desktops in 2016. Mobile phones come in various shapes and sizes, as do their screens, so unlike a broadsheet newspaper, the fold line is a far less predictable concept.
Online Tools For Defining Above The Fold Placement
There are many free online tools you can use to visually test and place different aspects of your website relating to its “Fold”. While these are extremely helpful to help you get a physical idea of the layout, they can only provide a superficial presentation of the website and not an in-depth analysis. For this reason, it is recommended that a full website optimization is carried out.
Best Practices
While it is true there are no hard and fast rules for above the fold placement, some best practices often work as helpful guidelines. Some of these are common sense ideas, such as ensuring the most engaging content is above the fold. Other practices relate to the previously mentioned dimensions, such as the standard 1,000 pixels wide – 600 pixels tall fold size of 1,024 by 768-pixel screens. Most screen sizes are higher than this in 2018, however, so adjusting your website accordingly is important. It is also important to never assume best practices means orthodoxy. For many years, websites have been designed like newspaper front pages, but this has led to a kind of “templatization”, whereby the majority of sites look the same. Innovations, such as vertical scrolling (or clicking) means the concept of above the fold is literally flipped, and the experience feels a lot more natural to the reader as a result. Some websites, in fact, have done away with the fold altogether, designing pages with no below the fold content and eliminating the problem entirely. These “Compact” designs are aesthetically pleasing the eye and are able to fit all screen sizes. One of the worst things a website can do is present a “False bottom” to the page. This is where a site has further information that requires scrolling, but its existence is not apparent to the visitor. This is the worst of all worlds. A fold need not be an obstacle, it should flow naturally and draw the visitor in. There is some more information on this in this article.
Call To Actions Above Or Below The Fold?
One of the myths about above the fold designs is it is always best practice to have a Call To Action (CTA) clearly viewed instantly. This is, like much related to the topic, an over-simplification of the concept. Where to put the call to actions depends on several factors, most consequentially: Certain visitors Uncertain visitors that are familiar with your product – or the proposition is simple Uncertain visitors that are presented with a complex proposition Certain visitors are those who are likely to react to the call to action as they have largely made their mind up before visiting the site. This is where known brands have an advantage, as there is little for the “certain visitor” to learn about a product or service. In these cases, placing a call to action above the fold is only a matter of convenience. For uncertain visitors that understand the call to action simply or that have some knowledge of the product or service, placing the call to action above the fold is generally best practice for much the same reasons as those listed above, although the informative content is also important. For uncertain visitors that are presented with a complex proposition, such as a product or service that isn’t obviously beneficial to them, placing the call to action above the fold will not suffice. What is required is a more in-depth explanation of why your call to action should be acted upon. In fact, placing your call to action up front can appear a little pushy. Put simply, the call to action should be placed in a position whereby the visitor has been most persuaded to act upon it.
Placement Of Ads
It should always be understood that most of the attention, no matter how tactically you design your site, will still be focused above the fold. Therefore, it stands to reason that to maximize ad engagement that you should flood the area with ads right? Well no. Google algorithms penalize this practice severely and you could ruin your website’s ranking immeasurably if you are not careful. What’s more, you can push important information not just below the fold, but beyond the patience of your visitor. Ad placement is a complex balance that requires knowledge of bounce rate, engagement analysis, and user behavior. These decisions are best made with the right data to hand.
The Importance Of Above The Fold
As should be apparent at this stage, the importance of above the fold design is essential, but complex. As a result it’s wise to be wary of any advice that deals in absolutes. It is certainly true to say that user habits have changed enormously from the early days of the Internet. During the 90’s, due to slow connection speeds and ponderously slow websites, it was common for most “Surfers” to rarely read anything below the fold. These days people are far more likely to use the scroll wheel on their mouse. This has thankfully led to cramming, where information was stuffed above the fold, largely dying out. It is far more common these days to be greeted with minimalist and elegant designs that allow the visitor to discover what the site has in store A recent Google study showed that ads appearing above the fold had a 73% visibility, whereas those below it had just 44%. But this should be weighed up with the fact that content that draws the viewer in narrows that gap considerably, and ads can be an obstacle for that. As ever with this subject, context and balance are key. If you enjoyed this post, why not check out this article on CSS Flexbox In A Nutshell! Post by Xhostcom Wordpress & Digital Services, subscribe to newsletter for more! Read the full article
If you want your Wordpress or ClassicPress site to rank high on Google, you need to take backlinks more seriously than ever before!
How To Build Backlinks in Your Wordpress or ClassicPress Site http://www.xhostcom.com/how-to-build-backlinks-in-your-wordpress-or-classicpress-site/
Selecting a front-end framework can be a tricky and time-consuming process, and many would be developers encounter this dilemma.
Vue vs Angular Framework Comparison http://www.xhostcom.com/vue-vs-angular-framework-comparison/
Vue JS Inputs and Cors with Fetch Method
When it comes to online promotion, landing pages are a great way to drive your campaign goals.
Creating a Strong Landing Page With WordPress or ClassicPress http://www.xhostcom.com/creating-a-strong-landing-page-with-wordpress-or-classicpress/
Writing articles for WordPress or ClassicPress on a blog can be a good way of relaxing, letting go of daily tensions and a good method to control stress
Top Tips to Become a Freelance Writer with Wordpress or ClassicPress http://www.xhostcom.com/top-tips-to-become-a-freelance-writer-with-wordpress-or-classicpress/
Images play an important role in any Wordpress or ClasicPress website.
Another common strategy that several store owners use to optimize product images is to run them through an image compressor tool. http://www.xhostcom.com/resizing-images-in-woocommerce-for-wordpress-or-clasicpress/
CSS Flexbox In A Nutshell
As web design trends have evolved since the early days of the internet, there have been different standard ways to arrange elements on a website. CSS flexbox is a relatively new yet powerful way to create layouts and something every web developer and designer should be familiar with. If you don’t know how to use it yet, this in-depth flexbox tutorial aims to change that. The post below will talk about what flexbox is, why it matters, and its underlying concept. After that, we will go over the CSS properties and values associated with flexbox in detail and finish up with an example of a use case. If you don’t know how to use it yet, this in-depth flexbox tutorial aims to change that. The post below will talk about what flexbox is, why it matters, and its underlying concept. After that, we will go over the CSS properties and values associated with flexbox in detail and finish up with an example of a use case.
What is CSS Flexbox?
Flexbox stands for flexible box. It’s a layout module for CSS aimed at giving you an efficient way to arrange, organize, and size website elements to create highly adaptive designs. Of course, the technology to place web components on a page is not new. Since the beginning of the Internet, web designers have used different ways to place images, text, and other content where they wanted it to be. However, these were either not suitable for responsive design (tables), were never intended for as a layout tool in the first place (float), didn’t allow you to define equal heights for elements (inline-block), or had other issues. So, while designers and developers made do for a long time, there were still a bunch of design patterns that were either impossible or needed JavaScript to work. Common examples are vertical centering and equal columns, two of the holy grails of web design. How is Flexbox Different? The way flexbox works is quite simple on the surface: You have a container (flex container) with children (any elements contained within, called flex items), which are placed along flex lines. Lines and items can be manipulated in layout, size, spacing, and more along both the vertical and horizontal axis using a multitude of operators. This allows you to best take advantage of the available space and lets elements arrange themselves automatically according to it. If that is hard to visualize, here’s a schematic (courtesy of W3.org) to make things clearer:
Still not entirely sure? I can’t blame you. Let’s talk about it in more detail. The Underlying Concept As mentioned, flexbox is a whole CSS module, not a single property. Therefore, it comes with a whole lot of its own operators, some for the parent container, some for its children. To understand how they work, it’s important that you know the concepts and terminology of flexbox, which are displayed in the image above: main axis — This is the axis at which the items are laid out. Important: it can be both vertical or horizontal, depending on the flex-direction property. main-start, main-end — These represent the start and end point of where items are arranged. main size — This denotes either the width or height of the flex items, depending on the direction of the main axis. cross axis — The axis perpendicular to the main axis. Its direction, too, depends on how the main axis is defined. cross-start, cross-end — Start of and direction in which flex lines will be filled. cross size — Denotes the other dimension of flex items that is not defined by main size. writing-mode — Allows you to switch the direction of writing from left-to-right to right-to-left or even to vertical. It’s a work in progress with little to no browser support, however, it’s important to know for some of the properties further below. As you can see, a lot about flexbox is rather abstract and not absolutely defined. Consequently, much of the CSS below is dependent on your setup. When to Use Flexbox While you can use flexbox to build entire web pages, however, that’s not the recommended use case. For larger layouts, consider Grid (more on that some other time). Flexbox, on the other hand, is most appropriate for small-scale layouts and applications, such as: navigation menus card layouts media items web forms Browser Support Flexbox was first proposed at the beginning of the past decade and recommended by the W3C for adoption in 2012. Since then, browsers have started supporting it and, by now, all modern browsers are able to deal with flexbox.
Available Flexbox CSS Properties
Alright, now that we have settled the theory, let’s see what flexbox can do. With the properties below, you can manipulate your layout both by assigning traits to the container and also to items individually. We will start with the former and then move on to the latter. flex-direction This defines the main axis and, as a consequence, the direction in which your flex items are placed. This also allows you to change the order of items, which used to require altering the underlying HTML. Available properties are: row — The default. Arranges flex items left to right unless you are in a right-to-left environment due to writing mode. row-reverse — Arranges items horizontally but in reversed order. column — The same as row but vertical with items arranged top to bottom. column-reverse — You can probably guess this one. column-reverse displays items bottom to top.
flex-wrap The default behavior of items within a flex container is to arrange themselves in one row. flex-wrap allows you to change that. nowrap — The default value that places all items in one line. wrap — If a single line isn’t enough, with this, items will arrange themselves into multiple lines from top to bottom. wrap-reverse — Same as wrap but with items ordered from bottom to top.
flex-flow This is a shorthand for flex-direction and flex-wrap. Usage: .flex-container { display: flex; flex-flow: row wrap; } The flex-flow property allows you to define both main axes of the container. The default value is row nowrap, all possible values from the two properties above apply. justify-content The next flexbox CSS property defines the item alignment on the main axis. It decides what happens with any available free space and has some control over the alignment when items get wider than their container. Here are the values you can choose from: flex-start — Default value. Items align towards the front of flex-direction. flex-end — Places items at the end of flex-direction. start — Defines the beginning of writing-mode as the starting point. end — Moves items towards the end of writing-mode. left — Aligns flex items towards the left edge of the container. If that doesn’t make sense due to flex-direction, it behaves like start. right — The same as left but for the right edge. center — Items center horizontally. space-between — Distributes items evenly within the container. The first towards the start, the last toward its end with even space between them (hence the name). space-around — Items are evenly placed with equal space around them. Note that it behaves like margin or padding where you have double the space between items as towards the edges. space-evenly — Items reside evenly placed within the container but the spacing between each and toward the container edges is even.
Beware that browser support for these values is a bit spotty. For example, space-between is not supported in some versions of Edge and start/end/left/right aren’t in Chrome yet. The safest values are flex-start, flex-end, and center. align-items This property controls how items align across the cross axis. It’s the equivalent of what justify-content is for main axis. Here are the available values: stretch — Default value that stretches items to fill the container. flex-start, start, self-start — Aligns flex items at the start of the cross axis. start and self-start adhere to flex-direction and writing-mode respectively. flex-end, end, self-end — The same as above but placing items at the end of the cross axis. center — Items reside at the center of the cross axis. baseline — Aligns flex items along their baselines.
Here, too, it’s important to note the browser support. align-content This property is responsible for controlling flex lines if there is extra space available on the cross axis. It’s similar to justify-content. You need more than one row of items for the values below to take effect. stretch — Default value. The lines stretch to take up all available space. flex-start, start — Items align at the beginning of the container. flex-start adheres to flex-direction, start to writing-mode. flex-end, end — Same deal as flex-start and start only that items move to the end of the container. center — Centers items on the cross axis inside the container. space-between — Evenly distributes flex lines inside the container with the first row being placed at its start, the last at the end. space-around — Even distribution with even space around each line. space-evenly — Even distribution with equal space around items.
order Beginning with this one, the remaining rules all apply to flex items instead of the container. The order property controls in which order items appear inside their container.
For example, the default value for all flex items is order: 0;. If you want to move a particular item to the front or back of the line, you can do so by giving it a value like 1 or -1. This also works across row or column boundaries unlike row-reverse or column-reverse which will reverse the order per line individually. Here’s the code for the example image above: 1 2 3 4 flex-grow Controls the ability for flex items to grow within the container as necessary. flex-grow takes a number that describes a proportion. Example: if all items are set to flex-grow: 1; they are all evenly distributed inside their container. However, if one is set to 1 and another to 3, the latter will try to take up three quarters of the available space.
flex-shrink Similar to flex-grow but defines the ability of items to shrink in relation to other items. The higher the number, the more an item will reduce in size and vice versa. flex-basis
Defines the default element size (height or width depending on the axis). It can be a relative value like 15% or absolute like 30px. Here’s how I achieved the above: 1 2 3 4 Other possible values: auto — This is the default. content — Sets the size according to the item’s content. It’s not well supported yet, same as max-content, min-content, and fit-content that also exist. flex Shorthand for flex-grow, flex-shrink, and flex-basis together. Only the first parameter is mandatory and the default value is 0 1 auto. 1 2 3 4 It often makes sense to use this property instead of flex-grow, flex-shrink, or flex-basis individually as it applies sensible values to the operators you are not using. flex can also take initial (adheres to the defined size if there is one), auto (making it fully flexible), and none (making all items inflexible). You can use this, for example, to set some items to a fixed width (via initial) while having others adjust themselves to the available space. align-self This allows you to override the alignment of individual items. It has the same values as align-items.
Flexbox Example: Columns with Equal Height
As a last step, we will go over an example of how to use the above. Let’s create a flexbox layout with columns of equal height. You can build it with HTML like so:
Column 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Column 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi interdum et ex a efficitur. Nam consequat elementum tellus, at varius lectus condimentum vulputate.
Column 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi interdum et ex a efficitur. After that, add this CSS markup to it: .flex-container { background-color: #aa278c; border-radius: 10px; display: flex; margin-bottom: 10px; } .flex-container > div { background-color: #F7941F; border: 1px solid; border-radius: 10px; flex: 1; font-size: 20px; font-family: tahoma; line-height: 40px; margin: 10px; padding: 16px; width: 60px; } .flex-container > div h2 { text-align:center; } And here is the result:
Why does this work? Well, the only important parts are actually that the flex container is set to display: flex;, while its children take on flex: 1;. All the other markup is just for styling. As you may recall, doing this sets flex-grow and flex-shrink both to 1 and flex-basis to auto. As a consequence, all items take up the same amount of space inside the container and their initial size automatically adapts to the available dimensions. The result: effortless columns of equal height.
Flexbox in a Nutshell
In web design, there are many different ways to create layouts and arrange elements. Flexbox is one that has become more and more common. The CSS module offers a lot of benefits, especially for dynamic layouts, smaller page elements, and mobile design. Above, we have gone over what exactly flexbox is, its abilities, and how to use it. Next time you find yourself wanting use float or inline-block, take a second to think whether or not flexbox might be the better solution. If you enjoyed this post, why not check out this article on how to Add Custom Fonts to your WordPress or ClassicPress Site! Post by Xhostcom Wordpress & Digital Services, subscribe to newsletter for more! Read the full article