• 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

danbru1989

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 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 16, 2017 at 4:37 pm in reply to: Genesis Templates or WordPress templates? #212586
    danbru1989
    Member

    Thank you all for your input. I appreciate it!

    October 16, 2017 at 10:33 am in reply to: Genesis Templates or WordPress templates? #212580
    danbru1989
    Member

    I would go your route if I had to lock down a lot of things, but if it is just protecting my code on a simple page then it would be better to not add another plugin. I try to stay under about 5 plugins.

    October 16, 2017 at 9:52 am in reply to: Genesis Templates or WordPress templates? #212577
    danbru1989
    Member

    You'd do it if you don't want the client to be changing anything at all. Hardcode it into a template file.

    October 16, 2017 at 9:27 am in reply to: Genesis Templates or WordPress templates? #212574
    danbru1989
    Member

    Any thoughts on this? I've heard that it is a "dirty hack".

    <?php
    
    /*
    Template Name: About Us
    */
    
    add_action( 'genesis_entry_content', 'bds_about_us_content' );
    
    function bds_about_us_content() {
      ?>
      <div class="page-content">
         <p>This is the information about us!</p>
      </div>
      <?php
    }
    
    genesis();
    October 16, 2017 at 7:04 am in reply to: Genesis Templates or WordPress templates? #212570
    danbru1989
    Member

    I understand what you are saying and see the value of that approach.

    My PHP knowledge is at a beginners level... How would you go about adding a lot of HTML code to a Genesis template file?

    The only way that I have found is this: (but I don't believe it's standard practice)

    function bds_page_content() {
    return <<<HTML
        <div class="page-content-wrapper">
        <p>This is my static HTML content</p>
        </div>
    HTML;
    }
    February 19, 2016 at 11:43 am in reply to: Enable / Disable superfish for specific menus #179405
    danbru1989
    Member

    After several hours of searching the web, this was exactly what I needed! Thanks for your help!

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