• 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

Modern Portfolio Pro theme site header logo

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 › Design Tips and Tricks › Modern Portfolio Pro theme site header logo

This topic is: resolved
  • This topic has 7 replies, 4 voices, and was last updated 9 years, 7 months ago by unklee.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • December 6, 2015 at 5:28 am #172870
    unklee
    Member

    The Modern Portfolio Pro theme has a small logo (a simple M in a circle) next to the title. Using the standard Header Image option replaces the title with the logo, but this appears to have added the logo to the title.

    How is this done? Does anybody know please? Looking at the code in my browser doesn't give me any clues.

    Thanks.

    http://my.studiopress.com/themes/modern-portfolio/#demo-full
    December 6, 2015 at 8:16 pm #172900
    Victor Font
    Moderator

    The M is done in CSS using the link's "before" pseudo element.

    .site-title a::before {
        content: "M";
    }
    .site-title a::before {
        background-color: #222;
        border-radius: 50%;
        color: #FFF;
        cursor: pointer;
        display: inline-block;
        font-family: "Merriweather",serif;
        height: 48px;
        line-height: 2.1;
        margin-right: 12px;
        padding: 3px 4px;
        text-align: center;
        width: 48px;
        text-transform: uppercase;
    }

    Regards,

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

    December 6, 2015 at 9:04 pm #172902
    unklee
    Member

    Hi Victor, thanks so much. That is very cool. There is so much to know in CSS. I've never used "before" before, but you've set it out very clearly, thanks.

    I was even able to change the content line to:

    content: url('http:xxxxxxx.jpg') and put a graphic in there if I want that. Thanks again.

    December 10, 2015 at 5:29 am #173402
    unklee
    Member

    I wonder, Victor Font, if you are still reading this, and can help me style this please. I have inserted a graphic using the method you showed me, but both graphic and title align at the bottom, whereas I'd like them to centre align. I can't for the life of me find the CSS to do this. Are you or anyone able to give me a clue please? Thanks.

    September 13, 2016 at 3:36 am #193066
    susanta
    Participant

    Hey Unklee, if you can share the link to you site, maybe I can try to help you. Thanks

    September 13, 2016 at 6:35 am #193073
    unklee
    Member

    Hi Susanta, if you could help, that would be great. The URL is http://www.is-there-a-god.info. As you can see, the lighthouse graphic in the circle bottom-aligns with the title text, when I think it would look better if it centre aligned.

    (The original where I saw this effect was Modern Portfolio theme, but mine is, of course, Minimum Pro theme.)

    September 13, 2016 at 7:21 am #193075
    Genesis Developer
    Member

    Replace your existing CSS with this once

    .site-title a::before {
        background: url("http://www.is-there-a-god.info/blog/wp-content/uploads/2016/01/lighthouse-logo.png") no-repeat scroll 0 0;
        content: "";
        display: inline-block;
        height: 50px;
        margin-right: 12px;
        position: relative;
        top: 11px;
        width: 50px;
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    September 13, 2016 at 9:22 pm #193139
    unklee
    Member

    Hey, that did the trick, thanks heaps!

    I'm wondering what the lesson is for me there. Like what does the content:""; do? And why is position:relative; necessary? I'll ponder some more.

    Thanks again, it is just a small thing but it looks better now.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2026 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