• 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

infinity pro theme background image

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 › infinity pro theme background image

This topic is: not resolved

Tagged: background image, front page 1, Infinity Pro

  • This topic has 4 replies, 2 voices, and was last updated 3 years ago by robbydl.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 10, 2020 at 1:36 am #497232
    robbydl
    Participant

    Hello,

    On the infinity theme they use a background image in widget om the front page.
    This image is not mobile friendly. It doesnt resize on smaller screens. Anyone know how to do that?

    https://my.studiopress.com/themes/infinity/#demo-full
    March 10, 2020 at 2:19 am #497233
    Brad Dalton
    Participant

    You can modify the default CSS so it works the way you want at any screen width width your image.

    .front-page-1 {
    	background-position: center center;
    	background-repeat: no-repeat;
    	-webkit-background-size: cover;
    	-moz-background-size:    cover;
    	background-size:         cover;
    }
    

    https://www.w3schools.com/css/css_background.asp

    You could also use a different image to be displayed on mobiles at any screen width.


    Tutorials for StudioPress Themes.

    March 10, 2020 at 2:31 am #497235
    robbydl
    Participant

    Thanks for the update, but is this in the style-font.css file? And does it matter where i put it?

    March 10, 2020 at 2:41 am #497236
    Brad Dalton
    Participant

    That's the default CSS already in the front page style sheet.

    You can inspect the element or take a look in your theme files.


    Tutorials for StudioPress Themes.

    March 10, 2020 at 4:02 am #497238
    robbydl
    Participant

    Thanks for your feedback.
    I am seeing this allready.
    Why doesnt it resize the image then?

    `/* Front Page Sections
    ---------------------------------------------------------------------------- */

    .front-page-1,
    .front-page-3,
    .front-page-5,
    .front-page-7 {
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    }

    .front-page-2,
    .front-page-3,
    .front-page-4,
    .front-page-5,
    .front-page-6,
    .front-page-7 {
    border-top: 73px solid transparent;
    margin-top: -73px;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
    position: relative;
    z-index: 9;
    }

    .front-page-1 .wrap,
    .front-page-2 .wrap,
    .front-page-3 .wrap,
    .front-page-4 .wrap,
    .front-page-5 .wrap,
    .front-page-6 .wrap,
    .front-page-7 .wrap {
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
    padding-left: 20px;
    padding-right: 20px;
    }

    .front-page-2 .widget-title,
    .front-page-3 .widget-title,
    .front-page-4 .widget-title,
    .front-page-5 .widget-title,
    .front-page-6 .widget-title,
    .front-page-7 .widget-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-size: 4.8rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    }

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and 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