This file contains hidden or 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
| header.site-header.header-2 { | |
| background-image: url('http://example.com/wp-content/uploads/2016/04/bg.jpg'); | |
| background-position: center center; | |
| background-size: cover; | |
| background-repeat: no-repeat | |
| } | |
| .page-template-template-homepage.home.home-v2 header.site-header.header-2, | |
| .page-template-template-homepage.home.home-v2 header.site-header.header-2, | |
| .home.home-v2 header.site-header.header-2 { |
This file contains hidden or 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( 'woocommerce_before_shop_loop_item_title', 'uc_wc_template_loop_stock', 11 ); | |
| function uc_wc_template_loop_stock() { | |
| global $product; | |
| if ( ! $product->managing_stock() && ! $product->is_in_stock() ) { | |
| echo '<div class="ribbon label-out-of-stock"><span>Out of Stock</span></div>'; | |
| } | |
| } |
This file contains hidden or 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 uc_child_enqueue_styles() { | |
| global $unicase_version; | |
| wp_enqueue_style( 'unicase-style', get_template_directory_uri() . '/rtl.css', '', $unicase_version ); | |
| wp_enqueue_style( 'unicase-child-style', get_stylesheet_directory_uri() . '/style.css', array( 'unicase-style' ) ); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'uc_child_enqueue_styles' ); |
This file contains hidden or 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_filter( 'electro_product_categories_widget_args', 'custom_electro_product_categories_widget_args' ); | |
| function custom_electro_product_categories_widget_args( $args ) { | |
| $args['orderby'] = 'name'; | |
| return $args; | |
| } |
This file contains hidden or 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_filter( 'electro_departments-menu_dropdown_trigger', 'electro_departments_menu_dropdown_trigger', 10, 2 ); | |
| if ( ! function_exists( 'electro_departments_menu_dropdown_trigger' ) ) { | |
| function electro_departments_menu_dropdown_trigger( $trigger, $theme_location ) { | |
| return 'hover'; | |
| } | |
| } |
This file contains hidden or 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_filter( 'unicase_live_search_query_args', 'custom_unicase_live_search_query_args' ); | |
| function custom_unicase_live_search_query_args( $args ) { | |
| $args['posts_per_page'] = 20; | |
| return $args; | |
| } |
This file contains hidden or 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_filter( 'sermons_post_type_args', 'custom_sermons_post_type_args' ); | |
| function custom_sermons_post_type_args( $args ) { | |
| $args = array( | |
| 'labels' => array( | |
| 'name' => _x( 'Radios', 'post type general name', 'bethlehem' ), | |
| 'singular_name' => _x( 'Radio', 'post type singular name', 'bethlehem' ), | |
| 'add_new' => _x( 'Add New', 'block', 'bethlehem' ), | |
| 'add_new_item' => __( 'Add New', 'bethlehem' ), | |
| 'edit_item' => __( 'Edit', 'bethlehem' ), |
This file contains hidden or 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_filter( 'sermons_post_type_labels', 'custom_sermons_post_type_labels' ); | |
| function custom_sermons_post_type_labels( $args ) { | |
| $args = array( | |
| 'name' => _x( 'Sermons', 'post type general name', 'bethlehem' ), | |
| 'singular_name' => _x( 'Sermon', 'post type singular name', 'bethlehem' ), | |
| 'add_new' => _x( 'Add New', 'block', 'bethlehem' ), | |
| 'add_new_item' => __( 'Add New', 'bethlehem' ), | |
| 'edit_item' => __( 'Edit', 'bethlehem' ), | |
| 'new_item' => __( 'New', 'bethlehem' ), |
This file contains hidden or 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 | |
| /** | |
| * Blog Carousel | |
| * | |
| * @author Transvelo | |
| * @package MyBag/Templates | |
| * @version 1.0.0 | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { |
This file contains hidden or 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
| if ( ! function_exists( 'bewear_header_social_link' ) ) { | |
| /** | |
| * Displays a link to social profile in website header | |
| * | |
| */ | |
| function bewear_header_social_link() { | |
| $social_networks = apply_filters( 'bewear_set_social_networks', bewear_get_social_networks() ); | |
| $social_links_output = ''; | |
| $social_link_html = apply_filters( 'bewear_header_social_link_html', '<a class="%1$s" href="%2$s"></a>' ); | |