• 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 / Header Change for "Periodical theme" works on desktop, but not on mobile screens

Header Change for "Periodical theme" works on desktop, but not on mobile screens

  • Unknown's avatar
    frankthun · Member · May 11, 2017 at 11:19 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Just changed the positions of the logo and site id text and site text by adding some CSS Code supplied by a happiness engineer.

    Works really great on desktop, but on mobile screens, the header is messed up: Half of the text is off the screens right margin and Logo is above text, whereas it should be left of the text, as in the desktop screen.

    The preview in the customization menu shows this problem clearly

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

  • Unknown's avatar
    thesacredpath · Member · May 12, 2017 at 5:56 pm
    • Copy link Copy link

    Hi there, when I check your site by widening out my browser window really wide, and then narrowing it down, at some widths, the logo is to the left of the title and tagline, and then in a range of widths, the logo is above the site title/tagline and the tagline is not visible, and then at about 900px in width, the title/tagline starts to disappear off the left side.

    Can you tell me what your goal is for the arrangement and I’ll figure out the adjustments needed.

  • Unknown's avatar
    frankthun · Member · May 12, 2017 at 6:07 pm
    • Copy link Copy link

    target is to display logo and header like in the desktop version: logo aligned to the left side of the screen, text to the right of logo.

    currently, the logo disappears to the left and the text is halved onphone screens, and on pad screens the text is below and to the right of the logo, cut in half by the feature picture.
    thanks for your help!

  • Unknown's avatar
    thesacredpath · Member · May 13, 2017 at 3:37 am
    • Copy link Copy link

    Currently what I am seeing is the text moves below the logo at around 1430px in window/screen width, so we need to make some changes to the code you have. Given the combined length of your logo and title, it would require us to make those quite tiny to fit on a small phone side-by-side, so what I’m proposing is that we keep them side-by-side down to the point where the full menu changes into the touch device menu and then center things below that point. I’ve deleted some of the code you have and moved things around, so copy/paste what you have now into a plain text file for reference, and then replace it with the following and let me know what you think.

    .titles-wrap {
    	margin-top:3%;
    	float:right;
    }
    .site-identity {
    	padding-top:1%;
    	padding-bottom:1%;
    }
    .site-logo.attachment-periodical-logo {
    	height: 70px;
    	width: auto;
    }
    @media screen and (min-width: 801px) {
    .site-title-wrap {
    	max-width: 450px;
    	width: 450px;
    }
    .main-navigation {
    	max-width: calc(100% - 450px);
    }
    }
    @media screen and (max-width: 800px) {
    .titles-wrap {
    	text-align: center;
    	float: none;
    	margin-top: 0;
    }
    }
  • Unknown's avatar
    frankthun · Member · May 13, 2017 at 6:04 am
    • Copy link Copy link

    That’s just perfect- thank you!

  • Unknown's avatar
    thesacredpath · Member · May 13, 2017 at 8:25 pm
    • Copy link Copy link

    Hooray and you are welcome!

  • The topic ‘Header Change for "Periodical theme" works on desktop, but not on mobile screens’ is closed to new replies.

Tags

  • CSS
  • Header
  • logo
  • Periodical
  • position

About this topic

  • In: CSS Customization
  • 2 participants
  • 5 replies
  • Last activity 9 years
  • Latest reply from frankthun

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