• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Image/logo instead of topp text

Image/logo instead of topp text

  • Unknown's avatar
    optimaltkosthold · Member · May 20, 2014 at 7:14 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hellow, I woul like to upploud logo (appr. 250 X 250 size), and I want it to stay left to image topp tekst. How can I do it?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    thesacredpath · Member · May 26, 2014 at 6:32 pm
    • Copy link Copy link

    Hi, the following code is set for a 250px square image. You may want to downsize it to about 150px square though as it is way taller than the site title and description.

    Upload the image to your media library, get the URL of that image and replace URL_OF_IMAGE between the quote marks with the URL of your new image.

    This would be the code if you are going to use a 250px square image.

    .site-title, .site-description {
        padding-left: 270px;
    }
    hgroup {
        background: url("URL_OF_IMAGE") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
        height: 250px;
        margin-bottom: 20px;
        background-size: contain;
    }
    @media screen and (max-width: 500px) {
        .site-title, .site-description {
            padding-left: 170px;
        }
        hgroup {
            height: 150px;
            margin-bottom: 20px;
        }
    }
    @media screen and (max-width: 400px) {
        .site-title, .site-description {
            padding-left: 110px;
        }
        hgroup {
            height: 100px;
        }
    }

    If after trying the above you want to downsize your image to 150px square, use the following code instead. It also downsizes the image at 400px so that the site title and description can still be read on smaller screens such as phones.

    hgroup {
        background: url("URL_OF_IMAGE") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
        height: 150px;
        margin-bottom: 20px;
        background-size: contain;
    }
    
    @media screen and (max-width: 400px) {
        .site-title, .site-description {
            padding-left: 110px;
        }
        hgroup {
            height: 100px;
            margin-bottom: 40px;
        }
    }
  • The topic ‘Image/logo instead of topp text’ is closed to new replies.

Tags

  • Header
  • logo
  • oxygen

About this topic

  • In: CSS Customization
  • 2 participants
  • 1 reply
  • Last activity 12 years
  • Latest reply from optimaltkosthold

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions