• 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

Minimum Pro Full Width Element

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 › Minimum Pro Full Width Element

This topic is: resolved

Tagged: minimum pro

  • This topic has 6 replies, 3 voices, and was last updated 12 years, 5 months ago by neilmac.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • May 14, 2014 at 8:11 am #105091
    neilmac
    Member

    I like the idea of creating a full-width element to sit in the middle of the page.

    I found this code via Bill Erickson's site

    Full width element in middle of page

    I'm just not sure how to implement it.

    Do I just wrap that code as it is in script tags and add it to the scripts section of the page?
    My experiments so far have not been successful.

    Many thanks

    May 14, 2014 at 8:24 am #105093
    Brad Dalton
    Participant

    Try that but you may have to wrap it in script tags. This may help http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers


    Tutorials for StudioPress Themes.

    May 14, 2014 at 9:54 am #105117
    neilmac
    Member

    Thanks Brad
    I can see plenty of advice on adding jquery but is this not regular vanilla javascript?
    What should I do there?
    If I just try to add...

    <script type="text/javascript" language="Javascript" src="">
    function explodeWidth() {
    var browserWidth = $(document).width();
    var wrapWidth = $('.site-inner .wrap').width();
    var margin = ( ( browserWidth - wrapWidth ) / 2 );
    $('.landing').css( 'margin-left', - margin ).css( 'margin-right', - margin );
    }
    explodeWidth();
    $(window).resize(explodeWidth);
    </script>

    ...it fails.

    Many thanks

    May 14, 2014 at 10:28 am #105120
    Brad Dalton
    Participant

    I only focus on PHP, CSS and HTML 5 so sorry cannot help with Javascript.

    I can provide a solution to add a full width section to a template using PHP.


    Tutorials for StudioPress Themes.

    May 14, 2014 at 10:52 am #105124
    neilmac
    Member

    Well yes, I'd like to see that Brad, thanks.
    I could always create a new template and add that in.

    May 22, 2014 at 1:46 pm #106372
    michaelbeil
    Member

    Has your problem been solved?

    May 22, 2014 at 3:52 pm #106411
    neilmac
    Member

    Hi Michael

    No, I would still like to do this.

    Thanks

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