get free hosting

get free hosting Web hosting click on the link: "https://www.000webhost.com/

How to Add Google AdSense to WordPress and Monetize Your Blog

If you currently have a WordPress site or blog, you’ve most likely considered ways to use it to generate income. The process might seem intimidating, however, especially if you are new to the concept of site monetization. In terms of general maintenance, simply optimizing your content and links for usability and search engines can be labor intensive enough for a new site owners, without the extra layer of implementing a revenue scheme.
Fortunately, monetizing your website doesn’t have to be difficult or confusing. There are plenty of popular and well-tested ways to do it, Google AdSense being one of the most popular. In fact, adding Google AdSense in WordPress is also one of the easiest methods of generating passive income from your site.
In this post, we’ll show you how to add AdSense to WordPress which is hosted on 000webhost free website hosting and what the benefits are. We’ll also discuss other methods of monetizing your blog or site, to help you increase your income further. We have a lot of ground to cover, so let’s dive in!

What Google AdSense Is (And Why You Should Use It)

Google AdSense
Google AdSense is a Cost Per Click (CPC) program that enables you to show advertisements on your WordPress site. There are numerous benefits of using Google AdSense in WordPress to monetize your site. Here are a few key ones:
  • It’s an easy way to generate passive income. Setting up AdSense is a simple and straightforward process once you know how (see our instructions below).
  • There is outstanding support from Google. Google’s AdSense support forum is filled with tutorials on how to increase your revenue, along with answers to any other questions you may have.
  • Ad formats are flexible so that they don’t dominate your site’s content. You can block any ads you don’t want to show (such as those from competitors), style text advertisements to match your site, and control where they appear.
  • You can use native ads to further control their look and feel. With the use of Native Ads in AdSense,  you can make sure that your advertisements adhere to your site’s style and conform to your standards.
There are plenty more reasons for using Google AdSense in WordPress for your monetization efforts. However, we believe that for those new to the game, its ease of use is one of the most compelling. Let’s learn how to set up this tool to work on your site, so you can start receiving payments.

How to Manually Add Google AdSense in WordPress (In 3 Steps)

Before you add AdSense to WordPress, you will want to create a site backup in case something goes wrong during the process. Then, you can proceed to the first step.

Step 1: Sign Up for Google AdSense

The first thing you’ll need to do is create an account with Google AdSense. Once you are on the AdSense site, click the Sign Up Now button:
Sign up for AdSense
The first screen will list your current Gmail accounts and ask you to select the one you want to use, or prompt you to create a new account altogether. Once you’ve selected the account you want, you will be presented with the sign up form.
Fill in the information, accept the Terms and Conditions, and then click Create Account. While signing up only takes a few minutes, Google may take up to 3 days to approve your application, so you might need to wait a while.

Step 2: Create an AdSense Ad

Once your account is approved, you can start using Google AdSense in WordPress. Sign in to your new account, and access the AdSense dashboard:
New Ad Unit
Under My ads > Ad units, click on New ad unit. Now you will need to name your ad. We suggest something descriptive, so you can remember it and where it is placed on your site. This is especially important if you have multiple ads and/or sites.
Next, you will need to choose an ad size (be sure to select Responsive so the ad can display correctly on all devices), layout, and type:
Ad settings in AdSense Dashboard
The Backup Ads option tells Google what to do if there are no targeted ads available to display. You can use this to point to a specific URL, show the space as blank, or fill the space with a solid color:
AdSense generated code
Once you’ve edited your ad’s settings, click Save and Get Code. You will see a new window with the newly generated AdSense code. Copy this code and save it for the next step.

Step 3: Add AdSense to WordPress

Hopefully, you have saved the code generated in the previous step, as you will need to it to use Google AdSense in WordPress. Start by logging into your WordPress dashboard. Then go to Appearance > Widgets.
Create a new widget by selecting Text from Available Widgets, then dragging and dropping it where you want the ad to display. Generally, the sidebar is a good place to start, so you can see how it fits with the rest of your site without impeding your content:
Adsense code in new widget.
Once the widget is in place, provide a title for it and then paste the code from the previous step into the content field. Once you are done, click on Save.
Preview your site to make sure your ad appears correctly. If the formatting is off for the area you chose, you can either go back to AdSense and edit the ad unit to fit your layout, or you can pick a different location for it by creating a new widget using the steps above.

How to Add AdSense to WordPress Using a Plugin

Ad Inserter Plugin
While manually installing Google AdSense in WordPress is a fairly straightforward process, you may be more comfortable using a plugin instead. There are plenty of them to choose from, so we recommend you research each option by reading through its reviews and ratings. For the purposes of this walkthough, however, we recommend Ad Inserter for its ease of use and feature set.
Just as with a manual installation, we recommend that you perform a site backup before adding this plugin. You will also need to have an active AdSense account. Follow the first two steps above to generate the code you will need, then install the Ad Inserter plugin.
Now, on every post or page you create, you will see the Ad Inserter menu. To get started, go to Settings and select Ad Inserter:
Add code to Ad Inserter to use Google AdSense in WordPress.
In the ad box, paste your AdSense Code. You will need to choose an option for automatically inserting ads (such as Before Post). Enable one or more page types you’d like your ads to appear on, then click Save.
For best results, you’ll want to take some time to review the most common Ad Inserter settings, to take full advantage of Google AdSense in WordPress. If you run into issues, such as your ads not displaying properly, you can also use Ad Inserter’s troubleshooting guide for assistance.

3 Ways to Monetize Your WordPress Blog

We’ve focused on using Google Adsense in WordPress as a means of monetizing your site or blog, because it is a very simple way to get started. However, if you are looking to boost your site’s income-generating power, there are several other methods you can and should look into.
Before trying any of these, we recommend you invest some time into building an email marketing list. This will create a foundation that you can use to ensure future income generation as you grow your site and its offerings.

1. Become an Affiliate Marketer

Nerdwallet website
NerdWallet is a successful affiliate site dedicated to personal finances.
Affiliate marketing is a wildly popular method for generating income from your WordPress site. Simply put, it’s a way for you to earn a commission by promoting products for other people or businesses. There are numerous benefits of using this method to earn money:
  • Minimal upfront costs. Joining an affiliate program is free, and usually involves a short online registration process.
  • No stock or overhead to worry about. Since you are promoting someone else’s product, you don’t have to worry about carrying stock, processing orders, shipping items, or product support.
  • It can be done from almost anywhere. Because your marketing takes place online, you can generate and maintain your income from any location, as long as you have an internet connection.
While the concept is simple and getting started is fairly straightforward, affiliate marketing requires dedicated effort on your part to be successful, at least in the beginning. To get started, we recommend you spend some time reading through Neil Patel’s site, starting with his step-by-step guide.

2. Offer Online Courses

Marie Forleo online business courses
Marie Forleo’s online business courses are extremely popular.
If you are currently using your site to educate your readers, why not take it a step further and offer a full course at a set price? How you structure the course is up to you. You can offer it as a set of emails that they receive daily or weekly. Or, you can provide all of the lessons upfront so that users can work at their own pace.
Either way, some of the benefits of this method include that:
  • You are offering knowledge you already have. The effort involved will come from actually sitting down and creating the course, so there are minimal start up costs.
  • You can use it to build your email list. While your readers may not sign up for a newsletter, if they see something they can gain value from (like a full course on using social media or building a profitable business) they will be much more likely to part with their email information.
  • You can sell your courses to other sites to continue generating revenue. Sites such like Udemy and Skillshare enable you to build a course and sell it on their platform, earning you a commission each time someone takes the class.
If you decide to sell your online course through a site such as Skillshare or Udemy, you should also take a look at their affiliate programs. Participating in those as well could be a win/win for you. Not only will the website host your course, but you could generate affiliate income through their program on top of that.
If you’re looking for advice on how to get started, the Penny Hoarder offers a great resource on building an online course.  You can find plenty of other guides online for how to create a successful course.

3. Write an eBook

Pinch of Yum eBook
Pinch of Yum used their ebook to jumpstart their affiliate site earnings.
If you have specific expertise or something that you are passionate about, you may want to consider writing an ebook. Depending on your site’s current content, you may even have the beginnings of your ebook just waiting to be adapted. While the benefits of an ebook are similar to those of online courses, there is an added incentive that comes with establishing yourself as an authority on a topic. After all, is there anything more authoritative than being able to say you literally wrote the book on a topic?
In addition to selling your book on your site, you can also sell it other places online, such as Amazon. This is a smart idea because it can help generate more traffic for your site from larger and trustworthy platforms, especially if you start to garner positive reviews. In fact, the food blog Pinch of Yum jumpstarted their affiliate marketing efforts by first creating an ebook on food photography and selling it through Amazon, as well as on their site. As another example, ProBlogger Daren Rowse earned $72k in a week with his ebook. If you are interested in creating one yourself, you can use an online tutorial to help you get started.

Conclusion

It’s only natural that once you have created an online presence with WordPress, you will want to find a way to monetize it. Understanding how to generate income successfully isn’t always easy, however. Fortunately, using Google AdSense in WordPress is a simple way to get started, and will set you on the right path.
In this piece, we discussed how to add AdSense to WordPress in just a few steps. Then, we reviewed several other methods of monetizing your site, such as:
  1. Becoming an affiliate marketer.
  2. Selling online courses.
  3. Writing an ebook.

40 of the Best Free WordPress Themes for 2018

40 of the Best Free WordPress Themes for 2018

Choosing a theme for your WordPress site is similar to picking a WordPress host. You want to take your time and consider your needs before you make a selection. However, the wide selection of free themes on the market – both on the WordPress Theme Directory and third-party sites – makes it difficult to narrow your options down to the very best.
While we certainly can’t offer you a look at all available themes for your site, we can highlight some of the best free WordPress themes from around the web. Our selections all offer you variety as well as functionality. You can find themes for just about any niche in this list, including e-commerce, news, business, and photography.
In this post, we’ll discuss the importance of proper theme selection. Then we’ll give you a look at forty of the best free WordPress themes you might want to consider for your site in 2018. Let’s get started!

How to Add JavaScript to HTML

How to Add JavaScript to HTML

A visual demonstration of how to add JavaScript in HTML
In this tutorial, we’ll show you how to add JavaScript to HTML. The beginning will include a short introduction to JavaScript, while the rest of the guide will focus on various ways of adding JavaScript to HTML.
If you want to display static content, for example, a set of images, then HTML can do the job for you. However, static pages are slowly becoming a thing of the past. Most of the content today is interactive and includes flashy slideshows, forms, and menus. They enhance user experience and add dynamicity to the website. This is achieved by scripting languages and JavaScript is one of the most famous in this regard. It lets developers make websites that interact with the user and vice versa. Even though there are many other languages available, none of them is as popular as JavaScript. In order to utilize it to the greatest potential, it’s used in tandem with HTML.

Advantages of JavaScript

JavaScript was first known as LiveScript. But because Java was the talk of the town (the world really), Netscape deemed it right to rename it to JavaScript. Its first appearance dates back to 1995 within Netscape 2.0. Here are some of the best advantages of using JavaScript:

Minimalized server interaction

It’s a well-known fact that if you want to optimize the performance of a website, the best way is to reduce the communication with the server. JavaScript helps in this regard by validating user input at the client-side. It only sends requests to the server after running the initial validation checks. As a result, resource usage and amount of requests to the server reduces significantly.

Richer, user-friendly interfaces

By using JavaScript, you can create interactive client-side interfaces. For example adding sliders, slideshows, mouse roll-over effects, drag-and-drop features and so on.

Immediate feedback to the user

By using JavaScript, you can ensure that users get an immediate response. For example, let’s imagine a user has filled a form and left one field empty. Without JavaScript validation, they will have to wait for the page to reload only to realize that they left an empty field. However, with JavaScript, they will be alerted instantly.

Easy debugging

JavaScript is an interpreted language, which means that written code gets deciphered line by line. In case any errors pop up, you will get the exact line number where the problem lies.

Adding JavaScript to HTML

There are two ways to add JavaScript to HTML and make them work together. Now that we have talked about JavaScript and have seen what some of its advantages can be, let’s take a look at some of the ways we can link JavaScript to HTML.

Adding JavaScript directly to a HTML file

The first way to add JavaScript to HTML is a direct one. You can do so by using the <script></script> tag that should encompass all the JS code you write. JS code can be added:
  • between the <head> tags
  • between the <body> tags
Depending on where you add the code the JavaScript in your HTML file, the loading will differ. The recommended practice is to add it in the <head> section so that it stays separated from the actual content of your HTML file. But placing it in the <body> can improve loading speed, as the actual website content will be loaded quicker, and only then the JavaScript will be parsed. For this example, let’s take a look at the following HTML file that is supposed to show the current time:
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <script>JAVASCRIPT IS USUALLY PLACED HERE</script>
  7. <title>Time right now is: </title>
  8. </head>
  9. <body>
  10. <script>JAVASCRIPT CAN ALSO GO HERE</script>
  11. </body>
  12. </html>
Right now, the above code doesn’t involve JavaScript and hence can’t show the actual time. We can add the following code to make sure it displays the correct time:
  1. var time = new Date();
  2. console.log(time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds());
We will surround this code by <script> and </script> tags and put it in the head of the HTML code to ensure that whenever the page loads, an alert is generated that shows the current time to the user. Here’s how the HTML file will look after we add the code:
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Time right now is: </title>
  7. <script>
  8. var time = new Date();
  9. console.log(time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds());
  10. </script>
  11. </head>
  12. <body>
  13. </body>
  14. </html>
If you want to display the time within the body of the page, you will have to include the script within the <body> tags of the HTML page. Here’s how the code will look when you do so:
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Time right now is: </title>
  7. </head>
  8. <body>
  9. <script>
  10. let d = new Date();
  11. document.body.innerHTML = "<h1>Time right now is: " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds()
  12. "</h1>"
  13. </script>
  14. </body>
  15. </html>
Here’s what the final result would look like: A basic example showing how to add javascript to HTML and display time

Adding JavaScript code to a separate file

Sometimes adding JavaScript to HTML directly doesn’t look like the best way to go about it. Mostly because some JS scripts need to be used on multiple pages, therefore it’s best to keep JavaScript code in separate files. This is why the more acceptable way to add JavaScript to HTML is via external file importing. These files can be referenced from within the HTML documents, just like we reference CSS documents. Some of the benefits of adding JS code in separate files are:
  • When HTML code and JavaScript code is separated, the design principle of separation of concerns is met and it makes everything a lot more sustainable and reusable.
  • Code readability and maintenance is made a lot easier.
  • Cached JavaScript files improve overall website performance by decreasing the time taken by pages to load.
We can reference the JavaScript file within HTML like this:
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Time right now:</title>
  7. </head>
  8. <body>
  9. </body>
  10. <script src="js/myscript.js"></script>
  11. </html>
The contents of the myscript.js file will be:
  1. let d = new Date();
  2. document.body.innerHTML = "<h1>Time right now is: " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds()</h1>"
Note: Here it’s assumed that the myscript.js file is present in the same directory as the HTML file.

JavaScript example to validate an email address

JavaScript powers your application by helping you validate user input at the client side. One of the most important user inputs that often need validation is email addresses. This JavaScript function can help you validate the entered email address before sending it to the server:
  1. function validateEmailAddress(email) {
  2. var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
  3. return re.test(email);
  4. }
  5. function validate() {
  6. $("#result").text("");
  7. var emailaddress = $("#email").val();
  8. if (validateEmailAddress(emailaddress)) {
  9. $("#result").text(emailaddress + " is valid :)");
  10. $("#result").css("color", "green");
  11. } else {
  12. $("#result").text(emailaddress + " is not correct, please retry:(");
  13. $("#result").css("color", "red");
  14. }
  15. return false;
  16. }
  17. $("#validate").bind("click", validate);
In order to attach this function to a form input, you can use the following code:
  1. <form>
  2. <p>Enter an email address:</p>
  3. <input id='email'>
  4. <button type='submit' id='validate'>Validate!</button>
  5. </form>
  6. <h2 id='result'></h2>
Here’s the result that you would get after combining all the ingredients together in a HTML file:
Example of how to add JavaScript to HTML and validate email successfullyAnd if the validation is incorrect, the result will differ:
Example of how to add JavaScript to HTML and validate email unsuccessfully
Congratulations! You have learned how to add JavaScript to HTML with a few basic examples.

Final Word

In this article, we talked about the two different ways to add JavaScript in HTML code and once you get a hang of things, the possibilities of doing great things by using the two programming languages are endless. JavaScript can be used in combination with HTML to power modern web applications that are intuitive, interactive and user-friendly. By using simple client-side validation, it reduces server traffic and improves the overall efficiency of the website.

BIDDING ON FREELANCE WORK: THE GOOD, THE BAD AND THE UGLY November, 04, 2013  by  Linda Singer We have heard about the growth in ...