Forum Replies Created
-
AuthorPosts
-
danbru1989Member
Thank you all for your input. I appreciate it!
danbru1989MemberI 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.
danbru1989MemberYou'd do it if you don't want the client to be changing anything at all. Hardcode it into a template file.
danbru1989MemberAny 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();
danbru1989MemberI 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; }
danbru1989MemberAfter several hours of searching the web, this was exactly what I needed! Thanks for your help!
-
AuthorPosts