Blog Amitpal singh

Blog Amitpal singh

25 JunjQuery toggling without using toggle


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

14 JunGet Unique Post Meta Values From Meta Key


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

Read More

20 MayHow to make a custom widget area in wordpress?


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

Read More

12 MayHow to Add Page Slug in Body Class of your WordPress Theme ?


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

Read More

12 MayHow to make scroll to top ?


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

Read More

11 MayMedia upload default linking (change the attachment link to none in WordPress)


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

Read More