Please consider registering

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Customizing BD to fit your theme
Business Directory Support
July 3, 2012 - 8:42 pm
Member Since: July 6, 2011
Forum Posts: 1439

There is an updated page here, discussing the way you can modify the vanilla templates used by BD to perfectly match your theme:


Please read this if you are having trouble with BD integration with your theme.

Documentation: http://businessdirectoryplugin.com/docs FAQ: http://businessdirectory.com/support-forum/faq
Business Directory Support
August 9, 2012 - 3:59 pm
Member Since: July 6, 2011
Forum Posts: 1439

For 2.1+, this has changed a bit. It's now SIMPLER and requires FEWER FILES to customize. The theme integration is more automatic and looks better out of the box.

All of the CSS pages contain now abundant CSS classes to allow for easy styling.

For instance, the search page is enclosed in a DIV with “wpbdp-search-page” ID and classes
“wpbdp-search-page businessdirectory-search businessdirectory wpbdp-page”.

The “Add Listing” page has ID “wpbdp-submit-page” and classes “wpbdp-submit-page
businessdirectory-submit businessdirectory wpbdp-page”, and even one for the current step the
user is in like “step-checkout”.

Combining all of these classes it should be pretty easy to theme specific pages or sections in a
way that wasn’t possible before.

Template overrides from previous versions are still possible, but we have some new *easier* ones:

- businessdirectory-listings.tpl.php
This template is called every time a list of listings is to be displayed (in the main page, the
category view, search, “manage listings” page, “view listings” page, etc.) so only one template
needs to be overridden to change this behavior now.

The template doesn’t have to deal with the header/footer inclusions like it used to prior to 2.0.5, since it is
always called from within a page thanks to the new page-based navigation approach. This improves the theme integration
immensely while still allowing access to customize the look of your directory.

First, you should try removing your customization(s) from your theme directory and just run it with the "standard" BD templates to see if the problem goes away. Lots of things have been simplified by 2.1. If it does, your template is out of date and the new one is better for you. Throw your old one away. Use the new one.

If not, then post your issue in the support area so we can take a deeper look.

- businessdirectory-listing.tpl.php
This template controls how a listing “single” view looks like in the new page-based
approach. When this template is called the “current” post is the listing so standard WP functions
like the_title() and the_author_meta() still work, but we support some easier variable names that
users certainly will appreciate, like $is_sticky or $listing_fields to check if the listing is sticky or to
display the list of listing fields.

Please also see our Advanced Customization guide about how to access fields directly in your template: http://businessdirectoryplugin.....ews-of-bd/

Documentation: http://businessdirectoryplugin.com/docs FAQ: http://businessdirectory.com/support-forum/faq
Business Directory Support
September 3, 2014 - 9:00 pm
Member Since: July 6, 2011
Forum Posts: 1439

We now have a full customization guide for all files in BD and what they do:

Documentation: http://businessdirectoryplugin.com/docs FAQ: http://businessdirectory.com/support-forum/faq
Forum Timezone: UTC 0

Most Users Ever Online: 103

Currently Online: GoVomb
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 2725

Members: 1037

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 4

Topics: 5144

Posts: 21971

Newest Members: David Coakley

Administrators: Business Directory Support: 1439