• 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

how to comment out in template file

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 › how to comment out in template file

This topic is: not resolved

Tagged: comment out

  • This topic has 5 replies, 2 voices, and was last updated 7 years ago by rebeccaolkowski.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 2, 2018 at 6:15 pm #219511
    rebeccaolkowski
    Participant

    I have added the following code to the CSS of this site on Monochrome Pro with Beaver Builder.

    .site-footer {
    position: relative;
    }

    I need to comment out the following line but am unsure how to do it.

    $container.css( 'margin-bottom', $footer.outerHeight() );

    in wp-content/themes/monochrome-pro/js/global.js

    For some weird reason the footer links aren't working and I am thinking this is why.

    http://peterhoppock.com/
    May 2, 2018 at 9:13 pm #219512
    Victor Font
    Moderator

    That's not the problem. You have the z-index set to -99 which places it behind the everything else on the page. Remove the z-index from the .site-footer CSS at line 2088 and it will work.


    Regards,

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

    May 3, 2018 at 12:06 am #219514
    rebeccaolkowski
    Participant

    When I do that, the links work, but the footer goes back to floating rather than sitting at the bottom of the site.

    I added it like you see below in the custom CSS
    .site-footer {
    position: relative;
    }
    .site-footer {
    background-color: #000;
    bottom: 0;
    font-size: 13px;
    font-size: 1.3rem;
    line-height: 1;
    padding-bottom: 40px;
    padding-top: 40px;
    position: fixed;
    text-align: center;
    width: 100%;
    }

    May 3, 2018 at 10:11 am #219520
    Victor Font
    Moderator

    It floats because that's what position fixed does. You don't need the first .site-footer block. With CSS, the last set of instructions override anything that comes before it. So, the first .site-footer does nothing.

    You have position: fixed in the second code block. Change that to relative and remove the z-index.


    Regards,

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

    May 3, 2018 at 10:34 am #219521
    rebeccaolkowski
    Participant

    I replaced fixed with relative and took out the z-index. The links still aren't working. Dambuster is set to not remove footer or footer widgets. My custom CSS file is below.

    `a {
    color: #000000;
    text-decoration: none;
    }
    p {
    text-indent: 25px;
    }
    .site-title {
    font-family: 'Muli', sans-serif;
    font-size: 15px;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
    text-transform: none;
    }

    .site-footer {
    background-color: #000;
    bottom: 0;
    font-size: 13px;
    font-size: 1.3rem;
    line-height: 1;
    padding-bottom: 40px;
    padding-top: 40px;
    position: relative;
    text-align: center;
    width: 100%;
    }

    May 5, 2018 at 10:13 am #219558
    rebeccaolkowski
    Participant

    Never mind, I figured it out.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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

© 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