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 add Custom CSS in WordPress

How to add Custom CSS in WordPress

There are different methods for adding custom CSS to your WordPress site. Custom CSS can be added for modify frond-end of your website or modify back-end(admin area) of your website. Modifying website front look is most common. Adding CSS to modify website front-end Add following line of code in functions.php of your theme to modify CSS in front-end of website. </p> <p>add_action(‘wp_head’,’custom_css’);</p> <p>function custom_css() {</p> <p> $output=”<style> .entry-content { background-color : #f1f1f1; } </style>”;</p> <p> echo $output;</p> <p>}<br /> 0 1 2 3 4 5 6 7 8 9 10…

Read More

How to create a custom Shortcode in WordPress

How to create a custom Shortcode in WordPress

Shortcode in WordPress are text macros which are used in content area of a Page or Post and May be Widgets. Shortcodes are created by using a collections of functions. You will learn about shortcode and How to create a custom shortcode as you proceed. What is a Shortcode? Shortcode are text macros or shorthand tags, which can be used in post or pages to display some codes or some custom texts. syntax : </p> <p>[myshortcode]<br /> 0 1 2 [myshortcode] Shortcode can be of two types: Self closing and…

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 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