Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By brandMatt

Thread: Wordpress: header resizing need to turn off

  1. #1
    Junior Member
    Join Date
    Nov 2015
    Posts
    1
    Member #
    52508

    Question Wordpress: header resizing need to turn off

    Ok, so this really should go in a Wordpress forum topic, but they've been so far not helpful Here's a site I'm doing for a project: Say it on a T-Shirt

    So the problem is this: At different resolutions, the header resizes accordingly and automatically has some of the banner go off the edge. I want to correct this in either one of two ways:

    1. Have the banner not resize at all and keep it at a fixed size
    2. or have it shrink as the header expands and shrinks such that the banner stays in its entirety within the viewport of the header.


    Any details I'll provide as needed. Hope someone can help me, I'm at wits end with this thing >.<

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    I'm not sure what help you were expecting, but neither of those is a particularly good option.

    What I would suggest is to create multiple background images for your various screen sizes. This is known as a responsive background image. More information can be found here.

    Simple Responsive Images With CSS Background Images ? Smashing Magazine
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Senior Member brandMatt's Avatar
    Join Date
    Oct 2015
    Location
    St .Catharines Ontario
    Posts
    240
    Member #
    52164
    Liked
    51 times
    Wordpress doesn't set change the size of anything on your page, the theme would. SO this isn't really a Wordpress issue at all. I assume the theme uses media queries to assign a 'size' to your header. You seem to be posting in the correct forum.

    What about just throwing overflow hidden on the header?
    TheGAME1264 likes this.

    My Web Site:
    brandwebdesign.ca
    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link. Some of us are really insecure and need those likes so that we feel important and smart, so come on, help us out, huh?

  5. #4
    Junior Member
    Join Date
    Dec 2015
    Posts
    1
    Member #
    52755
    Quote Originally Posted by jmark2 View Post
    Ok, so this really should go in a Wordpress forum topic, but they've been so far not helpful Here's a site I'm doing for a project: Say it on a T-Shirt

    So the problem is this: At different resolutions, the header resizes accordingly and automatically has some of the banner go off the edge. I want to correct this in either one of two ways:

    1. Have the banner not resize at all and keep it at a fixed size
    2. or have it shrink as the header expands and shrinks such that the banner stays in its entirety within the viewport of the header.


    Any details I'll provide as needed. Hope someone can help me, I'm at wits end with this thing >.<
    You could set the background-position of .site-header-main to center and background size to 100% instead of cover. That will keep the responsiveness but your header image will shrink at smaller widths.

    .site-header-main {
    background-position: center;
    background-size: 100%;
    }

  6. #5
    Banned
    Join Date
    Dec 2015
    Posts
    75
    Member #
    52817
    Liked
    7 times
    Well your site is not available right now to check the issue.It's under development.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Tags for this Thread

All times are GMT -6. The time now is 07:05 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com