• 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

neilmac

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • October 2, 2014 at 3:30 pm in reply to: Fatal error: Call to undefined function #126586
    neilmac
    Member

    Hi Jackie
    I think I've just solved it - prodded on by you!
    I think I should have used wp_is_mobile instead of is_mobile.
    Or at least that seems to be working for me now.
    I've been scratching my head about this for ages
    The odd thing is the other way - is_mobile - is still working ok on the local site.
    Anyway, I'll go with what works live. Unless anyone can see a problem with that?
    Thanks very much
    N.

    September 27, 2014 at 3:17 pm in reply to: Conditional Code to Run Depending on Display Resolution #126006
    neilmac
    Member

    Thanks Brad.
    Thing out loud, maybe I don't need to add a body class if I use wp_is_mobile.
    If I used something like if ( !wp_is_mobile() ) perhaps I could add some code to a hook which would only work on desktop displays - or at least larger than tablet. Which is the behaviour I want.
    Would that work? Or is it a bad idea for any reason?
    Thanks

    May 22, 2014 at 3:52 pm in reply to: Minimum Pro Full Width Element #106411
    neilmac
    Member

    Hi Michael

    No, I would still like to do this.

    Thanks

    May 14, 2014 at 10:52 am in reply to: Minimum Pro Full Width Element #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 14, 2014 at 9:54 am in reply to: Minimum Pro Full Width Element #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

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)

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