WordPress.org

Forums

[resolved] header image size in twenty twelve (13 posts)

  1. bvo
    Member
    Posted 2 years ago #

    For each post I selected a specific header image. This image shows full width. On the home page a random image is shown (the same images, but randomly choosen), but this image doesnt show full width (only 80%).
    Any ideas?

  2. Kurt
    Member
    Posted 2 years ago #

    bvo: How about a link to your site?

  3. invot
    Member
    Posted 2 years ago #

    Firefox has a great tool you can use to inspect your CSS and discover the root of your issue. Right-click on the image that's ailing you and select "Inspect Element". From the right menu you can add and disable rules in the stylesheet that might be the root of the problem.

  4. bvo
    Member
    Posted 2 years ago #

    Kurt: http://www.basenmandy.nl
    Invot: I'll try that, thank you

  5. Kurt
    Member
    Posted 2 years ago #

    bvo: When I refresh on any page, different size images are appearing in the header.

  6. bvo
    Member
    Posted 2 years ago #

    Invot: to me it looks like in both situations the same elements appear?!
    Kurt: that's strange. If you refresh on a specific post, only one image should appear, if you refresh on the home page, a random image appears. When I try this, on the home page always the image is smaller and on another post, the image always is larger, even though it might be the same image as appears on the home page.
    I tried this on ie8, ie9, ie10, firefox.

  7. alchymyth
    Forum Moderator
    Posted 2 years ago #

    there are different width=".." height=".." values for single posts and the index page;

    single post:
    <a href="http://www.basenmandy.nl/"><img src="http://www.basenmandy.nl/wp-content/cropped-Andalusie-2191.jpg" class="header-image" width="960" height="250" alt="" /></a>

    index page:
    <a href="http://www.basenmandy.nl/"><img src="http://www.basenmandy.nl/wp-content/cropped-Andalusie-2191.jpg" class="header-image" width="850" height="221" alt="" /></a>

    did you edit header.php to integrate the 'featured image' for each post?

    if so, what is the full code of header.php (please use the pastebin - http://codex.wordpress.org/Forum_Welcome#Posting_Code )

  8. Kurt
    Member
    Posted 2 years ago #

    bvo:

    I've noticed a couple of things:

    1. The version of 2012 you're running is not the default version available on WordPress.org. Is this site running on a service like WordPress.com? If yes, then contact the service provider.

    2. I looked at the 2012 settings and don't see any option to have rotating images. You're running the Nexgen plugin. Is Nexgen rotating the images?

  9. bvo
    Member
    Posted 2 years ago #

    Alchymyth, Kurt, thanks for your replies

    @Alchymyth: I noticed the different values, but don't know why! I didn't edit header.php. But I do use a plugin called WP Display Header to choose a different headerimage for each page. The header image for the index page is choosen random. As far as I can see, the plugin uses the twenty twelve code for declaring size of the header image.

    @kurt: do you mean the wordpress version? According to the dashbord I use the latest version; although it's the Dutch version. Also the twenty twelve theme is the latest version.
    Al images I use are already rotated correctly, I don't use wordpress of pluing for that. I don't know if and where there is an option to turn rotations on or off?!

  10. alchymyth
    Forum Moderator
    Posted 2 years ago #

    it seems that the plugin 'WP Display Header' is adding width and height according to the header size definition (in fucntions.php) and not according to the actual size of the found header images;

    possibly start a new topic directly in the plugin's forum: http://wordpress.org/support/plugin/wp-display-header

  11. Kurt
    Member
    Posted 2 years ago #

    bvo:

    I wondered if your version is different because it's the Dutch version. The version on WordPress.org does not provide an option for rotating images.

    It looks like you figured it out. What was causing the problem?

  12. bvo
    Member
    Posted 2 years ago #

    all,
    It looks like for some reason the index page and post pages called for different versions of the same picture. I deleted all images en uploaded them again in media library. Now it seems to work correctly. No idea why it went wrong before, but it is solved.

    Thank you for your help!

  13. bvo
    Member
    Posted 2 years ago #

    resolved. thanks all

Topic Closed

This topic has been closed to new replies.

About this Topic