WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Twenty Ten Code (9 posts)

  1. SecretGarden
    Member
    Posted 3 years ago #

    I've just downloaded the new WP3 and I'm using TwentyTen theme, I've edited styles.css to blend it with the remainder of the website which is written in html.

    I'm almost happy with the results except...

    1. the header image is being pushed from the top when I view a post or by clicking on 'Home' - this does not happen when I view a WP page.

    2. I've uploaded a background & a header image but they appear to be a different colour and each is visable when viewed.
    This occurs only in the WP part of the website, html section is fine.

    I'm unable (as yet) to identify the cause of each of the above and would be most grateful for any insights to correct them.

    Thanks in anticipation
    SecretGarden

  2. SecretGarden
    Member
    Posted 3 years ago #

    The problem can be viewed at http://www.poulacapplepoultry.com/wordpress

  3. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    there is a subtle difference in showing the site title (and i have no idea why this is done this way) between the front page (index.php) and other pages:

    see code from header.php:

    <div id="branding">
    				<?php if ( is_home() || is_front_page() ) { ?>
    					<h1 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></h1>
    				<?php } else { ?>
    					<div 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></div>
    				<?php } ?>

    probably the way you suppressed the site title made a difference.

    hope, now that you know what to look for, you are able to find a solution.

  4. SecretGarden
    Member
    Posted 3 years ago #

    Thank you so much Alchymyth - I've looked through all the code but just didn't know where to concentrate.
    Will let you know how I go.
    thanks

  5. SecretGarden
    Member
    Posted 3 years ago #

    Alchymyth

    Thank you for your help - it was the "h1" tag!! I've seen h1 do that before.

    I've just changed the tag from "h1" to "p" - problem solved...
    original: <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    edited: <?php $heading_tag = ( is_home() || is_front_page() ) ? 'p' : 'div'; ?>

    I still haven't fixed the colours of the heading and banner difference. The background is a slice of the banner so identical colour values!
    Any ideas anyone - please??

    Thanks
    SecretGarden

  6. SecretGarden
    Member
    Posted 3 years ago #

    Oops! sorted in Firefox but Chrome still not happy & IE doesn't like it at all - more tweaking required but on the track now.

    Thanks again

  7. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    i would condense the code snippet that i posted to just the lines used for the pages. no h1 or p tags, just the div #side-title.

    my only thought to the image quality is that it could be different grades of jpeg compression - i would try and make a new copy for the background image and use 100% quality setting for both images.

  8. PolyWogg
    Member
    Posted 3 years ago #

    I had similar problems, but was lucky enough to notice that my Blog pages had a larger Site name than my Pages one. So I went looking specifically for how it was listed -- H1 was on the blog page, Div was on the pages. I solved it the opposite way, as I wanted larger on regular pages -- so I changed Div to H1 as well. So regardless of how that "solution" is parsed, I get an H1 code out the other side. If you are relying on the p vs. div codes, and they're working, it may be because the DIV is doing nothing in this case, so it defaults to your p code?

    PW

  9. SecretGarden
    Member
    Posted 3 years ago #

    Alchymyth

    Thank you so much for your help - I removed all of...

    <<?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>
    and it now seems to work perfectly.

    PolyWogg
    I'm new to WP and code can sometimes be a guessing game for me, but after several attempts, the above scenario was the only one of the ones I tried to work across - Firefox, Chrome & IE.

    All
    On the banner and the header image, I need to revisit my .psd files to regenerate both files as the quality has degraded due to resizing. However as the background is a slice off the header image both are exactly the same prior to uploading to WP. It is in the uploading that the change occurs.

    I will redo image files and try again, if it works - great, otherwise I'm sure there is some means in WP of reporting an issue such as this which I'll find and submit the problem.

    Many thanks to you both for your input and your help.
    SecretGarden

Topic Closed

This topic has been closed to new replies.

About this Topic