• Resolved iteneranter

    (@iteneranter)


    Hello, everyone.

    Background: I recently changed the width of the content area of a website, as follows:

    @media screen and (min-width: 1020px) {
    /* Widen content area: */
    	.content-area {
    		width: 648px;
    	}
    /* Decrease scale of banner image: */
    	.hero {
    		padding: 60px 0;
    	}
    	.hero.with-featured-image,
    	body[class*="front-page"] .hero {
    		padding: 60px 0;
    	}
    }

    I did the same thing for @media screen and (min-width: 1230px).

    Unfortunately, this caused a couple of problems, as follows:
    * On the home page, the header and content is 930px wide while the widget area and footer are 1110px wide. How do I normalize these widths throughout the website?
    * On every other page, the content is the width I want, but the header, widget area, and footer are 1110px wide. As before, how do I normalize these widths?

    Other details:
    * The site uses an Edin theme.
    * Jetpack was installed and activated.
    * The site currently uses the Default menu style for the header, which is the primary menu, but we are considering switching to the Classic style menu.

    How do I go about fixing this? Any help would be greatly appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi iteneranter – do you have a link to your site? It’s easier to help with this sort of customization by looking directly at what you’ve done so far. Thanks!

    Thread Starter iteneranter

    (@iteneranter)

    Hello, Kathryn. Thank you very much for your reply. The formatting items I described can be found here. If you would like any additional information, please let me know. Thanks!

    In the CSS you added, you’ve only modified the width of certain elements in the layout, but not all of them.

    To target the width of additional elements, use a browser inspector to find the element’s class or ID, and then add the new element to to your child theme CSS above, within the media query. Repeat the process for as many elements as you’d like to change.

    For example, the footer has the class .site-footer, so you can add a new width for that element within the media query you already have.

    Here’s a great tutorial on using web inspectors to locate elements to modify:

    https://thewc.co/articles/view/web-inspector-tutorial

    This should point you in the right direction!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reformatting Header, Widget, and Footer Widths (Edin)’ is closed to new replies.