Mobile menu open

ID-at adni a menünek VAGY CSS: #et-footer-nav .et_pb_menu__menu { display: block; } #et-footer-nav .mobile_menu_bar { display: none; } Divi menu hack – don’t collapse utilities menu and footer menu on...

Social media icon to menu

HEAD <link rel=”stylesheet” href=”https://use.fontawesome.com/releases/v5.7.1/css/all.css” integrity=”sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr” crossorigin=”anonymous”> MENU label (open...

404 to home

Adding this code in your theme’s 404.php file. Place this code at the very beginning: <?php header(“HTTP/1.1 301 Moved Permanently”); header(“Location: “.get_bloginfo(‘url’)); exit(); ?>

Kategória oldal ABC sorrendben

functions.php-ba kell másolni add_action( ‘pre_get_posts’, ‘my_change_sort_order’); function my_change_sort_order($query){ if(is_archive()): //If you wanted it for the archive of a custom post type use: is_post_type_archive( $post_type ) //Set...

On sale felirat %

add_filter( ‘woocommerce_sale_flash’, ‘add_percentage_to_sale_badge’, 20, 3 ); function add_percentage_to_sale_badge( $html, $post, $product ) { if( $product->is_type(‘variable’)){ $percentages = array(); // Get all variation prices...

Exclude Pages from Search

//Exclude pages from WordPress Search if (!is_admin()) { function wpb_search_filter($query) { if ($query->is_search) { $query->set(‘post_type’, ‘post’); } return $query; } add_filter(‘pre_get_posts’,’wpb_search_filter’);...