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
function my_testimonial_accordion($atts){ | |
ob_start(); | |
$newcat = shortcode_atts(array( | |
'testcat' => '', | |
), $atts ); | |
if ( $newcat['testcat'] ) { | |
// Parse type into an array. Whitespace will be stripped. | |
$newcat['testcat'] = array_map( 'trim', str_getcsv( $newcat['testcat'], ',' ) ); | |
} |
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
// From https://github.com/elementor/elementor/issues/5598 | |
<form class="elementor-search-form" role="search" action="https://website.com" method="get"> | |
<input type="hidden" id="search-param" name="post_type" value="product"> | |
<div class="elementor-search-form__container"> | |
<input placeholder="Search for product..." class="elementor-search-form__input" type="search" name="s" title="Search" value=""> | |
<button class="elementor-search-form__submit" type="submit"> | |
<i class="fa fa-search" aria-hidden="true"></i> | |
<span class="elementor-screen-only">Search</span> | |
</button> | |
</div> |
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
<ul class="product-swatches"> | |
<li class="active-swatch"> | |
<a href="#"> | |
<div class="purple single-swatch"></div> | |
</a> | |
</li> | |
<li> | |
<a href="#"> | |
<div class="green single-swatch"></div> | |
</a> |
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 | |
/** | |
* Plugin Name: Custom Collection Plugin | |
* Plugin URI: https://thedigitalconcern.com | |
* Description: Creates a collection custom post type called Objects. | |
* Version: 1.0 | |
* Requires at least: 5.2 | |
* Requires PHP: 7.2 | |
* License: GPL v2 or later | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
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
add_action('wp_head','ga_header', 20); | |
function ga_header() { | |
if ( !is_user_logged_in()) { ?> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-XXXXX-Y', 'auto'); |
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 $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'slideshow' );?> | |
<div style="background-image: url('<?php echo $thumb['0'];?>');" class="large-header-image"> | |
</div> |
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
// Site URL | |
<?php get_site_url(); ?> | |
// Dynamic Footer Date | |
<?php the_date('Y'); ?> | |
// Featured Image as Background Image | |
<style>.project-card-image{width:200px;height:200px;background-position:center}</style> | |
<?php $projectbg = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'home-campaigns' );?> | |
<div class="project-card-image" style="background-image: url('<?php echo $projectbg['0'];?>');"></div> |
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 $my_home_url = apply_filters('wpml_home_url', get_option('home')); ?> | |
<a href="<?php echo $my_home_url; ?>">Home</a> |
NewerOlder