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>’;
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>’;
<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
<?php wp_nav_menu( array( ‘sort_column’ => ‘menu_order’, ‘container_class’ => ‘menu-header’ ,’menu_class’=> ‘nav navbar-nav navbar-right’,’menu’ => ‘you Menu name ‘) ); ?>
WordPress sub menu has always a default class. Default class name is “sub-menu”. In this tutorial, we are going to see how to Change default sub menu class in WordPress. To change it to custom class add given below code to functions.php add it to functions.php function change_submenu_class($menu) { $menu = preg_replace(‘/ class=”sub-menu”/’,’/ class=”your menu … Read more
Do you want to add css class to wp nav menu to change its appearance. Do you want to change wp nav menu link style. In this tutorial, we are going to see how to add CSS Classes to menu items in WordPress. With following these steps you can easily add class to ul in … Read more