• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Dimensions of background image for News Pro

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Dimensions of background image for News Pro

This topic is: resolved

Tagged: background, News Pro

  • This topic has 4 replies, 2 voices, and was last updated 3 years, 9 months ago by cricketyorkshire.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 23, 2019 at 3:20 am #490810
    cricketyorkshire
    Participant

    Hi, I'd like to find out the dimensions of the background image to my website that uses the News Pro theme.

    I've trialled a test image at 1800x1800, for site takeover/advertising purposes, so it will be displayed around the outer edges of the site, replacing the beige background colour in the theme demo.

    Is there a way to learn what the pixel sizes are left, right, top and bottom between the edge of the background image and the content?

    It's to ensure any text on a future advert appears in the right place and isn't cut off. I've tried using the 'Inspect' tool in Chrome but in all honesty, don't know what I'm looking for.

    Any advice appreciated, thanks!

    http://cricketyorkshire.com
    April 23, 2019 at 3:46 am #490812
    Victor Font
    Moderator

    I'm not sure what you're asking since your site doesn't have a background image.

    If you're talking about the borders around the content, the dimensions will be the screen width minus the value of the site container wrap (1140px). These dimensions will be different for every computer and monitor because of changes in resolution. On mobile devices, you may not have a border at all.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 23, 2019 at 5:48 am #490816
    cricketyorkshire
    Participant

    Thanks Victor. You're right, I haven't currently got a background image but keen to address that. I guess I thought I'd work out the desktop version as I believe the theme is responsive and scales down accordingly across devices.

    I was after the left-hand side and right-hand side strips of the background image.
    With your calculations, on a 1920?—1080 screen, would you say the side panels of the background image would be 780px?

    Screenshot of my website background image

    April 23, 2019 at 1:20 pm #490824
    Victor Font
    Moderator

    You can't calculate the side margins the way you want to because every computer has different dimensions. I'm running a MacBook Pro. The screen width is 2880x1800. If I use my Windows 10 laptop, the screen dimensions are 2560x1440.

    If I were you, I would use a .svg image as the background and set the background-size to cover. This way the browser automatically adjusts for the width of the screen no matter what computer you're on.

    Based on you last question, if a screen's viewport is 1920x, the side margins are (1920 - 1140) / 2 = 390 on each side. If you want to make an equation out of it, you can use the CSS calc() function. calc( ( 100vw - 1140px ) / 2 )


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 24, 2019 at 12:35 am #490831
    cricketyorkshire
    Participant

    Thanks for your help Victor, it will take a bit of positioning but I'm sure I can get it to work.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Dimensions of background image for News Pro’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble