starnacht.calecosmtics.at – Fonts, Headlines, Buttons, …

function add_style_to_footer_lonzo() { ?> body { background-color:#FFFFFF !important; font-family: “Montserrat”, serif; } .elementor-kit-6 { –e-global-color-primary: #a49b98; –e-global-color-secondary: #a5c693; –e-global-color-text: #706f6f; –e-global-color-accent: #c86a8f; –e-global-typography-primary-font-family: “Montserrat”; –e-global-typography-primary-font-weight: 300; –e-global-typography-secondary-font-family: “Montserrat”; –e-global-typography-secondary-font-weight: 600; –e-global-typography-text-font-family: “Montserrat”; –e-global-typography-text-font-weight: 300; –e-global-typography-accent-font-family: “Montserrat”; –e-global-typography-accent-font-weight: 800; } h1…Continue reading

Search only WP posts

function searchFilter($query) { if ($query->is_search) { if ( !isset($query->query_vars[‘post_type’]) ) { $query->set(‘post_type’, ‘post’); } } return $query; } add_filter(‘pre_get_posts’,’searchFilter’);Continue reading

Elementor Essentals [PHP]

/**************************************/ /* Allow HTML entities in text editor */ /**************************************/ function dmcg_allow_nbsp_in_tinymce( $init ) { $init[‘entities’] = ‘160,nbsp,38,amp,60,lt,62,gt,173,shy’; $init[‘entity_encoding’] = ‘named’; return $init; } add_filter( ‘tiny_mce_before_init’, ‘dmcg_allow_nbsp_in_tinymce’ ); /*************************************************/ /* Disable Gutenberg Editor (use Classic Editor) */ /*************************************************/ add_filter(‘gutenberg_can_edit_post’, ‘__return_false’,…Continue reading

Auto register guests that purchase

function wc_register_guests( $order_id ) { // get all the order data $order = new WC_Order($order_id); //get the user email from the order $order_email = $order->billing_email; // check if there are any users with the billing email as user or email…Continue reading

Buy Now Button – Variation

add_filter( ‘gettext’, ‘customizing_product_variation_message’, 10, 3 ); function customizing_product_variation_message( $translated_text, $untranslated_text, $domain ) { if ($untranslated_text == ‘Select options’) { $translated_text = __( ‘Buy Now’, $domain ); } if ($untranslated_text == ‘Select options’) { $translated_text = __( ‘Buy Now’, $domain );…Continue reading

Continue Shopping Button

/** * Add Continue Shopping Button on Cart Page * Add to theme functions.php file or Code Snippets plugin */ add_action( ‘woocommerce_before_cart_table’, ‘woo_add_continue_shopping_button_to_cart’ ); function woo_add_continue_shopping_button_to_cart() { $shop_page_url = get_permalink( woocommerce_get_page_id( ‘shop’ ) ); echo ‘ ‘; echo ‘ Continue…Continue reading

product data tabs

/** * Rename product data tabs */ add_filter( ‘woocommerce_product_tabs’, ‘woo_rename_tabs’, 98 ); function woo_rename_tabs( $tabs ) { $tabs[‘additional_information’][‘title’] = __( ‘Product Info’ ); // Rename the additional information tab return $tabs; }Continue reading