• Resolved gileadit

    (@gileadit)


    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">&nbsp;</h2>
            </div>
              <div class="panel-body">
                  <?php get_sidebar('Applications'); ?>
              </div>
          </div>
        </div>
Viewing 4 replies - 1 through 4 (of 4 total)
  • Ok, so my question is – why not just use the sidebar that you are currently using to edit the information – instead of a page? Both places can be edited at any time and will stay consistent across the board. You can download plugins which add wiziwig components to sidebars to make it easier to edit the content.

    I am just trying to understand why not just edit the content where it is now (in the applications sidebar as a text field)?

    Thread Starter gileadit

    (@gileadit)

    ThinkDrew – I could. We use WPBakery on our site which gives us some nice features like tabbed content, accordions, etc.. The section with the Applications sidebar also has tabbed content via html and css. As of right now, we grab the html code from the widget, paste it into an HTML editor and make our changes – then paste it back into the widget. I figured it would be nice to be able to use WPBakery for this content so we can do more with the content.

    I didn’t think of looking for plugins to enhance the usability of the sidebar.

    Gotcha – I would look into plugins to enhance the sidebar text area so that you can build out the tabbed content within the sidebar itself. This is doable. I know Advanced TinyMCE does the trick but considering you are using WPBakery, you may want to checkout: https://wpbakery.com/addons/sidebar-editor/.

    Hope this helps!

    Thread Starter gileadit

    (@gileadit)

    Thanks a lot thinkDrew! I will buy that this week and play around with it. Looks like that will do exactly what I am looking for but with sidebars.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Edit Static Home Page in WordPress Editor’ is closed to new replies.