• 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

baggi-t

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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 23, 2018 at 7:12 am in reply to: How to do Drop Caps in a Genesis child theme #219193
    baggi-t
    Participant

    Sorry, can't get this to work. I've added the class to to the first para using php in my functions.php.

    // Add class to first para
     function first_paragraph($content){
    	return preg_replace('/<p([^>]+)?>/', '<p$1 class="dropcap">', $content, 1);
    }
    add_filter('the_content', 'first_paragraph');

    Which works fine but is still thwarted if the first p has the html for an img ahead of it. How do I get my first p styling to apply after the img html?

    September 20, 2016 at 11:22 am in reply to: Disable responsive menu via child theme's functions.php #193432
    baggi-t
    Participant

    Hi Christoph, I commented it out in the child theme (one-pager) in the functions.php, it just didn't work until I restarted my Mac, seems it was 'remembering' the code.
    Thanks

    September 20, 2016 at 2:17 am in reply to: Disable responsive menu via child theme's functions.php #193419
    baggi-t
    Participant

    Hi Christoph, thanks for your suggestion but how do I do this?

    September 19, 2016 at 8:52 am in reply to: disabling the mobile menu in genesis-sample #193358
    baggi-t
    Participant

    Can you tell me what code I can add to my genesis child theme functions.php to disable the responsive menu?
    Thanks

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

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