Skip to content

Instantly share code, notes, and snippets.

View hooks.php
add_filter( 'tm_google_fonts', '_jx_add_google_fonts' );
function _jx_add_google_fonts( $fonts ) {
$fonts['Spectral'] = array(
'styles' => '300italic,400italic,600italic,700italic,800italic,400,300,600,700,800',
'character_set' => 'latin,vietnamese,latin-ext',
'type' => 'serif',
);
return $fonts;
}
View functions-childtheme.php
add_action( 'wp_enqueue_scripts', 'mohican_child_theme_enqueue_styles', 21 );
View functions-line9.php
add_action( 'wp_enqueue_scripts', 'example_child_theme_enqueue_styles', 21 );
View ecommerce-functions.php
/**
* WooCommerce Extra Feature
* --------------------------
*
* Change number of related products on product page
* Set your own value for 'posts_per_page'
*
*/
function woo_related_products_limit() {
global $product;
View gallery-post-template.tmpl
<div class="cherry-projects-single-meta">%%DATE%%
%%AUTHOR%%
%%COMMENTS%%</div>
%%SLIDER%%
<div class="cherry-projects-single__container">
<div class="cherry-projects-single__media">%%FEATUREDIMAGE%%</div>
<div class="cherry-projects-single__content">%%SKILLSLIST%%
%%DETAILSLIST%%
%%TERMSLIST%%
%%TITLE%%
View single.tmpl
<div class="team-photo">%%PHOTO size="medium" link="false"%%</div>
<div class="team-meta">%%NAME wrap="h1" class="team-member-name"%%
%%POSITION%%
%%LOCATION%%
%%PHONE%%
%%SOCIALS%%</div>
<div class="team-content">%%CONTENT%%</div>
%%SKILLS%%
View woocommerce-functions1.php
function cosmetro_before_single_product_summary_wrap_before() {
echo '<div class="row single_product_wrapper"><div class="col-xl-6 col-md-12 col-sm-12 col-xs-12"><div class="single-image-container">';
}
function cosmetro_before_single_product_summary_wrap_after() {
echo '</div></div><div class="col-xl-6 col-md-12 col-sm-12 col-xs-12">';
}
View testimonials-slider.txt
[tm_testimonials order="desc" orderby="date" sup_title="Super Title" title="Title" sub_title="Sub Title" divider="on" show_avatar="on" size="60" show_email="on" show_position="on" show_company="on" content_length="25" type="slider" autoplay="7000" effect="slide" loop="on" pagination="on" navigation="on" slides_per_view="1" space_between="15" template="default.tmpl"]
View testimonials-list.txt
[tm_testimonials order="desc" orderby="date" sup_title="Super Title" title="Title" sub_title="Sub Title" divider="on" show_avatar="on" size="60" show_email="on" show_position="on" show_company="on" content_length="25" type="list" template="default.tmpl"]
View archive-services3.php
'limit' => cherry_services_list()->get_option( 'posts-per-page', 10 ),
You can’t perform that action at this time.