Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter lucagiay

    (@lucagiay)

    hy i found these option
    add_theme_support( ‘post-thumbnails’ );
    that is present in my funtions.php but no thumbs is displayed …
    any suggestion ?
    i use single categories plug in

    thanks luca

    Thread Starter lucagiay

    (@lucagiay)

    solved, it was necessary only to insall “Single categories” plugin

    Thread Starter lucagiay

    (@lucagiay)

    solved, it was necessary only to insall “Single categories” plugin

    Thread Starter lucagiay

    (@lucagiay)

    hy, here is the code of my child css and the last rows are the yours…. it doesn’t work to reduce the blank space over the image header, the text VEDITORINO is part of the image if you take a look at the site
    thanks luca

    code

    @import url("../twentyten/style.css");
    #branding img {
    border-bottom:none;
    border-top:none;
    }
    #header {
    padding: 5px 0 0 0;
    }

    Thread Starter lucagiay

    (@lucagiay)

    No more interested in it thanks luca

    Thread Starter lucagiay

    (@lucagiay)

    Hy, trying on the my local web server where i’m developing and testing i solve it and now it work also on the official site

    probably removing custom image, and i think reloading the image from my hdu, it works now
    thanks a lot luca

    Thread Starter lucagiay

    (@lucagiay)

    hy alchymyth, for doing other stile changes i read that is usefull to have a child theme so i create a child , and when run the site, the image in the header was the default twenty ten image but with the new dimension i would like to have…and that i update yesterday following your instructions in functions.php 940×465. Now if you watch the site the image correct is fixed for all pages because i have to go on with the site and develop many pages and put it on line… but the problem is not solved, i would find the way to have a different image for each page.. so if could continue sopport me i will appreciate so much… thansk luca

    Thread Starter lucagiay

    (@lucagiay)

    Thanks, now o will start working on the child theme… then post more questions…
    thanks

    thanks luca

    Thread Starter lucagiay

    (@lucagiay)

    the picture is a featured image related to home page , is in the media gallery and other pages has no images now i try to delete all and left only this one

    the code of the header.php follows…

    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="main">
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php
    	/*
    	 * Print the <title> tag based on what is being viewed.
    	 */
    	global $page, $paged;
    
    	wp_title( '|', true, 'right' );
    
    	// Add the blog name.
    	bloginfo( 'name' );
    
    	// Add the blog description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " | $site_description";
    
    	// Add a page number if necessary:
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
    
    	?></title>
    <link rel="profile" href="https://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    	/* We add some JavaScript to pages with the comment form
    	 * to support sites with threaded comments (when in use).
    	 */
    	if ( is_singular() && get_option( 'thread_comments' ) )
    		wp_enqueue_script( 'comment-reply' );
    
    	/* Always have wp_head() just before the closing </head>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to add elements to <head> such
    	 * as styles, scripts, and meta tags.
    	 */
    	wp_head();
    ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="wrapper" class="hfeed">
    	<div id="header">
    		<div id="masthead">
    			<div id="branding" role="banner">
    				<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    				<<?php echo $heading_tag; ?> id="site-title">
    					<span>
    						<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    					</span>
    				</<?php echo $heading_tag; ?>>
    				<div id="site-description"><?php bloginfo( 'description' ); ?></div>
    
    				<?php
    					// Compatibility with versions of WordPress prior to 3.4.
    					if ( function_exists( 'get_custom_header' ) ) {
    						// We need to figure out what the minimum width should be for our featured image.
    						// This result would be the suggested width if the theme were to implement flexible widths.
    						$header_image_width = get_theme_support( 'custom-header', 'width' );
    					} else {
    						$header_image_width = HEADER_IMAGE_WIDTH;
    					}
    
    					// Check if this is a post or page, if it has a thumbnail, and if it's a big one
    					if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
    							has_post_thumbnail( $post->ID ) &&
    							( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
    							$image[1] >= $header_image_width ) :
    						// Houston, we have a new header image!
    						echo get_the_post_thumbnail( $post->ID );
    					elseif ( get_header_image() ) :
    						// Compatibility with versions of WordPress prior to 3.4.
    						if ( function_exists( 'get_custom_header' ) ) {
    							$header_image_width  = get_custom_header()->width;
    							$header_image_height = get_custom_header()->height;
    						} else {
    							$header_image_width  = HEADER_IMAGE_WIDTH;
    							$header_image_height = HEADER_IMAGE_HEIGHT;
    						}
    					?>
    						<img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="" />
    					<?php endif; ?>
    			</div><!-- #branding -->
    
    			<div id="access" role="navigation">
    			  <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    				<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
    				<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
    				<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    			</div><!-- #access -->
    		</div><!-- #masthead -->
    	</div><!-- #header -->
    
    	<div id="main">

    Thread Starter lucagiay

    (@lucagiay)

    the site is https://www.veditorino.it
    should i have to write here user and pwd for other investigating ?
    here the code again

    $custom_header_support = array(
    		// The default image to use.
    		// The %s is a placeholder for the theme template directory URI.
    		'default-image' => '%s/images/headers/path.jpg',
    		// The height and width of our custom header.
    		'width' => apply_filters( 'twentyten_header_image_width', 940 ),
    		'height' => apply_filters( 'twentyten_header_image_height', 465 ),
    		// Support flexible heights.
    		'flex-height' => true,
    		// Don't support text inside the header image.
    		'header-text' => false,
    		// Callback for styling the header preview in the admin.
    		'admin-head-callback' => 'twentyten_admin_header_style',
    	);
    Thread Starter lucagiay

    (@lucagiay)

    i put an image bigger, 940x 465 and does not work, so i read more support text, andh change the funcion.php, changing only the 198 to 465 ,i set a new picture for a new page woth the correct dimension and still not work… here is the code of funcion.php..
    can you help me ?

    $custom_header_support = array(
    		// The default image to use.
    		// The %s is a placeholder for the theme template directory URI.
    		'default-image' => '%s/images/headers/path.jpg',
    		// The height and width of our custom header.
    		'width' => apply_filters( 'twentyten_header_image_width', 940 ),
    		'height' => apply_filters( 'twentyten_header_image_height', 465 ),
    		// Support flexible heights.
    		'flex-height' => true,
    		// Don't support text inside the header image.
    		'header-text' => false,
    		// Callback for styling the header preview in the admin.
    		'admin-head-callback' => 'twentyten_admin_header_style',
    	);

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

    Thread Starter lucagiay

    (@lucagiay)

    it was 920 now i try with 940 and let you know thanks luca

    Hy, i’m luca i cant help you because i’m new but i’m using area53 theme, can you tell me how you do the solution head, the featured business big white box woth inside some objects ?
    thanks luca

Viewing 13 replies - 1 through 13 (of 13 total)