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
/* | |
Drop cap first letter of each post. | |
*/ | |
function add_drop_caps($content) | |
{ | |
global $post; | |
//only posts | |
if(!empty($post) && $post->post_type == "post") | |
{ |
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 woocommerce_set_database_update_notice_as_actioned() { | |
// Bail if WoocCommerce notes class is not present. | |
if ( ! class_exists( 'WC_Notes_Run_Db_Update' ) ) { | |
return; | |
} | |
$woocommerce_notes_db = new WC_Notes_Run_Db_Update(); | |
$woocommerce_notes_db->set_notice_actioned(); | |
} | |
add_action( 'admin_notices', 'woocommerce_set_database_update_notice_as_actioned' ); |
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
whmapi1 system_needs_reboot | |
#https://unix.stackexchange.com/a/447066 | |
sudo grub2-set-default 0 | |
sudo grub2-mkconfig -o /boot/grub2/grub.cfg | |
sudo reboot |
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="orderme"> | |
<?php | |
$catalog_orderby_options = apply_filters( | |
'woocommerce_catalog_orderby', | |
array( | |
'menu_order' => __( 'Default sorting', 'woocommerce' ), | |
'popularity' => __( 'Sort by popularity', 'woocommerce' ), | |
'rating' => __( 'Sort by average rating', 'woocommerce' ), | |
'date' => __( 'Sort by latest', 'woocommerce' ), |
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 wc_get_current_page_url() { | |
if ( is_home() ) { | |
$link = home_url(); | |
} elseif ( is_shop() ) { | |
$link = get_permalink( wc_get_page_id( 'shop' ) ); | |
} elseif ( is_product_category() ) { | |
$link = get_term_link( get_query_var( 'product_cat' ), 'product_cat' ); | |
} elseif ( is_product_tag() ) { | |
$link = get_term_link( get_query_var( 'product_tag' ), 'product_tag' ); | |
} else { |
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
go to Dashboard > Elementor > Tools > Regenerate CSS > this should solve the problem |
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
copy taxonomy-product_cat.php as well |
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_filter( 'gettext', 'kk_translate_woocommerce_strings', 999, 3 ); | |
function kk_translate_woocommerce_strings( $translated, $untranslated, $domain ) { | |
if ( ! is_admin() && 'woocommerce' === $domain ) { | |
switch ( $translated) { | |
case 'Sokak adresi' : | |
$translated = 'Adresiniz'; | |
break; | |
case 'Fatura detayları' : | |
$translated = 'Gönderim & Fatura bilgileri'; |
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_print_scripts', function () { | |
global $post; | |
if ( is_a( $post, 'WP_Post' ) && !has_shortcode( $post->post_content, 'contact-form-7') ) { | |
wp_dequeue_script( 'google-recaptcha' ); | |
wp_dequeue_script( 'wpcf7-recaptcha' ); | |
} | |
}); | |
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
/* Small devices (landscape phones, 576px and up)*/ | |
@media (min-width: 576px) { | |
} | |
/* Medium devices (tablets, 768px and up) */ | |
@media (min-width: 768px) { | |
} |