Skip to content

Instantly share code, notes, and snippets.

Steeru

Block or report user

Report or block Steeru

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View business-field-pro-child
function business_field_pro_child_add_custom_font($choices){
$choices['libre-baskerville'] = array(
'name' => 'Libre Baskerville',
'label' => "'Libre Baskerville', serif;",
);
return $choices;
View wp-travel-child_customize
function wp_travel_child_customize_currency_symbol( $currency_symbols ) {
if ( is_array( $currency_symbols ) ) {
foreach ( $currency_symbols as $code => $text ) {
if ( 'USD' == $code ) {
$currency_symbols[$code] = 'USD$';
}
View wp-travel-child
function travel_log_child_remove_cat_titles($title) {
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
View wp-travel-customize
function wp_travel_customize_default_country_setting(){
?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#wp-travel-country > option[value="AU"]').attr("selected",true);
});
View wp-travel-customize
function wp_travel_customize_travel_info_section (){
return __( '%d your text', 'wp-travel' );
}
add_filter ('wp_travel_template_group_size_text','wp_travel_customize_travel_info_section');
View child
function travel_log_child_update_option_vals( $value, $old_value ) {
update_option( 'theme_mods_' . get_template(), $value );
return $old_value; // prevent update to child theme mods
}
function travel_log_child_customizer_default_vals_update( $default ) {
return get_option( 'theme_mods_' . get_template(), $default );
}
function travel_log_child_customizer_parent_options_import() {
View ecommerce-market-pro
<?php
/**
* Cart Page
*
* This template can be overridden by copying it to yourtheme/woocommerce/cart/cart.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
View wp-travel-customize
function travel_log_child_formatted_currency(){
global $post;
$post_id = $post->ID;
if ( wp_travel_is_cart_page() ) {
if ( isset( $_REQUEST['trip_id'] ) && '' != $_REQUEST['trip_id'] ) {
$post_id = $_REQUEST['trip_id'];
View wp-travel-customize
function travel_log_front_page_slider_wrap() {
if ( ! is_front_page() || is_home() ) {
return;
}
$enabled = travel_log_get_theme_option( 'home_slider_enable' );
if ( ! is_customize_preview() && false === $enabled && ! is_home() ) {
View wp-travel-customize
function wp_travel_customize_post_type( $query ) {
$post_type = travel_log_wp_travel_support_get_post_type();
if ( is_post_type_archive( $post_type ) ) {
// Display 50 posts for a custom post type called 'movie'
$query->set( 'posts_per_page', 50 );
$query->set('orderby', 'meta_value');
You can’t perform that action at this time.