• 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

Custom CSS code not working – altitude 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 › Design Tips and Tricks › Custom CSS code not working – altitude Pro

This topic is: resolved
  • This topic has 5 replies, 2 voices, and was last updated 5 years, 10 months ago by dpalme.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • August 1, 2019 at 12:27 pm #492721
    dpalme
    Participant

    In the altitude pro, the style.css on line 118 has the following:

    body {
    	background-color: #fff;
    	color: #000;
    	font-family: "Ek Mukta", sans-serif;
    	font-size: 20px;
    	font-weight: 200;
    	line-height: 1.5;
    	overflow-x: hidden;
    	-webkit-font-smoothing: antialiased;
    }

    I have added the following to the custom CSS but its still being ignored:

    .page-id-134 body {
    	line-height: 1;
    }

    Any idea why its being ignored?

    August 1, 2019 at 12:34 pm #492722
    Victor Font
    Moderator

    You have the HTML tag and class in reverse order.

    body is a HTML tag. .page-id-134 is a class assigned to the body tag. The correct order is body.page-id-134


    Regards,

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

    August 2, 2019 at 8:49 am #492745
    dpalme
    Participant

    Thanks Victor, that did the trick. I tried to use the same logic with the img tag but that doesn't appear to work:

    img.page-id-134 {
    	height: 55px!important;
    }

    Suggestions?

    August 2, 2019 at 9:29 am #492749
    Victor Font
    Moderator

    No, it won't because .page-id-134 is a class of the body tag, not the img tag. Remember, the first C in CSS stands for cascading. Think of cascading like a waterfall. The body tag is located at the top of the page. All the other visual elements come after it. You have to use elements and classes in the order they cascade down the page.

    To qualify the img tag for a specific page, you have to use .page-id-134 img. Why? .page-id-134 is part of the body tag and the img tag is subordinate to the body tag. You have to include the space between the qualifying class (.page-id-134) and img tag because .page-id-134 is not directly associated with the img tag.


    Regards,

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

    August 2, 2019 at 9:37 am #492751
    dpalme
    Participant

    How would I structure it so it applies not just to the page but a specific img element?

    I'm assuming I would need to add a class to the img element correct?

    August 2, 2019 at 9:39 am #492752
    dpalme
    Participant

    ok I got it...

    #btn-apple img {
    	height: 55px!important;
    }
  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Custom CSS code not working – altitude 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

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