Edit Static Home Page in WordPress Editor
-
I have a custom theme that uses page-home.php with a custom html/php hard layout. On page-home.php, I have 9 sections for content. Some sections populate with a sidebar widget, others with a hardcoded shortcode, and others look for specific post categories and show the latest post in the specified category.
I have a section which I want to expose to the WordPress editor for simple editing but I can’t figure out how to do this. I have included the code being used for this section below. It currently uses a sidebar called Applications to populate it’s content. I want to be able to go into WordPress and edit a page (same page all the time) which would update this particular section. Any help or direction would be great.
<div class="col-sm-8"> <div id="home-apps" class="panel panel-default"> <div class="panel-heading"> <h2 class="panel-title"> </h2> </div> <div class="panel-body"> <?php get_sidebar('Applications'); ?> </div> </div> </div>
- The topic ‘Edit Static Home Page in WordPress Editor’ is closed to new replies.