This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel"> | |
<?php | |
$args = array('post_type' => 'slider', | |
'posts_per_page' => '-1', | |
); | |
$slides = new WP_Query( $args );?> | |
<?php | |
$i=0;$count = 0; ?> | |
<ol class="carousel-indicators"> | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
#wrapper{ | |
display: inline-block; | |
position: relative; | |
cursor: pointer; | |
} | |
.circle{ | |
width: 35px; | |
height: 35px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(function(){ | |
var audio = document.getElementsByTagName("audio")[0]; | |
jQuery('#divid').hover( | |
function() { | |
audio.play(); | |
}, | |
function() { | |
audio.pause() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container-fluid"> | |
<div class="row"> | |
<div class="col-lg-6 col-md-12"> | |
<div class="accordion" id="accordionExample"> | |
<div class="card"> | |
<?php | |
$args = array( | |
'post_type' => 'card', | |
'posts_per_page' => '-1', | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Contact | |
*/ | |
?> | |
<?php | |
if(isset($_POST['submitted'])) { | |
if(trim($_POST['contactName']) === '') { | |
$nameError = 'Please enter your name.'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$taxonomy = 'product_categories'; | |
$args = array( | |
'parent' => 0 // to get only parent terms | |
); | |
$terms = get_terms( $taxonomy, $args ); | |
foreach( $terms as $term ) { | |
$children = get_terms( $taxonomy, array( | |
'parent' => $term->term_id, | |
) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @snippet Add an input field to products - WooCommerce | |
*/ | |
// ----------------------------------------- | |
// 1. Show custom input field above Add to Cart |
OlderNewer