Support » Plugin: Connections Business Directory » How to use more than once connections template on a page

  • Resolved Jenny


    I am trying to use the tile template as well as the profile template on a single page. The page consists of a tabbed page section as well and although I specify a particular template per category using shortcode, only one template is applied to all categories listed on that page. How can I insert/use 2 different connection templates on different categories on a single page, using short code?

    This is the code I am currently using:
    [connections_list id=’26,27,28,29,30,31,32′ order_by=’id|SPECIFIED’ template=’profile’]
    [connections category_name=’Intermediate Phase’ template=’tile’]
    What is happening, with the above, is that the “Tile template” is applied to all categories, despite the short code being differen per individual categories.

    I urgently need to resolve this issue as the “main page” must show categories/connection lists with the “profile template” and the categories in the tabbed pages must be displayed with the “tile template”

Viewing 3 replies - 1 through 3 (of 3 total)
  • Jenny


    I have also tried using the code in the following variations, to no avail, each time, the tile template gets applied to all categories and connection lists.

    [connections_list id=’26,27,28,29,30,31,32′ order_by=’id|SPECIFIED’ template_name=’profile’]
    [connections category_name=’Intermediate Phase’ template=’tile’]

    Plugin Author shazahm1


    What you need to do is open the styles.css file for the Tile template and change the selectors so they only target the Tile template. Prefixing each style declaration with div.tile should be sufficient.

    Of note, the next version has been extensively re-worked to better accommodate using multiple templates on a single page.



    Hi Steven,

    Since I was working against a deadline and couldn’t find the solution fast enough, I decided to use the tile template for all the sections on the page instead and the client is happy with it.

    But thank you for posting the solution, it is going to come in handy with future projects.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to use more than once connections template on a page’ is closed to new replies.