/** * Theme functions and definitions. */ /* Set up the content width value based on the theme's design. */ if ( !function_exists('chromium_content_width') ) { function chromium_content_width() { $GLOBALS['content_width'] = apply_filters( 'chromium_content_width', 1200 ); } add_action( 'after_setup_theme', 'chromium_content_width', 0 ); } /* Adding additional image sizes. */ if ( function_exists( 'add_image_size' ) ) { add_image_size( 'chromium-recent-posts-thumb-s', 160, 190, true); add_image_size( 'chromium-recent-posts-thumb-m', 225, 267, true); add_image_size( 'chromium-recent-posts-thumb-top', 384, 216, true); add_image_size( 'chromium-gallery-s', 384, 216, true); add_image_size( 'chromium-gallery-m', 640, 360, true); add_image_size( 'chromium-gallery-l', 1024, 576, true); add_image_size( 'chromium-grid-blog', 350, 350, true); add_image_size( 'chromium-grid-blog-m', 600, 600, true); } /* Sets up theme defaults and registers support for various WordPress features. */ if ( ! function_exists( 'chromium_setup' ) ) : function chromium_setup() { // Translation availability load_theme_textdomain( 'chromium', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); // Let WordPress manage the document title. add_theme_support( 'title-tag' ); // Enable support for Post Thumbnails on posts and pages. add_theme_support( 'post-thumbnails' ); add_image_size( 'post-thumbnail', 870, 350, true); // Custom Logo $logo_defaults = apply_filters( 'chromium-custom-logo-defaults', array( 'height' => 40, 'width' => 235, 'flex-height' => true, 'flex-width' => true, ) ); add_theme_support( 'custom-logo', $logo_defaults ); // Nav menus register_nav_menus( array( 'primary-nav' => esc_html__( 'Primary Menu (Under Logo Group)', 'chromium' ), 'logo-group-nav' => esc_html__( 'Logo Group Menu', 'chromium' ), ) ); // Enable support for Post Formats. add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery', ) ); // 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 for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); // Enable woocommerce support add_theme_support( 'woocommerce' ); // Enable layouts support $chromium_default_layouts = array( array('value' => 'one-col', 'label' => esc_html__('1 Column (no sidebars)', 'chromium'), 'icon' => get_template_directory_uri().'/assets/img/one-col.png'), array('value' => 'two-col-left', 'label' => esc_html__('2 Columns, sidebar on left', 'chromium'), 'icon' => get_template_directory_uri().'/assets/img/two-col-left.png'), array('value' => 'two-col-right', 'label' => esc_html__('2 Columns, sidebar on right', 'chromium'), 'icon' => get_template_directory_uri().'/assets/img/two-col-right.png'), ); add_theme_support( 'chromium-layouts', apply_filters('chromium_default_layouts', $chromium_default_layouts) ); } endif; /* end of if (!function_exists('chromium_setup')) */ add_action( 'after_setup_theme', 'chromium_setup' ); /** * Enqueue scripts and styles for the front end. */ if ( ! function_exists( 'chromium_inline_styles' ) ) : function chromium_inline_styles(){ $styles = ''; $thumb_width = get_theme_mod( 'product_thumb_width', '85' ); $styles = '@media screen and (min-width: 1024px){ .product-images-wrapper .flex-control-thumbs { width: '.$thumb_width.'px !important; } }'; return $styles; } endif; if ( !function_exists('chromium_scripts') ) : function chromium_scripts() { //---- CSS Styles wp_enqueue_style( 'chromium-style', get_stylesheet_uri() ); wp_enqueue_style( 'chromium-fonts', get_template_directory_uri().'/assets/css/fonts.css' ); wp_enqueue_style( 'fontawesome', get_template_directory_uri().'/assets/css/font-awesome.min.css' ); wp_add_inline_style( 'chromium-style', chromium_inline_styles() ); if ( class_exists('WooCommerce') ) { wp_enqueue_style( 'chromium-woo-styles', get_template_directory_uri().'/assets/css/woo-styles.css' ); } //---- JS libraries wp_enqueue_script( 'chromium-navigation', get_template_directory_uri() . '/assets/js/navigation.js', array(), '20151215', true ); wp_enqueue_script( 'hoverIntent', array('jquery') ); wp_enqueue_script( 'chromium-theme-helper', get_template_directory_uri() . '/assets/js/theme-helper.js', array('jquery'), '1.0', true ); wp_enqueue_script( 'magnific-popup', get_template_directory_uri() . '/assets/js/magnific-popup.js', array('jquery'), '1.1.0', true ); // 3rd party script if ( is_page_template( 'page-templates/gallery-page.php' ) ) { wp_enqueue_script( 'filterizr', get_template_directory_uri() . '/assets/js/filterizr.js', array('jquery'), '1.2.3', true ); // 3rd party script } //---- Comments script if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } endif; /* end of if (!function_exists('chromium_scripts')) */ add_action( 'wp_enqueue_scripts', 'chromium_scripts' ); /** * Init Sidebars. */ if ( !function_exists('chromium_sidebars_init') ) : function chromium_sidebars_init() { // Default Sidebars register_sidebar( array( 'name' => esc_html__( 'Blog Sidebar', 'chromium' ), 'id' => 'sidebar-blog', 'description' => esc_html__( 'Appears on singular blog posts and on Blog Page', 'chromium' ), 'before_widget' => '
', 'before_title' => 'The post Fairs and Trade Shows appeared first on Lexot.
]]>The post Fairs and Trade Shows appeared first on Lexot.
]]>The post Aftermarket Auto Parts Supply Chain: No Time To Spare appeared first on Lexot.
]]>The post Aftermarket Auto Parts Supply Chain: No Time To Spare appeared first on Lexot.
]]>The post How the Aftermarket Parts Industry Is Adapting to the Rise of EVs appeared first on Lexot.
]]>The post How the Aftermarket Parts Industry Is Adapting to the Rise of EVs appeared first on Lexot.
]]>The post Markup: Text Alignment appeared first on Lexot.
]]>This is a paragraph. It should not have any alignment of any kind. It should just flow like you would normally expect. Nothing fancy. Just straight up text, free flowing, with love. Completely neutral and not picking a side or sitting on the fence. It just is. It just freaking is. It likes where it is. It does not feel compelled to pick a side. Leave him be. It will just be better that way. Trust me.
This is a paragraph. It is left aligned. Because of this, it is a bit more liberal in it’s views. It’s favorite color is green. Left align tends to be more eco-friendly, but it provides no concrete evidence that it really is. Even though it likes share the wealth evenly, it leaves the equal distribution up to justified alignment.
This is a paragraph. It is center aligned. Center is, but nature, a fence sitter. A flip flopper. It has a difficult time making up its mind. It wants to pick a side. Really, it does. It has the best intentions, but it tends to complicate matters more than help. The best you can do is try to win it over and hope for the best. I hear center align does take bribes.
This is a paragraph. It is right aligned. It is a bit more conservative in it’s views. It’s prefers to not be told what to do or how to do it. Right align totally owns a slew of guns and loves to head to the range for some practice. Which is cool and all. I mean, it’s a pretty good shot from at least four or five football fields away. Dead on. So boss.
This is a paragraph. It is justify aligned. It gets really mad when people associate it with Justin Timberlake. Typically, justified is pretty straight laced. It likes everything to be in it’s place and not all cattywampus like the rest of the aligns. I am not saying that makes it better than the rest of the aligns, but it does tend to put off more of an elitist attitude.
The post Markup: Text Alignment appeared first on Lexot.
]]>