How To Hide View Source In WordPress

Hello,reader if you are interested to disable right click on your website .Then, i would like to give an idea about it that You can’t do this but only thing is that you can disable right clicks. To disable right click on your website in WordPress you can use this code as shown <body oncontextmenu=”return … Read more

Select All Checkboxes Using JavaScript

Select All Checkboxes Using JavaScript

When you have a list of checkboxes and select all option in a form then you must have to implement check uncheck all checkbox on click of select allcheckbox. In this tutorial, we are going to see how to select all Checkboxes using JavaScript. Here I am going to create a simple JavaScript function to … Read more

how to play sound in php

PHP is a processing language.It can’t play sound.But to use it dynamically we can use it as using html code. $myAudioFile = “mysong.mp3″; echo ‘<EMBED SRC=”‘.$myAudioFile.'” HIDDEN=”TRUE” AUTOSTART=”TRUE”></EMBED>’;

to Display Product specific to a category with WooCommerce Plugin

<ul class=”products”> <?php $args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 1, ‘product_cat’ => ‘shoes’, ‘orderby’ => ‘rand’ ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?> <h2>Shoes</h2> <li class=”product”> <a href=”<?php echo get_permalink( $loop->post->ID ) ?>” title=”<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>”> <?php woocommerce_show_product_sale_flash( $post, … Read more