WordPress.org

Ready to get started?Download WordPress

Forums

Babylog
[resolved] How to change width of header and site (7 posts)

  1. callmeveev
    Member
    Posted 1 year ago #

    Hi, I'd like to have the site in 960px width rather than 920px.
    I changed in the css in a few places and it didn't help. I uploaded a 960px wide header image and it still shows as 920px.
    Could you direct me to the right spot that controls the width?

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Does that theme come with a Custom CSS options within the dashboard?
    Can you post here the CSS that you've tried?

  3. callmeveev
    Member
    Posted 1 year ago #

    No custom CSS rubrik in the theme.
    I changes in a few spots:

    #main {
    	margin: 0 auto;
    	position: relative;
    	width: 960px;
    #masthead {
    	/*display: block;*/
    	height: 25px;
    	    left: 491px;
    	    margin: 1.6em auto 0;
    	    padding: 0;
    	    position: absolute;
    	    top: 130px;
    	    width: 960px;
    }
    #site-footer {
    	clear: both;
    	color: white;
    	font-family:  'almoni-dl', sans-serif;
    	font-size: 11px;
    	margin-bottom: 30px;
    	position: relative;
    	padding: 5px 0;
    	text-align: center;
    	width: 100%;
    	width: 960px;
    	margin: 0 auto;
    }
  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    You should be able to change the width of the site by applying it to the #masthead.

    Make sure you make CSS modifications in either a Child Theme stylesheet, or the Jetpack Custom CSS functionality.

  5. callmeveev
    Member
    Posted 1 year ago #

    It is indeed on the cild theme's style.css.
    Nothing is happening, the main container and sidebar width together, stay 920px. Even when I insert a specific px width to each one of them (that equals together 960px), they stay narrower than the footer, that is the only thing co-operates with me and becomes 960px. (and that after I took it out of the main div).

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    May you link the problematic webpage?

  7. callmeveev
    Member
    Posted 1 year ago #

    Ok, I changed the width of the header image in the html (header.php) to 960px and it worked.
    Then played forever with the #primary(main) and #secondary (sidebar) and it worked...
    Thanks a lot for your time.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags