By: amitpal

jQuery toggling without using toggle
June 25, 2017

jQuery toggling without using toggle //set initial status $(‘element’).data(‘status’,’not_clicked’); $(‘element’).click(function(){ if( $(this).data(‘status’) == ‘clicked’ ) { $(this).data(‘status’,’not_clicked’); //your code in case…

Read More
Get Unique Post Meta Values From Meta Key
June 14, 2017

Get Unique Post Meta Values From Meta Key <?php /* Don't include the opening PHP tag*/ * @param string $key Post…

Read More
How to make a custom widget area in wordpress?
May 20, 2017

custom widget area in wordpress custom widget area in wordpress WordPress Amitpal Singh First of all place this code in function.php…

Read More
How to Add Page Slug in Body Class of your WordPress Theme ?
May 12, 2017

Page Slug in body class Page Slug in body class WordPress Amitpal Singh Put this in your theme functions.php //Page Slug…

Read More
How to make scroll to top ?
May 12, 2017

Scroll to top Scroll to top WordPress Amitpal Singh 1, Place the javascript code inside head tag: <script type="text/javascript"> $(document).ready(function(){ $(window).scroll(function(){…

Read More
Media upload default linking (change the attachment link to none in WordPress)
May 11, 2017

attachment link attachment link WordPress Amitpal Singh Blog This procedure will work for image media default linking in wordpress…… Place this…

Read More