• 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

when i paste a javascript/ css code, my page skews to the left.

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 › when i paste a javascript/ css code, my page skews to the left.

This topic is: not resolved
  • This topic has 5 replies, 2 voices, and was last updated 9 years, 7 months ago by Bwesole.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • July 1, 2016 at 1:57 pm #188732
    Bwesole
    Member

    Hello there,

    when i paste a javascript/ css code, my page skews to the left. any ideas how to realign it to center?
    Thank you here's the page... http://growtallerwithshinlengthening.com/effectivecoreexercises.html/

    http://growtallerwithshinlengthening.com/effectivecoreexercises.html/
    July 1, 2016 at 4:37 pm #188735
    Victor Font
    Moderator

    You have an anchor link in the head area that shouldn't be there. Anchor links are only for the body. It's causing your system to render to closing head tags.


    Regards,

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

    July 2, 2016 at 3:48 am #188745
    Bwesole
    Member

    Thank you very much for the fast response.

    July 2, 2016 at 3:59 am #188746
    Bwesole
    Member

    But why does the page become center aligned after removing this javascript/ css code. And other sub pages where i didn't paste the code are working fine despite having the anchor link in the header. Here is the code causing problems.

    <script type="text/javascript">
    function EJEJC_lc(th) { return false; };
    function EJEJC_config() {
    EJEJC_POSTCALL=true;
    }
    function EJEJC_shown() {
    jQuery("#btnCC").attr("src", "http://growtallerwithshinlengthening.com/pay.PNG");
    }
    </script>
    <script src="https://www.e-junkie.com/ecom/box.js" type="text/javascript">
    </script>

    July 3, 2016 at 3:29 am #188792
    Bwesole
    Member

    Okay i figured it out When i paste the code the following lines are auto created at beginning of css and when i uncheck or remove them, the page becomes center aligned just the way it should be. But now i'm trying to save changes in source code using chrome developer tools but don't know how to go about that. Here are the lines. Any help will be appreciated.
    element.style {
    min-height: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px;
    }

    July 3, 2016 at 6:46 am #188798
    Bwesole
    Member

    chrome auto save extension did the trick. It's now fine.

  • 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

© 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