/*------------------------------\* NOTHING TO EDIT HERE \*------------------------------*/ add_theme_support( 'menus' ); add_theme_support( 'post-thumbnails' ); add_filter('use_block_editor_for_post', '__return_false', 10); add_filter( 'big_image_size_threshold', '__return_false' ); //
CLEANUP remove_action('wp_print_styles', 'print_emoji_styles' ); //REMOVE UNNECESSARY EMOJI CODE, STEP 1 remove_action('wp_head', 'print_emoji_detection_script', 7 ); //REMOVE UNNECESSARY EMOJI CODE, STEP 2 remove_action('wp_head', 'feed_links', 2); //REMOVE GENERAL FEEDS remove_action('wp_head', 'feed_links_extra', 3); //REMOVE EXTRA FEEDS remove_action('wp_head', 'rsd_link'); //REMOVE RSD LINK remove_action('wp_head', 'wp_generator'); //REMOVE XHTML GENERATOR remove_action('wp_head', 'wlwmanifest_link'); //REMOVE WLW LINK remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0); //REMOVE SHORTLINK remove_action('welcome_panel', 'wp_welcome_panel'); //FIX HANDLING OF UPPERCASE UTF-8 ENCODED HEBREW URLS function urlCaseInsensitivity() { if (preg_match('/[A-Z]/', $_SERVER['REQUEST_URI'])) { $_SERVER['REQUEST_URI'] = strtolower($_SERVER['REQUEST_URI']); $_SERVER['PATH_INFO'] = strtolower($_SERVER['PATH_INFO']); } } add_action('init', 'urlCaseInsensitivity'); /*------------------------------\* CUSTOMIZATION STARTS HERE \*------------------------------*/ //REMOVE TOOLBAR remove_action('init', 'wp_admin_bar_init'); //add custom logo add_theme_support( 'custom-logo' ); //DEFINE A CUSTOM THUMBNAIL SIZE function remove_default_image_sizes( $sizes ) { //unset( $sizes['thumbnail']); unset( $sizes['medium']); unset( $sizes['large']); unset( $sizes['medium_large']); return $sizes; } add_filter('intermediate_image_sizes_advanced', 'remove_default_image_sizes'); add_image_size('70x70', 70, 70, true); add_image_size('size-467x702', 467, 702, true); add_image_size('1200', 1200, '', true); add_image_size('1700x800', 1700, 800, true); function remove_footer_admin () {echo 'Fueled by Studio Costa';} add_filter('admin_footer_text', 'remove_footer_admin'); add_filter('show_admin_bar', '__return_false'); //ENQUEUE FRONTEND RESOURCES TO if ( $GLOBALS['pagenow'] != 'wp-login.php' && !is_admin() ) { $rand=rand(0,999999999); wp_deregister_script ('jquery' ); wp_register_script( 'jquery', 'https://code.jquery.com/jquery-latest.min.js' , array(), '3.0.0'); // Google CDN jQuery wp_enqueue_script( 'jquery') ; wp_register_script( 'wow', get_template_directory_uri() . '/js/wow.min.js' , array(), '1.0.0'); wp_enqueue_script( 'wow') ; wp_register_script('owl', get_template_directory_uri() . '/js/owl.carousel.min.js', array('jquery'), '1.0.0'); wp_enqueue_script('owl'); wp_register_script('masonry', get_template_directory_uri() . '/js/masonry.pkgd.min.jss', array(), '1.0'); wp_enqueue_script('masonry'); wp_register_script('magnific', get_template_directory_uri() . '/js/magnific-popup.js', array(), '3.0.3'); // Jquery Cycle wp_enqueue_script('magnific'); // Enqueue it! wp_register_script( 'scripts', get_template_directory_uri() . '/js/scripts.js' , array(), '1.0.0'); wp_enqueue_script( 'scripts') ; wp_register_style('magnific', get_template_directory_uri() . '/js/magnific-popup.css', array(), '1.0', 'all'); wp_enqueue_style('magnific'); wp_register_style('owl', get_template_directory_uri() . '/js/owl.carousel.css', array(), '1.0', 'all'); wp_enqueue_style('owl'); wp_register_style('main-style', get_template_directory_uri() . '/style.css', array(), $rand); wp_enqueue_style('main-style'); wp_register_style('animate', get_template_directory_uri() . '/js/animate.css', array(), '1.0'); wp_enqueue_style('animate'); wp_register_style('Miriam Libre','https://fonts.googleapis.com/css?family=Rubik:300,400,700&subset=hebrew', array(), '1.0', 'all'); wp_enqueue_style('Miriam Libre'); } //ENQUEUE BACKEND RESOURCES TO else { wp_register_style('backend-style', get_template_directory_uri() . '/editor-style.css', array(), '1.0.0', 'all'); wp_enqueue_style('backend-style'); } if( function_exists('acf_add_options_page') ) { acf_add_options_page(); } function add_favicon() { $favicon_url = get_template_directory_uri() . '/img/favicons/favicon.ico'; echo ''; } function excerpt($limit) { $excerpt = explode(' ', get_the_excerpt(), $limit); if (count($excerpt) >= $limit) { array_pop($excerpt); $excerpt = implode(" ", $excerpt) . '...'; } else { $excerpt = implode(" ", $excerpt); } $excerpt = preg_replace('`\[[^\]]*\]`', '', $excerpt); return $excerpt; } add_action('login_head', 'add_favicon'); add_action('admin_head', 'add_favicon'); if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => __( 'Twitter', 'theme' ), 'id' => 'user-widget-area', 'before_widget' => '
שלום קוסטה,
אני רוצה להודות לך על האתר המקצועי שבנית עבורי. התוצאה הסופית היא הרבה מעבר למה שציפיתי. לאורך כל הדרך היית קשוב ולקחת ברצינות כל רעיון שלי ומיד יישמת בהצלחה רבה.
תודה רבה על הסבלנות האינסופית שהיתה לך עם כל שיגעון שלי.
אני בהחלט אמליץ עליך לכל מכרי.
כמה מילים על העבודה מול קוסטה: ראשית, אומר שאני מאוד אוהב את האתר שלי ומקבל עליו המון פידבקים חיוביים. קוסטה ניחן בהמון סבלנות ויודע לייצר עבודה מאוד מדויקת וזה משהו שמאוד חשוב לי. עבדנו על האתר כאילו וקילפנו בצל, חתיכה חתיכה עד שהכל התחבר יחדיו לתוצאה מושלמת ואני מאוד מרוצה. הפינגפונג מול קוסטה במסגרת הליך העבודה היה מאוד מועיל וכל מי שמחפש מתכנת עם סבלנות וכזה שיודע גם לתת שירות נעים, דבר שמאוד חשוב לי – כדאי לו לקחת את קוסטה
— Tamir Hass
אני ממליץ בחום על שירותיו של קוסטה. מעצב בחסד, סופר מקצועי, והכי חשוב זמין 24/7… שירות ברמה הגבוהה ביותר! בקיצור, מוכשר ביותר ואני סומך עליו בעיניים עצומות, אמין ויסודי. אנחנו עובדים כבר הרבה שנים ביחד ומקווה שנמשיך עוד שנים רבות 🙂
— ג'וש ג'ייקובסון
רציתי להודות על עבודה משובחת הכוללת עיצוב לוגו והקמת אתר אינטרנט מההתחלה ועד הסוף לכל המשתמע בכך. תודה על מקצועיות, זמינות וסבלנות.
— רוית מילר