Since version BePro Listings 2.1.98, we use a template option called “internal” to integrate easily with most templates. However, if you prefer to create a custom template for BePro Listings, consider changing the “Template type” option in the admin to “File”. At that point, like every other plugin which uses a custom post type, you will need to create template files for BePro Listings. These files will help BePro Listings to fit into your current custom wordpress theme.
- We have created 2 video tutorials regarding this process for subscription members. To view these videos Click here
SYNOPSIS
So you have installed BePro Listings and you want to customize the BePro Listing page layout. Maybe you are interested in changing the order of template features or control which features are shown. When it comes to wordpress, your option is to create a template file
DIFFICULTY
This is an intermediate level job. You *MUST* understand html to successfully replicate the format necessary to integrate BePro Listings into your theme. Its a little more involved than simply adding a shortcode into an existing template.
WordPress TEMPLATE FILES
This is happening because the plugin has no way of knowing how your custom theme is setup. You need to help it by creating 2-3 of the following files:
- header-listings.php
- footer-listings.php
- sidebar-listings.php
As the names suggest, these are simply mirrors of your current, header, footer and sidebar files. The only difference is that you may need to add new html tags so that the generated BePro Listings page looks exactly like every other page on your website
The thing to note is that you aren’t just creating the files. To leave progress there, would not achieve your goal of integrating BePro Listings into your theme. It simply replicates the problem.
The goal of the templates is to replicate the correct structure of your html code as seen visually on pages which came with your theme. In files like, page.php, single.php and index.php, theme makers will often put some of the important (format forming) html declarations. BePro Listings and every other plugin which uses custom post types “e.g. woocommerce and buddypress” pulls in the header/footer and possibly the sidebar. They do not retrieve potentially important html from the other files.
TEMPLATE FILE RESULTING FORMAT
Ultimately,the result should be a situation where the header, footer and sidebar together encase the bepro listings content in the correct html. To further simplify, you need to take the important html declarations from pages like single.php/index.php and put them in the custom header-listings.php/footer-listings.php/sidebar-listings.php files.
WHAT YOU NEED
you will need to be able to discern whats an important html declaration. Unfortunately, this is not something a novice can do. Its beyond wordpress and becomes an issue of understanding html. This is why we provide a growing number of themes. With that said, the problem is as simple/trivial as replicating the correct html structure and wrapping that around BePro Listings
That’s why currently, product support is by far our cheapest service. For someone that knows what they are doing, issues like this take literally minutes to diagnose and repair.
– http://www.beprosoftware.com/shop/product-support-1hr/
CONCLUSION
BePro Listings is designed to fit into your current wordpress theme. In cases, where it does not fit perfectly on activation, you may need to get your hands dirty and create a template which matches your theme. All wordpress plugins which use custom post types have this issue, which is why entire themes are usually provided. We have done the same, check out our $1 wordpress theme if you would like to see an example of what was discussed in this article.
Not the clearest instructions. . . I guess that’s why you have the video tutorials. 🙂 I got the basic idea of how to go about creating a template though. Thanks