• Hello
    I would like to make my title bar was smaller:

    SCREEN

    Can you help me to edit my css?

    I place the codes there:

    funcions

    <?php
    /**
     *
     * BoldR Lite WordPress Theme by Iceable Themes | http://www.iceablethemes.com
     *
     * Copyright 2013-2015 Mathieu Sarrasin - Iceable Media
     *
     * Theme's Function
     *
     */
    
    /*
     * Setup and registration functions
     */
    function boldr_setup(){
    
    	/* Set default $content_width */
    	global $content_width;
    	if ( ! isset( $content_width ) ) $content_width = 590;
    
    	/* Translation support
    	 * Translations can be added to the /languages directory.
    	 * A .pot template file is included to get you started
    	 */
    	load_theme_textdomain('boldr', get_template_directory() . '/languages');
    
    	/* Feed links support */
    	add_theme_support( 'automatic-feed-links' );
    
    	/* Register menus */
    	register_nav_menu( 'primary', 'Navigation menu' );
    	register_nav_menu( 'footer-menu', 'Footer menu' );
    
    	/* Title tag support */
    	add_theme_support( 'title-tag' );
    
    	/* Post Thumbnails Support */
    	add_theme_support( 'post-thumbnails' );
    	set_post_thumbnail_size( 260, 260, true );
    
    	/* Custom header support */
    	add_theme_support( 'custom-header',
    						array(	'header-text' => false,
    								'width' => 920,
    								'height' => 370,
    								'flex-height' => true,
    								)
    					);
    
    	/* Custom background support */
    	add_theme_support( 'custom-background',
    						array(	'default-color' => '333333',
    								'default-image' => get_template_directory_uri() . '/img/black-leather.png',
    								)
    					);
    
    }
    add_action('after_setup_theme', 'boldr_setup');
    
    /* Adjust $content_width depending on the page being displayed */
    function boldr_content_width() {
    	global $content_width;
    	if ( is_singular() && !is_page() )
    		$content_width = 595;
    	if ( is_page() )
    		$content_width = 680;
    	if ( is_page_template( 'page-full-width.php' ) )
    		$content_width = 920;
    }
    add_action( 'template_redirect', 'boldr_content_width' );
    
    /*
     * Page title (for WordPress < 4.1 )
     */
    if ( ! function_exists( '_wp_render_title_tag' ) ) :
    	function boldr_render_title() {
    		?><title><?php wp_title( '|', true, 'right' ); ?></title><?php
    	}
    	add_action( 'wp_head', 'boldr_render_title' );
    endif;
    
    /*
     * Add a home link to wp_page_menu() ( wp_nav_menu() fallback )
     */
    function boldr_page_menu_args( $args ) {
    	if ( ! isset( $args['show_home'] ) )
    		$args['show_home'] = false;
    	return $args;
    }
    add_filter( 'wp_page_menu_args', 'boldr_page_menu_args' );
    
    /*
     * Add parent Class to parent menu items
     */
    function boldr_add_menu_parent_class( $items ) {
    	$parents = array();
    	foreach ( $items as $item ) {
    		if ( $item->menu_item_parent && $item->menu_item_parent > 0 ) {
    			$parents[] = $item->menu_item_parent;
    		}
    	}
    	foreach ( $items as $item ) {
    		if ( in_array( $item->ID, $parents ) ) {
    			$item->classes[] = 'menu-parent-item';
    		}
    	}
    	return $items;
    }
    add_filter( 'wp_nav_menu_objects', 'boldr_add_menu_parent_class' );
    
    /*
     * Register Sidebar and Footer widgetized areas
     */
    function boldr_widgets_init() {
    	register_sidebar( array(
    		'name'          => __( 'Default Sidebar', 'boldr' ),
    		'id'            => 'sidebar',
    		'description'   => '',
    	    'class'         => '',
    		'before_widget' => '<li id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</li>',
    		'before_title'  => '<h3 class="widget-title">',
    		'after_title'   => '</h3>',
    		)
    	);
    
    	register_sidebar( array(
    		'name'          => __( 'Footer', 'boldr' ),
    		'id'            => 'footer-sidebar',
    		'description'   => '',
    	    'class'         => '',
    		'before_widget' => '<li id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</li>',
    		'before_title'  => '<h3 class="widget-title">',
    		'after_title'   => '</h3>',
    		)
    	);
    }
    add_action( 'widgets_init', 'boldr_widgets_init' );
    
    /*
     * Enqueue CSS styles
     */
    function boldr_styles() {
    
    	$template_directory_uri = get_template_directory_uri(); // Parent theme URI
    	$stylesheet_directory = get_stylesheet_directory(); // Current theme directory
    	$stylesheet_directory_uri = get_stylesheet_directory_uri(); // Current theme URI
    
    	$responsive_mode = get_theme_mod('boldr_responsive_mode');
    
    	if ($responsive_mode != 'off'):
    		$stylesheet = '/css/boldr.min.css';
    	else:
    		$stylesheet = '/css/boldr-unresponsive.min.css';
    	endif;
    
    	/* Child theme support:
    	 * Enqueue child-theme's versions of stylesheet in /css if they exist,
    	 * or the parent theme's version otherwise
    	 */
    	if ( @file_exists( $stylesheet_directory . $stylesheet ) )
    		wp_register_style( 'boldr', $stylesheet_directory_uri . $stylesheet );
    	else
    		wp_register_style( 'boldr', $template_directory_uri . $stylesheet );				
    
    	// Always enqueue style.css from the current theme
    	wp_register_style( 'boldr-style', $stylesheet_directory_uri . '/style.css');
    
    	wp_enqueue_style( 'boldr' );
    	wp_enqueue_style( 'boldr-style' );
    
    	// Google Webfonts
    	wp_enqueue_style( 'Oswald-webfonts', "//fonts.googleapis.com/css?family=Oswald:400italic,700italic,400,700&subset=latin,latin-ext", array(), null );
    	wp_enqueue_style( 'PTSans-webfonts', "//fonts.googleapis.com/css?family=PT+Sans:400italic,700italic,400,700&subset=latin,latin-ext", array(), null );
    
    }
    add_action('wp_enqueue_scripts', 'boldr_styles');
    
    /*
     * Register editor style
     */
    function boldr_editor_styles() {
    	add_editor_style('css/editor-style.css');
    }
    add_action( 'init', 'boldr_editor_styles' );
    
    /*
     * Enqueue Javascripts
     */
    function boldr_scripts() {
    	wp_enqueue_script('boldr', get_template_directory_uri() . '/js/boldr.min.js', array('jquery','hoverIntent'));
        /* Threaded comments support */
        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
    		wp_enqueue_script( 'comment-reply' );
    }
    add_action('wp_enqueue_scripts', 'boldr_scripts');
    
    /*
     * Remove hentry class from static pages
     */
    function boldr_remove_hentry( $classes ) {
    	if ( is_page() ):
    		$classes = array_diff($classes, array('hentry'));
    	endif;
    	return $classes;
    }
    add_filter('post_class','boldr_remove_hentry');
    
    /*
     * Remove "rel" tags in category links (HTML5 invalid)
     */
    function boldr_remove_rel_cat( $text ) {
    	$text = str_replace(' rel="category"', "", $text); return $text;
    }
    add_filter( 'the_category', 'boldr_remove_rel_cat' );
    
    /*
     * Customize "read more" links on index view
     */
    function boldr_excerpt_more( $more ) {
    	global $post;
    	return '... <div class="read-more"><a href="'. get_permalink( get_the_ID() ) . '">'. __("Read More", 'boldr') .'</a></div>';
    }
    add_filter( 'excerpt_more', 'boldr_excerpt_more' );
    
    /*
     * Rewrite and replace wp_trim_excerpt() so it adds a relevant read more link
     * when the <!--more--> or <!--nextpage--> quicktags are used
     * This new function preserves every features and filters from the original wp_trim_excerpt
     */
    function boldr_trim_excerpt($text = '') {
    	global $post;
    	$raw_excerpt = $text;
    	if ( '' == $text ) {
    		$text = get_the_content('');
    		$text = strip_shortcodes( $text );
    		$text = apply_filters('the_content', $text);
    		$text = str_replace(']]>', ']]>', $text);
    		$excerpt_length = apply_filters('excerpt_length', 55);
    		$excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');
    		$text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
    
    		/* If the post_content contains a <!--more--> OR a <!--nextpage--> quicktag
    		 * AND the more link has not been added already
    		 * then we add it now
    		 */
    		if ( ( preg_match('/<!--more(.*?)?-->/', $post->post_content ) || preg_match('/<!--nextpage-->/', $post->post_content ) ) && strpos($text,$excerpt_more) === false ) {
    		 $text .= $excerpt_more;
    		}
    
    	}
    	return apply_filters('boldr_trim_excerpt', $text, $raw_excerpt);
    }
    remove_filter( 'get_the_excerpt', 'wp_trim_excerpt' );
    add_filter( 'get_the_excerpt', 'boldr_trim_excerpt' );
    
    /*
     * Create dropdown menu (used in responsive mode)
     * Requires a custom menu to be set (won't work with fallback menu)
     */
    function boldr_dropdown_nav_menu () {
    	$menu_name = 'primary';
    	if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name ] ) ) {
    		if ($menu = wp_get_nav_menu_object( $locations[ $menu_name ] ) ) {
    		$menu_items = wp_get_nav_menu_items($menu->term_id);
    		$menu_list = '<select id="dropdown-menu">';
    		$menu_list .= '<option value="">Menu</option>';
    		foreach ( (array) $menu_items as $key => $menu_item ) {
    			$title = $menu_item->title;
    			$url = $menu_item->url;
    			if($url != "#" ) $menu_list .= '<option value="' . $url . '">' . $title . '</option>';
    		}
    		$menu_list .= '</select>';
       		// $menu_list now ready to output
       		echo $menu_list;
    		}
        }
    }
    
    /*
     * Find whether post page needs comments pagination links (used in comments.php)
     */
    function boldr_page_has_comments_nav() {
    	global $wp_query;
    	return ($wp_query->max_num_comment_pages > 1);
    }
    
    function boldr_page_has_next_comments_link() {
    	global $wp_query;
    	$max_cpage = $wp_query->max_num_comment_pages;
    	$cpage = get_query_var( 'cpage' );
    	return ( $max_cpage > $cpage );
    }
    
    function boldr_page_has_previous_comments_link() {
    	$cpage = get_query_var( 'cpage' );
    	return ($cpage > 1);
    }
    
    /*
     * Find whether attachement page needs navigation links (used in single.php)
     */
    function boldr_adjacent_image_link($prev = true) {
        global $post;
        $post = get_post($post);
        $attachments = array_values(get_children("post_parent=$post->post_parent&post_type=attachment&post_mime_type=image&orderby=\"menu_order ASC, ID ASC\""));
    
        foreach ( $attachments as $k => $attachment )
            if ( $attachment->ID == $post->ID )
                break;
    
        $k = $prev ? $k - 1 : $k + 1;
    
        if ( isset($attachments[$k]) )
            return true;
    	else
    		return false;
    }
    
    /*
     * Customizer
     */
    
    require_once 'inc/customizer/customizer.php';
    
    ?>

    header

    <?php
    /**
     *
     * BoldR Lite WordPress Theme by Iceable Themes | http://www.iceablethemes.com
     *
     * Copyright 2013-2015 Mathieu Sarrasin - Iceable Media
     *
     * Header Template
     *
     */
    ?><!DOCTYPE html>
    <!--[if lt IE 7 ]><html class="ie ie6" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 7 ]><html class="ie ie7" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 8 ]><html class="ie ie8" <?php language_attributes(); ?>> <![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>> <!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php $favicon = get_theme_mod( 'boldr_favicon' );
    if ($favicon): ?><link rel="shortcut icon" href="<?php echo esc_url($favicon); ?>" /><?php endif; ?>
    <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
    <!--[if lt IE 9]>
    <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    <![endif]--><?php
    wp_head();
    ?></head><body <?php body_class(); ?>><?php
    
    ?><div id="main-wrap"><?php
    	?><div id="header"><?php
    		?><div class="container"><?php
    
    			?><div id="logo"><a href="<?php echo esc_url( home_url() ); ?>" title='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>' rel='home'><?php
    				if ( get_theme_mod( 'boldr_logo' ) ) :
    					?><h1 class="site-title" style="display:none"><?php bloginfo('name') ?></h1><?php
    					?><img src="<?php echo esc_url( get_theme_mod( 'boldr_logo' ) ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"><?php
    				else:
    					?><h1 class="site-title" style="display:block"><?php bloginfo('name') ?></h1><?php
    				endif;
    
    			?></a></div><?php
    
    			if ( get_bloginfo ( 'description' ) ):
    				?><div id="tagline"><?php bloginfo('description'); ?></div><?php
    			endif;
    
    		?></div><?php
    	?></div><?php // End header
    
    	?><div id="navbar" class="container"><?php
    		?><div class="menu-container"><?php
    		wp_nav_menu( array( 'theme_location' => 'primary', 'items_wrap' => '<ul id="%1$s" class="%2$s sf-menu">%3$s</ul>', ) );
    		boldr_dropdown_nav_menu();
    		?></div><?php
    		?><div id="nav-search"><?php get_search_form(); ?></div><?php
    	?></div><?php // End navbar
    
    		if ( get_custom_header()->url ) :
    			if ( ( is_front_page() && get_theme_mod('home_header_image') != 'off' )
    				|| ( is_page() && !is_front_page() && get_theme_mod('pages_header_image') != 'off' )
    				|| ( is_single() && get_theme_mod('single_header_image') != 'off' )
    				|| ( !is_front_page() && !is_singular() && get_theme_mod('blog_header_image') != 'off' )
    				|| ( is_404() ) ):
    
    	?><div id="header-image" class="container"><?php
    		?><img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" /><?php
    	?></div><?php
    
    			endif;
    		endif; ?>

    style

    /*
    Theme Name: BoldR Lite
    Theme URI: http://www.iceablethemes.com/shop/boldr-lite/
    Description: BoldR Lite is a Bold, Responsive, Magazine-style theme for WordPress. Suitable for any website and perfect for tech or design oriented blogs and creative business websites. It features two widgetizable areas (Sidebar and optional Footer), two menu locations (Navbar and Footer), optional Tagline display, custom Logo and Favicon, Custom Header Image and Custom Background. BoldR Lite is Translation Ready (.pot file included) and already includes 7 user-contributed translations in addition to English: French (fr_FR), Russian (ru_RU), German (de_DE), Spanish (es_ES), Brazilian Portuguese (pt_BR), Polish (pl_PL) and Italian (it_IT).
    Author: Iceable Media
    Author URI: http://www.iceablethemes.com
    License: GNU General Public License v2 (GPLv2)
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Version: 1.2.1
    Tags: black, blue, white, light, two-columns, right-sidebar, fixed-layout, responsive-layout, custom-header, custom-background, custom-menu, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
    
    BoldR Lite. A bold, magazine style, responsive WordPress Theme by Iceable Media
    Upgrade to BoldR Pro now on http://www.iceablethemes.com !
    */
    
    /*
    Copyright Β© 2013-2015 Iceable Media
    
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    */

    Style name: Boldr Lite
    Adress: LINK

    Thank you well!

Viewing 4 replies - 16 through 19 (of 19 total)
Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘change size in the title bar of template’ is closed to new replies.