• Resolved chriskellogg11

    (@chriskellogg11)


    On my latest site, I have my homepage looking like this in edit mode:

    “Are you looking for the perfect musical host for a party? A great disc jockey knows the trick in getting your guests up, and out of their seats, and onto the dance floor! Choose your favorite DJ from our extensive database of pro Disc Jockeys in MA, and then book today!

    [businessdirectory]

    5 great tips on hiring the right DJ:
    A versatile DJ is willing to listen to your suggestions, give you feedback…”

    I’m trying to get the copy before and after the [businessdirectory] ONLY on the homepage. But it comes up on other pages like this:

    http://massdjs.org/disc-jockeys/search/western-massachusetts-djs/

    Anyways to work around it? I’m thinking it’s a theme problem? If so, is there code I could remove somewhere?

    Thanks!

    https://wordpress.org/plugins/business-directory-plugin/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi Chris,

    The BD shortcode is used to generate ALL of the content for the various pages you see in the directory. The choice to do that was for simplicity of use. What you really need here are specific shortcodes for specific pages in the directory, which we don’t currently have. That would allow you to put your messages in specific places.

    The only workaround I can suggest right now is to override certain templates in the plugin: http://businessdirectoryplugin.com/support-forum/faq/customizing-bd-to-fit-your-theme/ (not all templates are overridable as we note in that article, which you can try first–but it’s likely that you’ll need to resort to this article instead to get exactly the behavior you want: http://businessdirectoryplugin.com/docs/customization-guide/)

    It’s definitely not a theme problem, though.

    Thread Starter chriskellogg11

    (@chriskellogg11)

    Okay, I think I understand.

    I figured out a work around. In the main template code for BD, I can just add some code to the page…

    <div class=”wpbdp-page-content <?php echo join(‘ ‘, $__page__[‘content_class’]); ?>”>
    <div id=”wpbdp-categories” class=”cf”>
    <?php wpbdp_the_directory_categories(); ?>
    </div>

    ADDING IT HERE FOR THE MAIN PAGE ONLY – SEE?

    <?php if ($listings) echo $listings; ?>
    </div>

    </div>

    Thread Starter chriskellogg11

    (@chriskellogg11)

    Okay, I think I understand.

    I figured out a work around. In the main template code for BD, I can just add some code to the page…

    after this PHP line:

    php wpbdp_the_directory_categories()

    THEN MY TEXT

    That way only shows up on main page.

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Yep, that sounds like a reasonable override here.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to get rid of word wrap’ is closed to new replies.