Categories
Wordpress

Adding Adsense Ads in WordPress Post Automatically Plugin

Adding AdSense ads in WordPress is very easy using WordPress plugins, WordPress plugin is something which is very easy to install and easy to use, Little knowledge of WordPress can help you perform this job.

To add and insert Adsense in WordPress you need to use two WordPress plugin and those plugins are

Ad inserter – Its a ad manager plugin that provide many advanced options to insert any Javascript, CSS, HTML, PHP or advert code anywhere on the page.

AdSense In-Post Ads – This plugin allows you to save your most used AdSense ad codes, and insert them as a shortcode in your pages or posts.

Both this plugin help in inserting ads anywhere in WordPress post, you can handle all from one location even when you change your WordPress theme then also it will not create any problem related to ad insert.

If you don’t know how to insert or edit WordPress theme files then this plugin is best to insert Adsense ads anywhere in WordPress post. You can insert any ad code using this plugin.

Categories
Wordpress

Fix Wrong Picture Thumbnail Of WordPress Post Link in Facebook [ Solved ]

Facebook sometime pick the wrong photo while sharing a post on facebook and if you don’t know how to rectify it in your blog post then we will tell you how you can do it. But befoe we proceed we will tell you that by default facebook takes first image as og:image or feature image as og:image. Generally, the featured image is taken as og:image you can verify same using source code of your blog and find og:image meta tag that looks like below.

facebook-debugger-rescrape

If that meta tag is correct and your blog is fetching wrong photo or picture then you can solve this issue by debugging your facebook URL by clicking here
Just enter your blog URL and click fetch new scrape information and what ever change you will do it will reflect in your blogs.

Solution If Facebook Stop Detecting Featured Image

When you share a link on your Facebook profile or on your Facebook page then Facebook crawls the page and looks for Open Graph meta tags in the head to build a complete post preview (with an image, title, description ).If you are using multiple open graph plugin then Look at your site, for another plugin that handle Open Graph review your list of active plugins, find out which one of them is used to manage Open Graph meta tags, and contact the plugin author for more help or disable that so that your post started displaying correct photo.

Categories
Wordpress

Moving WordPress Website from HTTP to HTTPS/SSL

Google recently announced that it has started using HTTPS as a ranking signal. So if you want to move your blog or website from HTTP or HTTPS to get high ranking in google search then you need to follow these steps .

Make sure you have purchased valid SSL certificate from your Hosting providers , Now all hosting provider provide SSL certificate , Some provide SLL for free where as some providers may charge you for giving SSL certificate.

HTTPS URLs begin with https:// and use port 443 by default, whereas HTTP URLs begin with http:// and use port 80 by default.

HTTP is insecure and is subject to eavesdropping attacks, which can let attackers gain access to sensitive information of a website whilst HTTPS is designed to withstand and secure against such attacks.

To make a website HTTPS, firstly get an SSL certificate for the domain, install it on the server and change the website permalinks from http to https.

Config WordPress for HTTPS Step by Step

Step 1
Login to your WordPress dashboard and navigate to Settings > General.
Ensure that the WordPress Address (URL) and Site Address (URL) are https. If not, add S after http to make https and save it.

wordpress-general-settings

Step 2
Open wp-config.php and below line to force all logins and all admin sessions to happen over SSL

define('FORCE_SSL_ADMIN', true);

Step 3.
Set up a 301 permanent redirect and inform Google of the URL change.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.yoursite.com [NC]
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [L,R=301,NC]

Use Redirect WordPress Plugin

If you don’t know how to perform this then you can do this using wordpress https redirect plugin but make sure you have installed SSL certificate on your site and HTTPS is working correctly
Step 4
Tell Google about the change in URL, Re-add your WordPress site to Google webmaster tool With https://

Categories
Wordpress

5 Solution for Problems related to WordPress Error Bugs

There are many small and big bugs and issue arise in WordPress, and there is a very simple solution as well for all those bugs, and you can easily solve this without taking anyone help. 80% of WordPress issue arise because of plugins and themes and which any WordPress can resolve this simply by disabling the plugin or moving back to default WordPress theme all other issues are relating to coding or sometime related to hosting.

Now we are listing all those Solutions one by one and hope this will help many WordPress users.

Remove or Disable WordPress Plugin

If you started facing some error suddenly after installing any plugin, then remove that plugin to remove that problem or disable that plugin, if you fail to access your admin section then do this from your panel.

  • How to disable plugin using Cpanel

An easier way to do this is to rename the plugins folder (to something like plugins_old) and create a new, empty folder labeled plugins.

Remove or Disable WordPress Themes

Sometimes some theme also create an issue for WordPress users, and this happens when any theme is not supporting your wordpress installation and it suddenly start giving issue related to programming.A poorly coded and outdated theme might not work with the latest update of WordPress.So you need to remove that or shift to another theme to resolve your issue.

WordPress Issue related to Browser Cache

Many issues arise because of Browser Cache, if you are using cache plugin or if you haven’t cleared your browser cache from a long time then you will start getting blank page error or if you Make any Changes and that change will not reflect in your website.

Increasing Memory Limit of your WordPress Website

Problem like White Screen of Death happens because your memory is being exhausted. and to resolve this you need to increase memory limit ,To do this Open your wp-config.php which is located in the root WordPress directory. Then add the following line inside the main php tag:
define('WP_MEMORY_LIMIT', '64M');

We just increased the memory limit to 64M. If you still get the error after this fix, then please contact your host.

Shift yourself from Cheap Web Hosts

If your WordPress website is slow after all fixes, then the best solution is to change your hosting provider, once you change that all your WordPress related issue will be resolved especially if you are experiencing slow website performance.

If you are experiencing issue related to a database then you need to go for repair You can do this by adding the following line in your wp-config.php file:

define('WP_ALLOW_REPAIR', true);

Once you have done that, you can see the settings by visiting this page: http://www.yoursite.com/wp-admin/maint/repair.php Check Wp-config file for correct username, password, hostname, database name If any thing is wrong you will get Database related error.
Simple Solution for Problems related to WordPress

Categories
Wordpress

10 Popular Ways to Speed up WordPress Website

Slow website leads to slow growth, low page rank, experience, low traffic experience, So to have great user experience you need to speed up your site, but if you are a newbie and you don’t know how to improve your site with little effort, then I would recommend trying this options.

Hosting provider For Fast Website

Hosting provider For Fast Website
For fast website Pick hosting provider smartly, if you select wrong hosting provider you will face a lot of web host related issue.Use most reversion. Also, you may want to look into upgrading your plan to provide better server speed.If you own server, then use NGINX or Litespeed.

Plugins To Speed up Website

Plugins To Speed up Website
– Plugins can be a thing that can weight down your website. Don’t install too many plugins, I would suggest using the P3 plugin to see what plugins are slowing down your website the most. Sometimes there are multiple other plugins out there that you can use as alternatives if the one that you are currently using is slowing your site down.Remove any inactive plugins and remove those plugins from your web directory.

Pick WordPress Theme Smartly

– This is minor but a very select few themes can slow down your website. I would suggest switching to the Twenty Fifteen or Twenty Sixteen theme to see if it speeds up your website. Note that when you switch themes and then switch back to the theme that you were using, you can lose settings and may need to set the primary menu and sidebar widgets again.

Compression or Optimize Your Images

-This is a little minor in less you have more than 2 or 3 images on a page. Either way, you should get into the habit of compressing your images BEFORE you upload them to your website. Also, I would suggest making them jpg and as small as possible. If you have a bunch of images that you need to compress on your website, then there are some plugins out there.

  • How to Compress Picture and Images in WordPress

    I would recommend Compress JPEG & PNG images.This plugin automatically optimizes your images by integrating with the popular image compression services TinyJPG and TinyPNG.

  • compress-wp-images

    Use Cache Plugin to Reduce Load

    – The most popular way to boost your website speed is using cache plugin like WP Super Cache or W3 Total Cache. Although, downloading the plugin and activating it doesn’t just magically change your page speed. I would suggest checking out these two tutorials for WP Super Cache and W3 Total Cache. They provide great information for setting the plugins up properly to get the best results. Note that there are other cache options out there that are not listed. You can check them out on the WordPress directory.

    How to Setup W3 Total Cache In WordPress

    Use CDN to Increase Website Speed

    CDN also play a very important role in boosting your website speed ,in cdn all your images and files are stored and once stored it will open very fast without buffering ,You can easily config CDN using Wp super cache or W3 total cache plugin.

    How to Setup MaxCDN in WordPress

    Optimize your WordPress Database

    Use wordpress optimize plugin to optimize your wordpress ! if your database is optmize it will open fast and process request fast .

  • How to Optimize your WordPress Database

    You can use Wp-Optimize plugin to optimize your wordpress website data .WP-Optimize is an extensive WordPress database cleanup and optimization tool. It doesn’t require PhpMyAdmin to clean and optimize your database tables. Make sure to read instruction before you use this plugin.

  • Use CloudFlare Free CDN Speed Website

    – CloudFlare is basically a Web Application Firewall, a distributed proxy server, and a content delivery network (CDN). It optimizes your website by acting as a proxy between visitors and your server which helps to protect your website against DDoS attacks.

    How to use CloudFlare in WordPress

    Avoid Using too Many Social Media Buttons

    Don’t Add too many social media buttons on your site it will also reduce your website speed, Only use 2-3 popular social media buttons.Less button means more speed and great user experience.

    Use Https in Place of Http for Secure Connection

    Google now consider https as ranking signal so shift your website from http to https to boost your ranking we have alredy shared with you how to move your wordpress website from http to https.

    wordpress-speed-website

    In HTTP all communications sent over regular HTTP connections are in ‘plain text’ and can be read by any hacker that manages to break the connection between your browser and the website.
    With an HTTPS connection, all communications are securely encrypted. This means that even if somebody managed to break the connection, they would not be able to decrypt any of the data which passes between you and the website.

    Let me know if any of the above were able to help you solve the problem! If not then I can give you some more suggestions.

    Categories
    Wordpress

    Remove and Fix Https Red Error in WordPress Website URL

    cert-error-https-wordpres

    If you have moved your WordPress site from HTTP to https and after that you getting red Https error just like above image and you are worried about it, and the reason why the green bar is not displayed is because your site still has unsecured (HTTP) elements affixed to the site. Check your FAVICON URL, Check your logo URL ETC

    Other possible reasons for this issue are

    wp_cert_error_details

    Check your System/Computer Timing

    Check your Computer Timezone Setting,certificate-validation system relies on your computer’s time, If your system time is incorrect it will display error, date, https .in all https website.

    Check your Website Https Expire

    Check https Certificate Update, if your https is expired, then you will see the error related to https.So don’t forget to update certificate at regular interval.You also need to wait for 24 hr if you have installed certificate recently to make this work properly for you.

    Extended verification certificates

    If you go to an https site, there’s a padlock somewhere, depending on the browser you’re using. You can test this out yourself by visiting an https site.It will reflect your WordPress website in red color https like below image.

    securepss

    Make sure to get Green https all your image and URL use HTTPS

    Categories
    Wordpress

    Block Search Engines From Indexing Image/Photos in WordPress Posts

    You can quickly stop any WordPress website from indexing in Google from setting, but you can block the whole site from Dashboard > Settings > Reading but not single post and single post image or any WordPress page.

    Search Engines From Indexing Specific Image in WordPress

    You can also disable the entire website from indexing in Google by following robots.txt means Search Engines can not search the whole site.


    User-agent: *
    Disallow: /

    To disable single page, category or tags or anything in WordPress, you need to use the robots.txt file, which is a very common method to disable anything from indexing in Google.To use this, you must know simple steps

    How to Block/Disable Single Post using Robots.txt

    To block single post from search engine simple copy post URL of the post and add the following URL to robots.txt and that should include the URL slug “my-post-URL.” To disallow other posts or pages, you just need to copy and paste relevant URL slugs accurately ( Make sure to use your permalink structure ).


    User-agent: *
    Disallow: /my-post-url

    If you want to disable image directory to index in google then block image directory folder and search engine will not index your images


    User-agent: *
    Disallow: /wp-content/uploads/

    Now to Block Single image in WordPress Post Simply add image URL in robots file as explained in below code


    User-agent: *
    Disallow: /wp-content/uploads/123.jpg

    How to Disable/Block Pages and Post using WordPress Plugin

    Another easy way to do this automatically is the use WordPress Yoast Plugin , You can do all indexing and unindexing using plugin setting.Check below video for details.

    Using googleon and googleoff tags

    use google on off text to tell google not to index any part of post like if you dont want google to index image or any part of post then use that text or image in between google off and google on

    <!–googleoff: all–>

     

    <img src=”https://bukge.com/img/settings-reading-seo-wordpress.jpg” alt=”Search Engines From Indexing Specific Image in WordPress” width=”591″ height=”242″ class=”aligncenter size-full wp-image-6763″ />

    <!–googleon: all–>

    Categories
    Wordpress

    Protect and Recover Your WordPress Blog From Hacking

    If you are WordPress user and you are worried about your WordPress security then this article is for you, and we will tell you different ways to protect Your WordPress Blog or website From Being Hacked, It’s very easy for any hacker to inject any harmful code into your website if you are not serious about your WordPress security . So if you love your website and visitors then apply this steps on your blog.

    Hacking WordPress Site using SQL Injection

    If you use any plugin which is not authorized by WordPress or from unknown sources, then that plugin can hack your website using SQL Injection, because the plugin has a feature to Insert, Alter, Delete, your database table so using that then can gain access to your WordPress admin.So avoid using plugin from any unknown sources

    Disable or Hide Upload Directory

    If you upload directory is open then anyone can gain access to your files and folders and upload anything to your site and then inject harmful codes in your files, Even .htaccess file will be inserted, your file permission will be changed easily.

    If you are facing this then look for a malicious file that is inserted into your website, it may be in Themes folder or Plugin folder in Wp-Include folder or in the wp-config.php file.

    To tackle this situation you can delete all inactive plugin and inactive themes from your WordPress installation or if you don’t want to delete then set 000 permission of that folder.

    Disable Directory Listing using .htaccess

    Create a blank file in a text editor. Name it .htaccess and paste the following Add Options -Indexes in that file Upload that file in your /wp-content/uploads/ folder or at any place where you want to disable listing.

    You can also contact your hosting provider and tell them to disable directory listing from the whole server.

    Disable PHP Execution in Upload Directories

    Create a blank file in a text editor. Name it .htaccess and paste the following code in there:

    <Files *.php>
    deny from all
    </Files>

    Upload that file in your /wp-content/uploads/ folder. You should also upload it in your /wp-includes/ folder.

    Upgrade or Update your WordPress and Plugins

    If you see any update in WordPress or in plugins, then do that immediately, because WordPress send an update to patch security holes and by updating that you can patch that loophole.

    Steps to Recover From WordPress Hack

    Update your WordPress Installation, Upload Zip folder in WordPress extract that and replace wp-admin and wp-include folder with new folders.

    NOTE – Don’t remove Wp-Content folder because that folder contain your theme files plugins and images.

    For Wp-content you need to review each folder manually and remove any unknown PHP files in the image folder.Delete and install all plugin and themes again
    Delete all inactive plugin and themes
    Update you WP-config file with a new one but don’t forget to place your DB details in the new wp-config file.

    Disable Theme and Plugin Editing from WordPress Admin

    Add below line in your wp-config file to disable theme and plugin editing from WordPress admin

    define( ‘DISALLOW_FILE_EDIT’, true );

    Delete Unauthorized WordPress User

    When any hacker access your admin area then they create 2-3 profile with Admin access, so you need to check that area also if you see any unauthorized user as admin then delete all those users from your website.

    USE SSL for WordPress Admin Login

    Secure your logins and the admin area by using SSL so that both passwords and cookies are never sent in the clear, You can add below code in your wp-config.php to force all logins and all admin sessions to happen over SSL

    define( ‘FORCE_SSL_ADMIN’, true );

    Use WordPress Security Plugins

    Use WordPress security plugins like Wordfence or All In One WP Security & Firewall or BulletProof Security to secure your wordpres site , but all this will help you in secure your wordpress site . If your site is alredy infected then follow above steps.

    Categories
    Wordpress

    How To Fix Error Login Failed in WordPress Admin Not Working

    Unable to get into wp dashboard or the login section of your wordpress website,here’s how you can do it with simple steps

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    One of those should fix the blank Dashboard.

    White Screen of death in WordPress Login Page

    If so try:
    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    – switching to the default theme to rule out any theme-specific problems?

    if not try:

    – switching to the default theme by renaming your current theme’s folder in wp-content/themes using FTP or whatever file management application your host provides.

    – resetting the plugins folder by FTP or phpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    If still problem exist then Try increase PHP memory in WordPress

    Open wp-config which is located in the root WordPress directory and add below code

    define('WP_MEMORY_LIMIT', '64M');

    If that doesn’t work, try downloading WordPress again and delete then replace your copies of the /wp-admin/ and /wp-includes/ directories with fresh copies from the download.

    Useful Link – WordPress Codex

    Database Connection Error to Wp-Admin

    If you are getting a database error on the wp-admin for instance something like “One or more database tables are unavailable. The database may need to be repaired”, then you need to repair your database.
    You can do this by adding the following line in your wp-config.php file:

    define('WP_ALLOW_REPAIR', true);

    Once you have done that, you can see the settings by visiting this page: http://www.yoursite.com/wp-admin/maint/repair.php

    Check Wp-config file for correct username, password, hostname, database name If any thing is wrong you will get Database related error.

    Clear Browser Cache to Access Wp Admin

    Sometime browser  cache also play and important role in stopping you from stepping in wordpress admin area , so you can also try resolving the issue by clearing your browser cache.

    The way you clear the browser cache depends on the particular browser you are using. Here is how you clear the cache on common browsers:

    Check Firewall Block you from Logging

    Some firewalls also block you from logging in to WordPress. Disable your firewall and try to log in again.

    WordPress Support Forum

    Still have issue Post your problem in WordPress Support Forum

    Categories
    Wordpress

    How to Change or Add New Default Comment Avatar in WordPress

    WordPress don’t provide any option to add default avatar directly from comment discussion page ,you can either disable or  use available default avatar provided by wordpress .

    But if you are looking to add your own default Comment avatar in WordPress then you can do this by adding this little function to functions.php of your theme and it will add 2 Avatar from your folderimages of your theme directory.

    Categories
    Wordpress

    Increase PageRank In WordPress by Putting NoFollow Relationship

    Blogroll in WordPress displays a list of blogger’s favorite blogs in the sidebar of their blog. Blogroll provides links to external blogs in easily managed way. Some webmasters also use Blogroll to display backlinks to other external sites for link exchange or link buying. In reality, links added by WordPress blogroll is actually useless textlinks that are discouraged by Google and most other search engines, especially when the links are paid off or in exchange for a link back.

    Thus, linking blindly to external sites MAY (if your blog or website has been caught and labeled by Google machine algorithm as participate in illegal link scheme to boost page rank, although you’re not) severaly negatively discount your own site PageRank (PR) value, or worst, affects your site ranking in search engine results positioning. To avoid any potential backlash from the external links in Blogroll, it’s best to add rel=”nofollow” attribute to the <a> tag in Blogroll as suggested by Google so that no PageRank value is passed through the links, and the links won’t penalize your site ranking.