Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #928
    burrebista
    Participant

    I like very much this plugin!
    I want to integrate BePro Listings in my theme and I read the documentation.
    I creat this 3 files:
    header-listings.php
    footer-listings.php
    sidebar-listings.php

    But I don’t know what kind of code must be inserted in this files and what are the steps for integration.
    Sorry for that, but I don’t understand very well.
    Some help will be appreciated.

    Many thanks in advance!

    Regards,
    Burebista

    #929

    Hi,

    Thanks for reaching out. Unfortunately, the answer to this is fairly technical. This is something we definitely hope to offer more documentation on, in the near future.

    The short answer, is that any plugin which uses a “Custom Post Type”, and generates a page, needs these custom template files. Examples of similar plugins are buddypress and woocommerce. These are 2 top 10 downloaded plugins with the same setup. Check out an example/documentation from buddypress. Concentrate on the header/footer section

    http://codex.buddypress.org/legacy/wordpress-to-buddypress-theme/

    APPROACH

    The truth is, the contents of these files differ depending on your particular theme. However, they will be very similar to your current, header, footer, and sidebar. In fact, you should start by copying these files. At the worse case, you will be right back where you started, a broken theme, but working on a BePro Listings template.

    THE ISSUE

    BePro Listings, cannot possibly know how your custom theme is setup. Themes use html tags to organize data. So if the needed tags aren’t in the header, footer, or sidebar, they don’t exist to BePro Listings. Often times, important html tags are in the theme’s template files like, page.php, sidebar.php and index.php. Remember how these files work, they call header, sidebar and footer. BePro Listings does the same

    WHAT TO DO

    You would need to alter at least two of the files. The goal would be to place the necessary opening html tags in the header. Then depending on how your theme is setup, you will then need to put the closing tags in the sidebar and/or footer. In the end, bepro listings, will have all the necessary html tags to be formatted correctly in your theme.

    CONCLUSION

    All wordpress template files like, page.php, sidebar.php and index.php use the functions for, header, sidebar and footer. So you can see how BePro Listings would completely miss any important structural html tags that are located in template files, since it never uses them

    Hope this helps

    Regards
    ___
    BePro Software Team

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.