Auto refresh WordPress pages and post

Auto refresh WordPress pages and post

WordPress posts and pages can be automatically refreshed using some tweaks in header of the website. Auto refresh functionality can be used in many ways depending upon needs.It can be used in landing pages to redirect to a particular page or posts after a certain interval of time. It can be used in other situations.for example, if the website is moved from root directory to a new directory and want the users to go to new website through root directory then simply create a page in root directory and write…

Read More

Best Hindi Typing software and tools

Best Hindi Typing software and tools

There are many Hindi typing tools available.Some tools work online and some offline.These typing tools can be used in WordPress publishing and blogging.Online Typing tools are very handy if working online,blogging or posting online status on social networks.Offline typing tools are useful for offline  working on documents etc. Here are  some  user friendly  and easy to use typing tools. 1.Google Transliteration Google transliteration is a transliteration typing service for Indian and others languages. It has support for Hindi typing as well as other indic languages.This tool is powered by Google,the search…

Read More

BlueHost to discontinue its Bluehost India Affiliate Program

BlueHost to discontinue its Bluehost India Affiliate Program

Bluehost has decided to discontinue its ‘Bluehost India Affiliate Program’ in India from 3 Jan 2018 with immediate effect. Its has not cited any reasons of why its closing the affiliate program in India. Bluehost India Logo It has send a mail to all its affiliate of Bluehost India. Bluehost will continue to track the affiliate commission till 10 Jan 2018 and they will completely close afterwards from 11 Jan 2018. Web Hosting affiliate is a good source of income for bloggers who promote them. Its remain to see if…

Read More

How to create a Widget in WordPress 4.4

How to create a Widget in WordPress 4.4

WordPress widgets are content blocks that can be used to add different type of content & features(for example, list of latest posts, a slider, a interactive map, a contact form etc) in the theme. Widget are used to control structure of theme by creating different layouts based on widget areas. Widgets can be added in pre-defined widget areas in a theme. A widget can be added/removed from Theme customizer or Appearance => Widgets as shown below. Adding widgets in Theme customizer   Adding Widget in Appearance => Widget : You…

Read More

How to Display Widgets in WordPress

How to Display Widgets in WordPress

Sidebar or Widget area can be used to show widgets in the part of website where it is located. Widget area can be anywhere either in left side of content or right side of content, in header area or footer area. Available widgets can be found in Appearance -> Widgets in WordPress Admin Area and can be dragged to display in available widget areas. Other Method of showing widgets are by the_widget template tag. By using this template tag widgets can be displayed in any part of websites without a…

Read More

How to do Real time form arithmetic in JavaScript

How to do Real time form arithmetic in JavaScript

This snippet can be used to do Real time arithmetic using JavaScript. In the example below. I am using a simple arithmetic to calculate 4% tax and output real-time total amount. Create an HTML form field for input amount. Create two input fields to output tax and total sum in Real time. </p> <p><input id=”amount” type=”text” onKeyPress=”OgKeyPress()” onKeyUp=”OgKeyPress()”><br><br /> <input id=”tax” type=”text” disabled><br><br /> <input id=”totalamount” type=”text” disabled><br /> 0 1 2 3 4 <input id=“amount” type=“text” onKeyPress=“OgKeyPress()” onKeyUp=“OgKeyPress()”><br> <input id=“tax” type=“text” disabled><br> <input id=“totalamount” type=“text” disabled> 2. Following JavaScript…

Read More

How to fix: There are no HTTP transports available which can complete the requested request

How to fix: There are no HTTP transports available which can complete the requested request

This error message pops up while updating WordPress Core, Themes or Plugins. This error is common on localhost installations.Here is how it looks: How to fix The error pops up when Curl extension of PHP and OpenSSL are not enabled. To fix this issue you need to enable curl and openSSL. Search for php.in PHP configuration file in Apache directory of your LAMP or WAMP package or other custom installations. Look for this line. </p><br /> <p>;extension=php_curl.dll<br /><br /> 0 1 2 ;extension=php_curl.dll If there is a semi-colon at start…

Read More

How to make menu links open in a new tab/window

How to make menu links open in a new tab/window

By default a menu link in WordPress Menus opens in same window.What if you want a page ,category or other post type link in a menus open is new window/tab ? It is very easy to set a hyperlink to open in new tab/window in HTML. </p> <p><a href=”http://wpgyan.com” target=”_blank”>Link Text</a><br /> 0 1 2 <a href=“http://wpgyan.com” target=“_blank”>Link Text</a> In WordPress by applying some conditional PHP codes in menu it can be set to open to new window/tab. But In this post I am going to show you how to…

Read More

How to redirect to another page in WordPress

How to redirect to another page in WordPress

A page can be redirected to a new page or URL. There are different methods to achieve this. In this blog post we will deal with all these methods in details. Use of these methods depends upon different  use cases. Sometimes HTML redirect work perfectly, in some cases JavaScript or PHP. There is a WordPress function which can also be used and I think it is best to use WordPress function. Here are different methods for redirect   HTML Method In this method we will use meta redirect. Add following…

Read More