, , ,

What, Why, and How: Common WordPress Errors and their Solutions

Literally, nothing is idiot proof, not in any case WordPress.

In spite of the considerable adaptability and heap of components that put whatever is left of the CMS swarm practically out of the opposition, WordPress sites are similarly as inclined to glitches and mistakes as anything.

But what makes WordPress special is the sheer amount of free help you can count on from the community. The Codex combined with support forums and millions of resources covering almost every possible aspect of WordPress will make sure that you’re not left on your own.

As part of my ongoing contribution to the growing list of WordPress resources, I have compiled a list of common WordPress errors, their causes, effects, and solutions for newbie web developers. So when faced with any of the following errors, which may seem like the end of the world, you can resolve it on your own in a matter of minutes.

1.Cannot modify header information

The Error:

When you visit your website URL, you get a message that starts with:

“Cannot modify header information – headers already sent by …”.

Why it happens:

The error essentially means that something else was sent before and after the actual header’s code could be processed. In this case, it’s most likely some errant characters or spaces, or maybe even a code snippet placed before or after the closing and opening tags in a WordPress script.

Solution:

Start by taking a closer look at the error message. It should look something like this:

Warning: Cannot modify header information – headers already sent by (output started at /path/blog/wp-config.php:76) in /path/blog/wp-login.php on line 43

The path within the brackets and the number at the end are the exact places of error. In this example, it’s line 76 of wp-config.php

Go to your WordPress installation directory and find the file that says ‘already sent the header information.’ Open it in a text editor like Notepad++.

Check line 76 and make sure there are characters, spaces, or code lines before tags<?php and after >? Save this file on your desktop: keep the name but change the ‘Encoding’ (you’ll see a box before the ‘Save’ button) to UTF-8.

Upload the file back to where you found it in WordPress directory via FTP.

Tip: Avoid this error in future by using JavaScript instead of the function for redirection purposes. wp_redirect()

2.White Screen of Death

The Error:

This one is so common that geeks abbreviated it ages ago (WSOD). And yet, it can still cause severe heart palpitations for anyone who’s confronted with the terrible, blank White Screen of Death

Basically, any time you try to visit any page of your WordPress website (even backend or admin), you’ll see a big fat blob of this:

WordPress Errors

Why it happens:

Most commonly, it happens because of WordPress plugin or theme compatibility issues.

Solution:

If you can still see the backend, login to your admin dashboard and deactivate all the plugins. Just every last one of them. After that, visit the site URL again.

Now activate your plugins one by one. After every plugin, you activate, refresh your browser window to see your website. The moment it breaks, you have found the culprit plugin. Contact the plugin and theme authors to discuss and resolve this issue.

If your backend is also compromised, deactivate the plugins via their files. Go to your WordPress installation directory in FTP and go to path:wp-content/plugins Rename the plugins directory to anything else to deactivate all the plugins. This will vanquish the WSOD — you can then move all plugins’ files to computer. Restore your directory namewp-content/plugins, and upload the plugins manually, one-by–one. Keep checking the front-end (browser window that displays your website) to keep track.

It’s tedious work. You just have to bear with it.

3.All posts display “404 Not Found” Error

The Error:

Anytime you visit your posts, you get this:

404 Not Found

The web server cannot find the file or script you asked for…which is baffling because you HAVE posts on your website and the stupid server should be able to find them.

Why it happens:

Common causes include anything from broken links to corrupted or deleted .htaccessfile.

Solution:

Let’s start with a simple and obvious-in-hindsight solution first.

Go to your WordPress admin >> Settings >> Permalinks. Choose another setting, hit save, and get back to your erstwhile setting. Now try visiting your posts again.

The above method fixes. .htaccess

If you still can’t see your posts, you’ll have to fix manually .htaccess as. For that, open your FTP client and access the WordPress directory. Look for the file in the same directory. /wp-includes

Now add this bit in your .htaccess file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Sometimes, it’s just a faulty URL. Before coming to the conclusion that something’s wrong, check other posts in various browsers.

4.HTTP 500 Internal Server Error

The Error:

You’ll see a message that looks something like this:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request…

Why it happens:

This particular error (and its fix) applies to all websites on the Internet. It can happen because of corrupted or in is.htaccess WordPress core files, compatibility issue (plugins or theme), exceeded memory limit, and more.

Solution:

1. .htaccess: Since a corrupted ‘set of direction is a new.htaccess file the most common cause, you can make a safe bet on this. Simply, find the file (as directed in 3 >> Solution) and cut it from the directory. Once you’ve done that already, revisit your website to see if the problem has been fixed. If the problem is fixed, go to your Admin >> Settings >> Permalinks and reconfigure the settings to automatically get the new file. .htaccess

2. Plugin/Theme Compatibility: Another common cause for this error. Make sure to deactivate all plugins and reactivate them one by one (as directed in #2 >> Solution). If none of the plugins caused this, then try switching to a default theme.

3. Allowed memory size exhausted: Can be another reason for internal server error. Increase PHP memory allocation.

4. WordPress core: Corrupted core files can be replaced by simply downloading WordPress again. Go to WordPress.org, download the latest version, and install it.

5.Execution Time

The Error:

This:

“Fatal Error: Maximum execution time of 30 seconds exceeded in /file-path.php on line 538.”

Why it happens:

Your server or script in question is taking too long to respond/process. Usually, the default execution time is 30 seconds, but it may vary depending on hosting provider.

Solution:

First, make sure you have a backup of your website content and database.

Now, there are three ways to fix this:

1. htaccess: Add the following code to this file to increase execution time to 60 seconds.

php_value max_execution_time 60

2. php.ini: You may need to ask your hosting provider for access to this file. Add the following:

max_execution_time = 60

3. Plugin: WP Maximum Execution Time Exceeded will let you set execution time to 60 seconds only.

, , , , ,

The most effective method to Install a WordPress Plugin – Step by Step for Beginners

Plugins enable you to add new elements to WordPress, for example, include a display, slideshow, and so on. There are a large number of free and paid modules accessible for WordPress. In this well-ordered guide, we will demonstrate to you best practices to introduce a WordPress module.

Before You Start

If you are using WordPress.com, then you cannot install plugins.

We often get complaints from users saying that they can’t see the plugins menu in their WordPress dashboard. It is because you are using WordPress.com, which has its limitations.

In order to use plugins, you will need to use self-hosted WordPress.org.

Install a Plugin using WordPress Plugin Search

The easiest way of installing a WordPress plugin is to use the plugin search. The only downside of this option is that a plugin must be in the WordPress plugin directory which is limited to only free plugins.

The first thing you need to do is go to your WordPress admin area and click on Plugins » Add New.

Install a WordPress Plugin

You will see a screen like the one in the screenshot above. Find the plugin by typing the plugin name or the functionality you are looking for like we did. After that, you will see a bunch of listings like the example below:

pluginsearchresults

You can pick the plugin that is best for you. Since in our search, we were looking for Floating Social Bar which happens to be the first plugin, we will click the ‘Install Now’ button.

WordPress will now download and install the plugin for you. After this, you will see the success message with a link to activate the plugin or return to plugin installer.

A WordPress plugin can be installed on your site, but it will not work unless you activate it. So go ahead and click on the activate plugin link to activate the plugin on your WordPress site.

That’s all, you have successfully installed your first WordPress plugin.

The next step is to configure the plugin settings. These settings will vary for each plugin, therefore, we will not be covering that in this post.

Install a Plugin using the WordPress Admin Plugin Upload

Paid WordPress plugins are not listed in the WordPress plugin directory. These plugins cannot be installed using the first method.

That’s why WordPress has the Upload method to install such plugins. We will show you how to install WordPress plugin using the upload option in the admin area.

First, you need to download the plugin from the source (which will be a zip file). Next, you need to go to WordPress admin area and visit Plugins » Add New page.

After that, click on the Upload Plugin button on top of the page.

uploadpluginwpadmin

This will bring you to the plugin upload page. Here you need to click on the choose file button and select the plugin file you downloaded earlier to your computer.

pluginuploadpage

After you have selected the file, you need to click on the install now button.

WordPress will now upload the plugin file from your computer and install it for you. You will see a success message like this after installation is finished.

plugininstalledmanual

Once installed, you need to click on the Activate Plugin link to start using the plugin.

You would have to configure the settings to fit your needs. These settings will vary for each plugin, therefore, we will not be covering that in this post.

Manually Install a WordPress Plugin using FTP

In some cases, your WordPress hosting provider may have file restrictions that could limit your ability to install a plugin from the admin area.

In this situation, your best bet is to install the plugin manually using FTP.

The FTP manager method is the least friendly for beginners.

First, you will need to download the plugin’s source file (it will be a zip file). Next, you need to extract the zip file on your computer.

Extracting the plugin zip file will create a new folder with the same name. This is the folder that you need to manually upload to your website using an FTP client.

You would need to access your host through the FTP manager. If you do not have your FTP username and password, then contact your WordPress hosting provider and ask them.

Open the FTP client on your computer and connect to your website using the login credentials provided by your web host. Once connected, you need to access the path /wp-content/plugins/

Next, upload the folder you extracted from the zip file to the folder on your web server/wp-content/plugins/.

ftppluginupload

After uploading the files, you need to visit the WordPress admin area and click on the Plugins link in the admin menu. You will see your plugin successfully installed on the plugins page.

installedplugins

You need to click on the Activate link below the plugin. Upon activating, you may need to configure the plugin settings. WordPress plugins come with their own settings which differ from one plugin to another so we will not describe them here.

We hope this helped you learn how to install WordPress plugins.

, , ,

How to Install Google Analytics in WordPress for Beginners

Would you like to introduce Google Analytics in WordPress? Knowing how your group of onlookers communicates with your site is significant to your prosperity. An ideal approach to knowing your group of onlookers is through your movement details, and this is the thing that Google Analytics accommodate FREE. In this article, we will share why Google Analytics is essential, and how you can introduce Google Analytics on your WordPress blog (well ordered).

Why is Google Analytics Important for Bloggers?

Once you start a blog, your #1 goal is to get more traffic and subscribers. Google Analytics help you make data-driven decisions by showing you the stats that matter. You can see:

Who visits your website?

This part of analytics answers what is the geographical location of your audience, which browser did the user use to visit your site and much other important information such as screen resolution, JavaScript support, Flash support, language and more.

This data is extremely useful, and it can help in numerous ways. When getting a custom design, you can use the user data to make sure that your site will be compatible with your audience.

If most of your users don’t have Flash support, then you should avoid adding a flash element in your site. If most of your users are on 1280 screen resolutions, then make sure that your design is compatible with that resolution or smaller.

What do people do when they are on your website?

You can track where the user is going on your website, how long do they stay on your website, and what is the bounce rate (the percent of users exit your site on the first visit).

By using this information, you can decrease the bounce rate and increase your page views.

When do people visit your website?

By looking at the hottest hours in the day for your site, you can pick the time when you publish your post. If that time zone is not compatible with yours, then you can schedule your post to meet that hour.

How do people find your website?

This section of the analytics show you where did the user come from (for example Search Engines, Direct Links, Referral links from another site).

It also shows you what percentage of your visitors came from each of these sources. Google analytics gives you the breakdown of each of these categories. If it is the search engine category, then it shows you which search engine got you the most traffic, Google, Yahoo, Bing etc.

The breakdown of referral sources shows you which sites you need to work with the most. If your top referral source is Facebook, then you need to have exclusive Facebook content to make your Twitter audience feel special.

If your top referral source is an external website, then you might want to consider having a partnership with that website (guest post exchange or something else).

How do people interact with your content?

Google analytics shows how your users interact with your site’s content. It shows you what percent of the user clicked on which link on your site and much more.

You can run A/B split tests by creating content experiments in Google Analytics to understand what works best to meet your goals.

By seeing the user interactivity, you can work your content around your users. By seeing the answers to the questions above, you can focus on the strategies that work for your site and eliminate the strategies that don’t work.

Simply put, eliminate the guess work and focus on stats that matter, so you can make data-driven-decisions.

How to Signup with Google Analytics

Step 1: First you need to create a Google Analytics account. To do this, visit Google Analytics Signup Page.

You will see a screen like the one below. If you already have a Google or Gmail account, then you can use that to sign-in. If you do not have a Gmail account, then you would have to create an account for yourself.

Google Analytics

Step 2: Once you sign-in with your Gmail account, you will be prompted to a screen like the one below. This is where you will signup for Google analytics with your Gmail account.

gasignup

Step 3: On the next screen, you will be given choice to choose between a website or mobile app. Make sure you select website.

After that, you need to enter account name (It will be the Google Analytics profile name for this website), Website name, website’s URL, country, and the time zone.

gasetupaccount

Once you have entered this information, click on the Get Tracking ID button. You will be presented with Google Analytics terms and service which you must agree to, so click on I Agree on a button.

Step 4: Now you will be presented with your Google Analytics tracking code. You can copy this tracking code because you will need to enter it in your WordPress site depending on the method you use below.

gatrackingcode

We suggest leaving the analytics browser tab open as you may need to revisit it, once you have installed the code on your WordPress site.

Now that you have setup a Google Analytics account, let’s take a look at how to install Google Analytics in WordPress.

How to Install Google Analytics in WordPress

There are many different ways to setup Google Analytics on WordPress. We will show you three different methods where the first option is the easiest and the last being the hardest.

You can choose the one that best suits your needs.

1. Google Analytics for WordPress by MonsterInsights

MonsterInsights is the most popular Google Analytics plugin for WordPress. Over 1 million websites use it including the likes of Bloomberg, PlayStation, Zillow, and more.

It is the easiest and by far the best way to add Google Analytics to WordPress (for all users beginners and experts).

MonsterInsights has both a free version and the Pro version. In this tutorial, we will be using the MonsterInsights free version.

You can use the MonsterInsights Pro version if you want more advanced features like Ecommerce tracking, Ads tracking, Author tracking, etc. The process of setting them up is the same.

Let’s get started.

The first thing you need to do is install and activate the MonsterInsights plugin.

Upon activation, the plugin will add a new menu item labeled ‘Insights’ to your WordPress admin menu. You need to visit Insights » Settings to configure the plugin settings.

On this screen, you need to click on ‘Authenticate with your Google account’ button to connect Google Analytics to your WordPress site.

authenticate

This will bring up a popup where you will be able to authenticate with your Google Account.

miauthenticate

Click on ‘Next’ to continue.

Now you need to click on ‘Click to get Google code’ button.

getcode

This will bring up another popup with the message ‘MonsterInsights would like access to your Google Analytics data’.

Click on the ‘Allow’ button to continue.

permissions

The authentication popup will now show you a line of code which you need to copy.

authenticate

Next, you need to enter this code in the MonsterInsights popup and then click on ‘Next’ to continue.

The final step is to select the profile you want to track. You need to select your website here and then click on the next button to continue.

selectprofile

That’s all you have successfully installed and setup Google Analytics on your WordPress site.

Remember, it will take Google Analytics sometime before showing your stats.

The best part about MonsterInsights is that you can view your Google Analytics report inside your WordPress dashboard. Simply visit Insights » Reports page to check out a quick overview of your analytics data.

mi-reports

You can go also go in the Tracking tab to customize the tracking settings based on your needs:

monsterinsights-tracking

Note: MonsterInsights was formerly known as Google Analytics for WordPress by Yoast. WPBeginner’s founder, Syed Balkhi, acquired the plugin in 2016 and rebranded it to MonsterInsights. Now it is part of our family of premium WordPress plugins.

2. Insert Headers and Footers Plugin

This method is not as not as good as MonsterInsights because you will not be able to do advanced tracking configuration, and you will not be able to view Google Analytics data in your WordPress dashboard.

First, you need to install and activate the Insert Headers and Footers plugin.

Upon activation, you need to visit Settings » Insert Headers and Footers page. Here you need to paste the Google Analytics code that you copied in step 4 into the headers section.

addingcodeinwp

3. Install Google Analytics in WordPress Theme

This method is for advanced users only who are familiar with the code. It is somewhat unreliable because your code will disappear if you switch or update the theme. We almost never recommend using this method.

Add code in header.php file

Simply edit the header.php file in your WordPress theme and paste the code you copied in step 4 right after the <body> tag.

Don’t forget to save your changes and upload the file back to your server.

Add via Functions File

You can also add Google Analytics tracking code to WordPress functions file. It will then automatically add code to every page on your WordPress site.

You will need to add this code to your theme’s functions.php file.

1 <?php
2 add_action('wp_head', 'wpb_add_googleanalytics');
3 function wpb_add_googleanalytics() { ?>
4 // Paste your Google Analytics code from Step 4 here
5 <?php } ?>

Viewing Reports on Google Analytics Website

Google Analytics is capable of showing you a treasure of data collected from your stats. You can view this data by visiting your Google Analytics dashboard and clicking on the reporting tab.

ga-reports

You will see the built-in Google Analytics reports in the left column. Each section is divided into different tabs and clicking on a tab will expand it to show more options.

  • Audience tab will show reports to help you understand your users.
  • Acquisition reports explore where your users came from.
  • Behavior reports summarize what your users do after they arrive on your site.
  • Conversion reports show how well you’re doing against your goals.

We hope this article helped you learn how to install Google Analytics in WordPress.

, , , ,

15 Things You MUST DO Before Changing WordPress Themes

If you have used WordPress, then you have probably switched themes at least once in your life. If you haven’t, and this is your first time, then it is even better. The beauty of WordPress is that it makes it very easy for users to change themes. It is literally few clicks away. But changing themes is much more than simply clicking activate. In this article, we will provide you with a checklist of things that you MUST do before changing WordPress themes. These steps are critical to making sure the process goes smoothly otherwise you can end up losing elements that you did not mean to lose.

1. Take Notes on Your Current Theme

Many WordPress users surf the web to find solutions to their problems. Often they find those solutions in form of snippets that they add manually in their themes such as the functions.php or another file. Because these changes were made once, people have a tendency of not remembering them. Go through your theme files and note down all additional code that you added. You also want to check your current theme’s load time because this way you can compare the two. Go to a site like Pingdom Tools or use YSlow to test out different pages (Yes different pages, not just the homepage).

2. Be cautious of the Sidebars

Changing WordPress Themes

You must make sure that your new theme is widget-ready. Sidebar widgets are really easy to use therefore a lot of users use it to customize it. We notice that sidebars are probably the most user-customized area of WordPress sites. People make tons of changes such as adding custom texts, images, links, advertisement, and other widgets. If you are using a widget-enabled theme, and you switch to a theme that is not widget-ready, then you will lose all of that. If you are using a widget-enabled WordPress theme, then this is not an issue.

Also, anything that you modify in sidebar.php file of your old theme, will be overwritten. So make sure that you add those codes in the new theme sidebar.

3. Don’t lose tracking

teacupanalytics

Most bloggers use some sort of analytics whether it be Google Analytics or one of the other services. A lot of us don’t use plugins to add the tracking codes. Some of us open the footer.php file and modify the codes. Some of our themes have a spot to place the Adsense code. Whichever one is your case, you want to make sure that you copy and paste your tracking code to your new theme. This is one of the things that is very commonly overlooked by users. Because it is so simple, most of us forget about it.

4. The Good ‘ol RSS are you working?

A lot of us use FeedBurner for our WordPress RSS Feeds. One of the parts of integrating FeedBurner into WordPress is pointing your default feeds to FeedBurner this way you can have analytics on your feed subscribers. A lot of themes like Genesis, Standard Theme, and others allow you to integrate FeedBurner from their settings panel. You need to make sure that you keep the feed directed to FeedBurner otherwise there will be two RSS feeds for your blog. The main WordPress one, and the FeedBurner one which is taking the info from your WordPress RSS Feed. Except, you will lose count of a lot of the subscriber that you had because they were subscribed using the /feed/ URL which no longer points to FeedBurner. Again, this does not mean you lose them, it just means that you can’t see them in the FeedBurner count.

5. Backup!!

backupyourfiles

You never have anything to lose by creating a backup. As a precautionary measure, you should backup all of your theme files, plugins, and the database. Although nothing should happen, but you can never be to safe. You can use BackupBuddy to create a full-site Backup for you.

6. Maintenance Mode

wpmaintenancemode2

ou probably don’t want your users to see while you are making the switch because they will end up seeing a broken site or such. It is best to turn on Maintenance mode for 15 – 20 minutes that it may take you to make sure that everything is working properly. Once you have setup Maintenance mode, you are good to go ahead and activate the new theme.

7. Testing all functionality and plugins

Once you have the new theme activated, you need to make sure that you retain all the functionality and plugins still work. Remember that good old’ notes list that you created in step 1. This is the time where that can come handy. Go back and add any and all functionality that you want to bring the old theme into the new theme if you haven’t done so already. Try out all the features including but not limited to the commenting process, single post pages, search, 404 page, archive page, contact page etc. Make sure all of your widgets are still there and are working.

On the plugin front, you just want to make sure that the formatting is still the same. A lot of plugins utilize your existing styles to display their output. So you probably want to make sure that they still look good with the new theme.

8. Cross Browser Compatibility

Cross browser

Test your site in all browsers you have access to. Browsers have a tendency of rendering things differently. Especially Internet Explorer. You want to make sure that your design looks good in major browsers. Some pretty looking themes have a tendency of breaking in various browsers. So if a lot of your audience is using Internet Explorer, then you want to make sure that it is still accessible to them.

9. Make those Third Party Items look pretty

If you are using Google Adsense or another ad company that allows you to format them, then your best bet is to customize them. For example, your previous site was orange, so you had orange links for Google Adsense. Now if it is blue, then you probably want to take that into account.

Same goes for twitter widget, facebook like buttons etc. Adjust those with your new color scheme. If you are going from a light to a dark design, or vice-versa, then you need to make those changes.

10. Let your Users Know

announcement

Turn off maintenance mode, and write a quick blog post to let the users know. Notice, you only spent like 15 – 20 minutes on checking things. There is no way that you could’ve to catch all the bugs. By letting your users know, you can expect to get bug reports. Ask your audience via twitter, facebook etc to see if the site looks good in their browser. If they say YES, then its good news. If they say NO, then ask them to please take a screenshot of the issue. You can take a look at the issue and try to fix it. If you can’t fix it, then kindly ask the developer of the theme to fix it. Notice: unless you paid for the theme, these developers are NOT required to fix those issues for FREE.

People have all sort of browsers, screen resolutions, etc, so getting their opinion is important. Don’t forget to remind your RSS readers to visit the site as well, so they can see the goodies.

11. Pruning plugins

Themes are now coming pre-loaded with a lot of features. For example, if you are using Genesis or another theme that has BreadCrumbs, then you can get rid of Breadcrumb plugin of yours. The concept is simple. Get rid of things that you don’t need. One thing you should make sure though is often plugins can do the job better. For example, a lot of themes are coming with tons of SEO features. Genesis, Thesis, Standard Theme, and all others boost their SEO features. We’d rather use a much more powerful plugin like WordPress SEO by Yoast. Make your choices wisely.

12. Take Baby Steps when Changing

babysteps

You are working with a new theme here, so it is probably best that you make changes carefully. Change smaller elements to make sure that it behaves properly in all browsers. Then once you are comfortable enough, then you can make drastic changes. It’s important to learn the structure and semantics of the new theme before you make huge changes. This will allow you to detect the problem right away.

13. Test Loading Time

Take the load time numbers that you had on your old theme (from item 1 of this checklist), and compare the two. See what you can do to improve load time by checking out Syed’s presentation on Slideshare.

14. Monitor Bounce Rate

After switching themes, you want to make sure that you are monitoring bounce rate. Some themes are just friendlier than others when it comes to navigating the readers around your site. If your bounce rate has increased compared to the previous theme, then you should probably work on that. Add related posts widgets, popular posts widgets, or simply have a better call-to-action for new readers.

15. Listen to your readers, and IMPROVE

suggestions

When a new design comes out, users always have suggestions. They either love a specific feature or hate a specific feature. Communicate with your audience using surveys or Facebook Polls. See what they would like to see improved, and then work on getting that done.

Do you have a checklist of your own when changing WordPress themes? would love to hear it if we missed something.

, , ,

How to Create a Custom Template in WordPress

Creating a Custom Template in WordPress

First, you need to open a plain text editor like Notepad on your computer. In the blank file add this line of code at the top:

1 <?php /* Template Name: CustomPageT1 */ ?>

This code simply tells WordPress that this is a template file and it should be recognized as CustomPageT1. You can name your template anything you want as long as it makes sense to you.

Once you have added the code, save the file to your desktop as,custompaget1.php

You can save the file with any name, just make sure that it ends with .phpextension.

For this next step, you will need to connect to your website using an FTP client.

Once connected, go to your current theme or child theme folder. You will find it in the directory/wp-content/themes/. Next, upload your custom page template file to your theme.

Now you need to login to your WordPress admin area to create a new page or edit an existing one.

On the page editing screen, scroll down to ‘Page Attributes’ section, and you will find a template drop down menu. Clicking on it will allow you to select the template you just created.

Custom Template

Now if you change the template and visit this page, then you will get to see a blank page. That’s because your template is empty and does not tell WordPress what to display.

Don’t worry, we will show you how to easily edit your custom page template.

Editing Your Custom Page Template

Your custom page template is like any other theme file in WordPress. You can add any HTML, template tags, or PHP code in this file.

The easiest way to get started with your custom page is by copying the existing page template provided by your theme.

Open your FTP client and go to your theme folder. There you will find a file called page.php. You need to download this file to your computer.

pagetemplate

Open the page.php file in a plain text editor like Notepad, and copy all its content except the header part.

templateheader

The header part is the commented out part at the top of the file. We are not copying it because our custom page template already has one.

Now you need to open your custom page template file and paste it at the end.

Your custom page file would now look something like this:

<?php /* Template Name: CustomPageT1 */ ?>
<?php get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
// Start the loop.
while ( have_posts() ) : the_post();
// Include the page content template.
get_template_part( 'template-parts/content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
// End of the loop.
endwhile;
?>
</main><!-- .site-main -->
<?php get_sidebar( 'content-bottom' ); ?>
</div><!-- .content-area -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Save your custom page template file and upload it back to your theme folder using FTP.

You can now visit the page you created using a custom page template. It will now look exactly like your other pages in WordPress.

You can now continue editing your custom page template file. You can customize it in any way you want. For example, you can remove the sidebar, add custom PHP code, add any other HTML you want.

You can add the content by editing the page in WordPress page editor screen. You can also leave the content area in page editor completely empty, and add custom content directly in your page template.

We hope this article helped you add a custom page in WordPress.


, , , , ,

How to Earn 3500$ from Bluehost Affiliate Program?

Affiliate marketing is an insane source to create an astounding measure of income from your web blogs. The genuine online business is the ones who either have their own particular items, advance outsider items (affiliate marketing) or offer administrations to their customers.

Bluehost has been my first ever web hosting that I counted on Alhumdulilah! Very soon, as I trusted their service thoroughly, I become their affiliate and decided to recommend it to everyone around me.

This post goes out to all the brothers and sisters who look forward to jumping into affiliate marketing and can’t figure out what to promote and earning a decent amount while doing so.

To set up a self-hosted website, you need a web hosting. So web hosting is one of the most common affiliate products that people promote online and making a living.

The following post is structured in the form of a FAQ which helps understands the topic better InshaAllah.

What is Affiliate Marketing?

Affiliate marketing is when you promote third party products and when you make a sale, you earn a commission out of those sales.

For example, Bluehost offers 65$ to start with, on every sale a person makes for them. That is a one-time payment that they make to you, in a response to a life long customer that you gave to them.

How Do They Track The Sales You Make?

When you become their affiliate, they would give you a dedicated affiliate link, that is unique to you. When you share that with your readers on your blog or anywhere online, and when someone’s click that link, they’re redirected to Bluehost’s website.

Now if the visitor buys Bluehost’s hosting, you would get an email that you just made a sale!

That is a great moment! <3 So all of your sales are linked to your affiliate link and you get to see all the statistics and sources that brought you sale in your Bluehost Affiliate Dashboard.

How to Become Bluehost’s Affiliate?

You can simply head over to the following link and signup for their affiliate program.

bluehost affiliate program

You’d see the following form that you have to fill up. After that, you hit ‘Sign Up’ button and that’s all. Your application then goes into approval mode. They’d get back to you via email once your application is approved.

Valid Website/Blog
 Make sure that you have a valid website/blog URL that you have to put in the form. This shows them that you’ve a serious online presence.

Meanwhile, your application is under approval, you have to fill up Tax Form, which is required to withdraw your earnings.

How to Withdraw Bluehost Affiliate Earnings?

You can withdraw your affiliate earnings via:

  1. Paypal
  2. WireTransfer (For higher incomes)

How Much Does Bluehost Offer Per Sale?

By default, Bluehost offers 65$ per sale that you make for them. Though, there are odd cases. They often offer more amount per sign up like 100-125$ per sign up to a limited amount of blogs that they feel would be able to bring back more sales initially.

Also, once you start making 5-10 sales per month, they would increase your per sale bounty to over 150-200$ +. You can request that to their customer support and they happy do that 🙂

Though they need to see the sales stats that you made for them since few last months.

What does it take to Make 3500$ per Month With Bluehost?

Step #1 Increase per Sale Bounty (Optional/Request)

You can request their customer support to increase you an initial bounty to 100$ per sale. (A simple request)

Step #2 Plan to make 35 sales per month. 35 sales = 3500$ per month. (With 100$ per sale).

To make 35 sales, you have the following options:

Use Your Blog

#1 Place Banners

You can use different banners on your blog as shown below. I’ll share my personal banners in the following screenshots that I use and also there are tons of free banners in Bluehost’s affiliate section that you can use.

How to Earn 3500$ from Bluehost Affiliate Program

You can go to Dashboard >> Banner Or Widgets and find out various banner designs you of various dimensions that you feel would be suitable for your blog.

#2 Write Bluehost Reviews

You can write high-quality Bluehost reviews on your blog and use your affiliate links within the post. The more visitors would read your blog, the more sign up would you get. Generally, on average, you need 100-150 readers to your blog post (that talks about Bluehost) to make a sale.

Now you can do that maths. Though these numbers are not a surety. If you’re into a relevant niche where people would like to sign up for the new web hosting, you’d be surprised to see how many sales you can make easily. InshaAllah.

#3 Write Instant Reviews On Sales

Bluehost often sends the affiliates emails on various holiday occasions for massive discounts that you can offer to your readers. On moments like Christmas, Black Friday, 4th June etc Bluehost sales are amazing!

Even like more than 60-70% off. 🙂

SO by making the most out of these sales, you can get a huge spike in your affiliate sales by writing a quick blog post on these moments by offering your readers massive discounts 🙂

#4 Use Google AdWord Ads To Drive to Your Landing Page

I’ve seen so many people making the most out of Adwords ads to drive traffic to their blogs, that are actually meant to convert that traffic into the sales.

Though this can take quite some iterations to find out the best ad banner that you could use that would convert into your sales.

Be Aware
You can easily loose quite some money on this one, as Google Adwords is pretty expensive and you can easily loose quite some on that if you don’t have the most converting banners.

Conclusion

Hope these insights helped you out. Even if you aim to make 1000$ with Bluehost, I would recommend you to first set a goal. When you’d have a clear goal in mind, you can work on it and create more blog posts, more video content to market.

, , , ,

Automatically Update Your Copyright Year with PHP

Copyright Year with PHP

This instructional exercise is composed for those of you who end up neglecting to refresh the year in your site’s copyright line. I’ve seen a few destinations with copyright lines that are more than five years obsolete. We should investigate how you can set your site’s footer to dependably show the present year in the copyright line.

In most cases, you will find this in your theme’s footer.php file. If you are using a child theme (you should be), you will first want to look for the file within your child theme footer.php‘s directory.

In the most recent WordPress default Twenty Seventeen theme, you will be editing. /template-parts/footer/site-info.php

twenty-seventeen-copyright-footer

Once you have identified the proper file to edit, open it and look for the text from your footer’s copyright line. In Twenty Seventeen as well as many other themes, this is found within a div with the class “site-info”.

twenty-seventeen-copyright-footer-02

Now that we know where to make the changes, let’s update it to display a dynamic copyright line.

To get the current year in PHP we can use:

echo date(“Y”);

Keep in mind that this returns the date from the server.

twenty-seventeen-copyright-footer-03

Now you can get back to focusing on celebrating the new year instead of worrying about your copyright date! No more updates needed — your footer copyright will always display the current year!

, , , ,

How to install Laravel 5 with Xampp (Windows)

Laravel 5 with Xampp

Requirements

  • PHP >= 5.5.9
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension

Install Xampp

First of all, we need Xampp, so we can download it from the official page: Download Xampp

xamp

Composer

After you’ve downloaded and installed Xampp, we need to install Composer.

A composer is a PHP package manager that is integrated with Laravel Framework. In Windows, we can install it easy going to the official page and download the installer.

Composer Download page

After installing it, we can open a Windows terminal and write composer for executing the command:

composer

Xampp Virtual Host

We will configure a Virtual Host in Xampp for a Laravel project, and in this example, we want to configure the domain laravel.dev for our project.

We need to edit httpd-vhosts.conf that are located in C:\xampp\apache\conf\extra\httpd-vhosts.conf and add following lines at the end of the file:

# VirtualHost for LARAVEL.DEV
<VirtualHost laravel.dev:80>
DocumentRoot "C:\xampp\htdocs\laravel\public"
ServerAdmin laravel.dev
<Directory "C:\xampp\htdocs\laravel">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

After this, our apache is listening to laravel.dev connections, but we have to configure our hosts file that allows redirecting laravel.dev to the localhost that is located in C:\Windows\System32\drivers\etc

IMPORTANT!: To edit this file, maybe we should give access, click properties and allow your user to modify this file. Edit hosts file adding our localhost for laravel.dev:

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost
127.0.0.1	laravel.dev

Save the file and we are ready to install laravel.

Install Laravel Framework

We are prepared to install and configure a Laravel Framework. First of all, we have to navigate to a htdocs folder to install it and run this following command:

composer create-project laravel/laravel laravel “5.1.*”

Will start the installation of the Framework:

laravel-ins

laravel-ins

When it finishes, it will create following directory schema:

schema

Finally, start our apache and MySql from Xampp control panel:

xampp

Navigate to laravel.dev and Laravel it’s installed!

laravel

, , , ,

Top 3 Ways to integrate your WooCommerce store with eBay and Amazon

If you own a WooCommerce online store and also sell your items on other marketplaces like Amazon and eBay, you might have wondered if it is possible to integrate all three in a single platform. Doing that will reduce your workload and let you manage all the orders from one place.

Luckily, there are some solutions available to connect your WooCommerce store with other marketplaces. In today’s post, I will introduce you to the top 3 solutions for integrate your WooCommerce store with eBay and Amazon.

1. WP Lab

Integrate your WooCommerce store with eBay and Amazon

WP Lab provides two separate solutions for integrating your WooCommerce site with eBay and Amazon. Both products are available as lite versions in the WordPress plugin directory. You can purchase the premium version from the website.

The WP-Lister Lite for Amazon plugin lets you integrate your site’s products with your Amazon inventory. Besides importing the existing products, you can match and link your WooCommerce store’s products with Amazon. It is also possible to import product title, image(s) and other data from Amazon.

WP-Lister for Amazon, the premium version lets you synchronize sales and create orders from your Amazon account. You will also get priority updates and instant support. The plugin is priced at $149.

The WP-Lister Lite for eBay plugin provides an easy solution for connecting your WooCommerce store with your eBay account. Along with creating unlimited items, you can add multiple variations of the products. The plugin is also available in several languages.

WP-Lister Pro for eBay allows you to sync the product inventory between your store and the eBay account. You can also create an order when an item is sold on eBay. Other useful features include uploading product images to eBay, importing products from eBay, split variations, advanced eBay options etc. You can get the pro plugin for $149.

2. Veeqo

Veeqo

With a mission of simplifying the shopping process, Veeqo provides easy solutions for integrating your WooCommerce store with Amazon and eBay. By using the service, you can easily keep track and sync the products in your WooCommerce store and the Amazon, eBay accounts.

The orders will be automatically synced every 10 minutes. Whenever an order is processed, your Amazon and eBay accounts will be updated with the tracking number. You can also print your invoice packaging slips, lists, labels in bulk amount.

As Veeqo supports all Amazon and eBay channels in the world, you can easily handle local and international orders from your e-commerce site. It is also a completely cloud-based system. Therefore, you can use the solution from anywhere in the world.

The real-time inventory syncing feature will keep tracks of all marketplaces and/or websites. As a result, your stock lists will always be updated. You will also be able to control all of your orders from one location. Each product will be accompanied by detailed information about the marketplace or website they belong to.

Veeqo also comes with several charts and reports about the sales and profit of your accounts and websites. By using these, you can easily get an overall idea about the condition of your business. There is a 14-day trial available. The pricing plans start from $130 per month.

3. Selro

Selro

Selro is a popular cross-channel selling platform with dedicated WooCommerce support. It offers smart inventory management options and shipping options for both the customer and the store owner. Selro integrates your WooCommerse store with your Amazon and eBay accounts.

The inventory of your accounts and the store will be automatically synced. The single dashboard view will make sure that you can view your product lists from all marketplaces and websites in one place. It will also streamline various backend operations like managing stock activities, product labels, handling sales orders etc.

The simple order management system of Selro will allow you to handle all the orders from the dashboard. Orders from the marketplaces and your online store will be processed automatically. The centralized inventory management options will make sure that you are always on top of your current inventory status.

Selro’s flexible technology is capable of connecting to any API and work seamlessly. In a case of necessity, you will get premium support 12 hours a day throughout the business days of the week. If you are still not convinced, you can try the 30-day free trial. You won’t need any credit card for the trial. After that, the pricing plans start from $99 per month.

Bonus: Automatically increase customer satisfaction and get more reviews on Amazon and eBay with this trick

Now that you have successfully integrated Amazon and eBay in your WooCommerce store, you can take it to the next level and automate post-purchase follow-up for Amazon and eBay customers. No matter what integration method you have used, once you have the customer information in our WooCommerce store we can use them to send them to follow up emails. For this, we will be using SIP Advanced Email Rules for WooCommerce.

Once you purchase SIP Advanced Email Rules for WooCommerce, you can easily target Amazon and eBay customers and send them specific emails, such as asking for feedback or reviews on your products. This is a great way to get more product reviews on Amazon and eBay in a way that is compliant with their terms of service.

From the left menu, click on “Sip Plugins -> Advanced Email Rules”, then “Add new”. Under “Advanced Email conditions”, set rules that will target only Amazon or eBay customers. For example, if you are using WP Lab to import orders from Amazon, you can either set “Payment method” equals “Amazon” (this is the custom name I use when importing Amazon orders, here you can set the one you chose) or “Email” contains “marketplace.amazon.com”. Similar rules can be set to target eBay customers.

I target emails 30 days after the order has been shipped from Amazon, however, you can send this email much sooner or even send more than one email per customer.

Amazon-review-email

Conclusion

WooCommerce makes it very easy to create online stores. And now you have the proper tools for managing your online store and marketplaces accounts from a single dashboard.

Which solution looks the most interesting to you? Let me know in the comments.

And if you are using any other solution/extension to connect your WooCommerce store with other marketplaces, let me know by leaving a comment below. I will be glad to take a look.

, , , ,

Launch A Self-Hosted WordPress Blog In 20 Minutes Or Less

Step 1: Collect Your Resources

To set up a self-hosted WordPress blog, you will need:

  • A domain name
  • A credit card
  • 20 minutes

It’s less demanding in the event that you haven’t officially enrolled your space. It’s likewise less expensive. I will demonstrate to you proper methodologies to get one for nothing, utilizing the administration I suggest in Step #2.

Be that as it may, on the off chance that you have effectively enlisted your space, no sweat. You will just need to include an extra stride. I will clarify the procedure toward the finish of this post.

Step 2: Set Up a Hosting Account

This is the place your blog will “live.” This is a server in the cloud (i.e., a remote PC), where you will lease space to introduce the WordPress programming and deal with your blog. It’s far less demanding than it sounds. Remain with me.

There are several facilitating administration accessible—maybe thousands. Nonetheless, in view of my experience and research, I prescribe Bluehost. I trust it is the best choice for a great many people for the accompanying seven reasons:

Reason #1: Support. Bluehost has incredible 24–7 support by means of telephone, email, or visit. I have by and by utilized it a few times and observed the care staff to be brisk, affable, and educated. The greater part of the organization’s care staff is situated in the U.S.

Reason #2: Reliability. Bluehost is super dependable. It brags an uptime normal of 99.9%. That is about more or less great.

Reason #3: Ease of Use. Bluehost is super-simple-to-use (as you can witness in the above video). Truth be told, shockingly so. You’ll ask why you haven’t set up a facilitating administration before now.

Reason #4: WordPress. Strikingly, WordPress itself just authoritatively prescribes three facilitating administrations. Bluehost is number one. It has more than 850,000 WordPress web journals.

Reason #5: No Limits. Bluehost offers boundless plate space, boundless transmission capacity, boundless areas (i.e., you can have various websites or locales on one record), and boundless email accounts.

Reason #6: Affordability. Bluehost is modest—about $3.95 to $5.95 a month, contingent upon which arrange you select. The more you will submit, the less expensive it is.

Reason #7: Values. In its Terms of Service (see Section 10.03, Bluehost denies obscenity, bareness, and other grown-up substance. It entirely authorizes this standard and erases destinations that damage it. By and by, I don’t need my blog sitting on an indistinguishable server from some pornographer. In the event that you feel a similar way, you might be shocked to realize that the greater part of the most well known facilitating administrations permit obscenity on their servers.

Note: I am a Bluehost associate, which implies the organization pays me a commission each time somebody joins through one of my connections. However, this didn’t impact my suggestion, since all facilitating administrations have comparative projects. I prescribe Bluehost in light of the fact that I sincerely trust they offer the best facilitating accessible.

Disclosure: I don’t utilize Bluehost for dreamsspark.com. My site is too enormous and convoluted. It requires a committed server with a reflected reinforcement. Nonetheless, I have my different locales on Bluehost, as do a few of my relatives and companions. Bluehost works on shared servers and it is the correct decision for 95 percent of bloggers.

Coincidentally, Bluehost offers a thirty-day, unconditional promise, which is built into their Terms of Service. I have by and by tried this and recovered my cash inside a couple of hours. So there’s truly no hazard on your part.

Approve, so on the off-chance that you are still with me, go to the Bluehost landing page. Tap on the Get Started Now catch.

Presently you have to settle on your arrangement. I need to propose that you select the Plus Plan. This is Bluehost most well-known alternative—and in light of current circumstances. It’s just fifty pennies more a month than the Starter arrange, BUT it gives you the capacity to have a boundless number of sites on this one record. I feel that makes it an easy decision.

Regardless of the plan you pick, my guidelines will work for you; the math will simply be distinctive. Proceed by tapping on the Select catch.

Presently you have to choose whether you require a space name or you as of now have an area name. Will expect that you haven’t beforehand enrolled an area, utilizing some other space enlistment benefit (e.g., GoDaddy.com). On the off chance that you have, I will disclose what to do the finish of this post.

Presently enter your area name in the furthest left box, pick the suitable expansion (com, net, business, whatever) and tap on the Next catch.

Launch A Self-Hosted WordPress Blog In 20 Minutes Or Less

Fill in your record data and after that look down to choose your bundle. As should be obvious, the costs run from $3.95 to $5.95 every month. (Once more, this is for the Plus Package.) It all relies on upon the length of your dedication.

Remember, you will be required to pay the yearly rate ahead of time. That is the means by which Bluehost can offer these super low costs. Here’s the math, in view of utilizing my affiliate link.

12 months at $5.95 every month is $71.40 every year and $71.40 upfront.

24 months at $4.95 every month is $59.40 every year and $118.80 upfront.

36 months at $3.95 every month is $47.4 every year and $142.20 upfront.

I would not agree to accept any of alternate administrations recorded on this screen, yet that is dependent upon you.

Presently enter your charging data. Affirm that you have perused and concur with Bluehost’s Terms of Service, and after that tap on the Next catch. The framework will now confirm your Visa data.

Bluehost will next request that you “Select the Upgrades that Best Suit Your Needs.” I would avoid these. Tap the Complete catch at the base of the page. Be quiet. This may pause for a moment or two.

You ought to now observe the “Welcome to Bluehost” screen, alongside a “Congrats” message. Presently you have to pick a secret key for your record. Tap on the Create your secret key catch:

Utilize the Password Generator choice to make a solid, hard-to-hack secret key. Duplicate this to the clipboard by squeezing ⌘-C in the event that you are on a Mac or Control-C on the off chance that you are on a PC. Presently tap the Paste catch to glue the secret word into the fitting fields.

Presently tap the checkbook that says, “I affirm I have perused and consent to the Terms of Service … ” Then tap the Create catch. This makes your new Bluehost account.

Cautioning: You may get a mistake message here. It is just in light of the fact that it now and again takes a couple of minutes for the Bluehost robots to make your record. Try not to freeze. Most dire outcome imaginable.

This will convey you to the Bluehost login screen. Here you will be asked to log into your space. Your space ought to be naturally embedded for you. In the event that it is not, sort it into the field gave.

Presently utilize the secret word you simply chosen in the watchword field. Since you already duplicated it to the clipboard, you can glue it with ⌘-V on the Mac or Control-V on the PC. Presently tap on Submit.

You may see yet another redesign offer, maybe for Optimized facilitating. Don’t hesitate to disregard this for the time being. You can simply include it later. Rather, tap on the Hosting join in the upper left-hand corner.

This will take you to the fundamental Control Panel. You may get another fly up. This one is putting forth to walk you through the way toward setting up your site. You can close this screen by tapping on the X in the upper right-hand corner. I will walk you through this myself.

You ought to now be at the Control Panel, here and there called the cPanel.

Step 3: Install WordPress

Try not to be scared by the quantity of catches in this progression—it’s incredibly straightforward. The procedure used to be confused, and you must be a semi-nerd to force it off. In any case, Bluehost now makes it super-straightforward. Confide in me, anybody can do this.

Look down the page to the “Site” segment. Tap on the Install WordPress logo and sit tight for the new page to stack. Be persistent. It may pause for a moment.

Another “WordPress” screen shows up. Just tap on the Install catch. That will convey you to another screen. Presently select the area on which you need to introduce WordPress. It ought to default to the right one. Tap on Check Domain.

The following screen will state ” the evetuallyLast step, you are practically there.” Click on “Advanced Options.” Type in your site name or title. (Try not to stress. You can simply change this later.) Accept the “Administrator Username” and “Administrator Password” that Bluehost proposes.

Presently tap on the thing that says, “I have perused the terms and states of the GPLv2.” Now tap on the Install Now catch. The establishment procedure ought to start and will keep you refreshed on the procedure. Be persistent, this will pause for a moment or two.

Bluehost may then offer you another upsell. (I understand this gets irritating. Keep it together. You are practically done.) Just close the fly up if there is one. You can normally do as such by tapping on the X in the upper right-hand corner of the fly up.

You ought to now see an improvement meter at the highest point of the screen. Once more, this will pause for a moment or two, contingent upon how bustling the Bluehost robots are.eventually say, “Your introduce is finished!”

Presently tap on the View Credentials catch. This will take you to the Notification Center. Tap on the View catch.

When it is done, you will get a screen with your Blog URL, Login URL, username, and watchword. Bluehost will likewise email this data to you, yet I jump at the chance to have a reinforcement. I would record it or take a screenshot. Likewise, duplicate the secret key to the clipboard (once more, utilizing ⌘-c on a Mac or Control-C on a PC).

You’re gaining awesome ground! You have finished the most troublesome piece of the procedure. Presently things will accelerate impressively.

Step 4: Log into WordPress

Click on the “Admin URL” link. This will take you to the WordPress login page.


Now enter your username and password. (Remember, you wrote these down in Step 3. You also copied the password to the clipboard.) Click on the “Remember Me” checkbook and then click on the Log In button.

You should now be looking at the WordPress “Dashboard.” Sometimes, bloggers refer to this as the WordPress back-end. The front-end is what your readers see—your normal blog site. The back-end is what you see—how you control what appears on the front-end.

Step 5: Write Your First Post

Click on the Posts | Add New option in the left-hand side menu. You should now see the New Post screen.

Step 6: Load Your New Blog

Simply click on the “View Post” link. Your new blog should load in a new browser tab.