tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); add_theme_support( 'align-wide' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support( 'post-thumbnails' ); add_image_size( 'minimalblog-blog-thumb', 600, 800, true ); add_image_size( 'minimalblog-popular-post', 270, 215, true ); add_image_size( 'minimalblog-slider-image', 238, 238, true ); add_image_size( 'minimalblog-small-thumb', 100, 100, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'main-menu' => esc_html__( 'Primary', 'minimalblog' ), 'footer-menu' => esc_html__( 'Footer Menu', 'minimalblog' ), ) ); add_theme_support( 'woocommerce' ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); add_theme_support( 'post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video', 'audio', ) ); // Set up the WordPress core custom background feature. $custom_bg_args = apply_filters( 'minimalblog_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ); add_theme_support( 'custom-background', $custom_bg_args ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); // Add theme support for selective refresh for widgets. add_theme_support( 'editor-styles' ); add_theme_support( 'wp-block-styles' ); add_editor_style( 'css/bootstrap.css' ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, ) ); $GLOBALS['content_width'] = apply_filters( 'minimalblog_content_width', 640 ); } endif; add_action( 'after_setup_theme', 'minimalblog_setup' ); /** * Jetpack */ require get_template_directory() . '/inc/jetpack.php'; /** * Register widgets */ require get_template_directory() . '/inc/register-widgets.php'; /** * Enqueue scripts */ require get_template_directory() . '/inc/enqueue-scripts.php'; /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Functions which enhance the theme by hooking into WordPress. */ require get_template_directory() . '/inc/template-functions.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * minimalblog Comment Template. */ require get_template_directory() . '/inc/minimalblog-comment-template.php'; /** * minimalblog Sanitize Function. */ require get_template_directory() . '/inc/sanitize-function.php'; /** * Checkout Fields */ require get_template_directory() . '/inc/checkout-fields.php'; /** * Recent Post Widget */ require get_template_directory() . '/inc/recent-post.php'; /** * Google Map */ require get_template_directory() . '/inc/gmap.php'; /** * TGM plugin Activation */ require get_template_directory() . '/inc/tgm/required-plugin.php'; /** * Upgrade to Pro links */ require_once get_template_directory() . '/minimalblog-pro/class-customize.php'; add_filter( 'woocommerce_page_title', 'minimalblog_woocommerce_shop_title' ); function minimalblog_woocommerce_shop_title( $default ) { $show_title_on_banner = get_theme_mod( 'show_title_on_banner', false ); // var_dump($show_title_on_banner); if ( $show_title_on_banner === false ) : $default = __( 'Shop', 'minimalblog' ); else : $default = false; endif; return $default; } /** * minimalblog WooCommerce Mini cart counter */ add_filter( 'woocommerce_add_to_cart_fragments', 'minimalblog_refresh_mini_cart_count' ); function minimalblog_refresh_mini_cart_count( $fragments ) { ob_start(); ?>
cart->get_cart_contents_count(); ?>

Thanks for using Minimalblog WordPress theme. Hope you will like it. to get live support and access all options of minimalblog. you may get pro version. thank you

Minimlablog Pro live Preview Decumentation Supports Reviews

This message will not appear in pro version.

'; } add_action('admin_notices', 'minimalblog_admin_notice_for_help');