Tile is a business card style template with a fix width and height that will tile side by side to the width of the content area in your WordPress theme.
- Photo
- If no photo is available a block will be shown with the text ‘No Photo Available’
- If the show_alphahead Connections shortcode option is set to TRUE the tiles will create tile groups under the alpha header.
- Customizable Labels
- Connections >= 0.7.1.3
- Permalink structure other than Default.
- Entry Image MUST be set to:
- Width: 80px
- Height: 120px [or smaller]
- NOTE: If images have already been uploaded in a different size they will need to be uploaded again after the image settings are applied to be compliant with this template.
- Entry Image Settings
- Quality: 75%
- Width: 80px
- Height: 120px [or smaller]
- Crop
The strings in this template can be customized by opening the functions.php file and editing lines 6 thru 40. Once you make your changes, save the file and zip the folder with the other files that create the template.
/* Enable/Disable template features. */ // Turn on or off the addresses. Valid values are TRUE or FALSE. public $showAddresses = FALSE; // Turn on or off the phone numbers. Valid values are TRUE or FALSE. public $showPhoneNumbers = TRUE; // Turn on or off the email addresses. Valid values are TRUE or FALSE. public $showEmail = TRUE; // Turn on or off the IM IDs. Valid values are TRUE or FALSE. public $showIM = FALSE; // Turn on or off the social media IDs. Valid values are TRUE or FALSE. public $showSocialMedia = FALSE; // Turn on or off the birthday. Valid values are TRUE or FALSE. public $showBirthday = FALSE; // Turn on or off the anniversary. Valid values are TRUE or FALSE. public $showAnniversary = FALSE; /* Customize the template strings */ public $strHomePhone = 'Phone'; public $strHomeFax = 'Fax'; public $strCellPhone = 'Cell Phone'; public $strWorkPhone = 'Phone'; public $strWorkFax = 'Fax'; public $strPersonalEmail = 'Email'; public $strWorkEmail = 'Email'; public $strVisitWebsite = 'Visit Website';
- When you receive the purchase confirmation email which contains the download link and code, download the template zip file. Please do not unzip this file.
- In the WordPress admin under the Connections menu, select Templates.
- Browse to where you downloaded the template zip file and select it.
- Click Install Now.
- After the template has been successfully installed, click Activate.
- When activated the template will now be used by default.
FAQs
Can I change the label names?
Yes, here’s how to do it.
Open the functions.php file that was supplied with your template. It can be found in this folder: ../wp-content/connections_templates/template_name Change template_name to the actual name of the template that you are going to edit.
Look for this section near the top of the file:
/* Customize the template strings */ public $strSelect = 'Select Category'; public $strSelectAll = 'All'; public $strMapShow = 'Show Map'; public $strMapHide = 'Close Map'; public $strBioHead = 'Biography'; public $strBioShow = 'Show Bio'; public $strBioHide = 'Close Bio'; public $strNoteHead = 'Notes'; public $strNoteShow = 'Show Notes'; public $strNoteHide = 'Close Notes'; public $strHomePhone = 'Home Phone'; public $strHomeFax = 'Home Fax'; public $strCellPhone = 'Cell Phone'; public $strWorkPhone = 'Work Phone'; public $strWorkFax = 'Work Fax'; public $strPersonalEmail = 'Personal Email'; public $strWorkEmail = 'Work Email'; public $strVisitWebsite = 'Visit Website';
Please keep in mind that different templates will have different strings available for customization.
I’ve installed the template but it doesn’t show up as available to activate.
Unfortunately a very small percentage of users experience this issue, which is odd, because the same method to upload and verify the template is the same one that is used by WordPress to install themes.
The solution is to unzip the template that was downloaded. Once unzipped, you will have a folder with the template name which contains the template files. Copy this folder and it contents to this folder on the server ../wp-content/connections_templates/
The result should be this path:
../wp-content/connections_templates/template_name
template_name should be the actual name of the template you are installing. Once this is done, the template will be available for activation.
Why does the template layout look wrong?
When copy and pasting the shortcode into a page or post while using the rich text editor (the Visual tab) HTML tags will also be pasted when copying from a webpage. The solution is to paste the shortcode into the HTML editor (the HTML tab). To fix this error, go to the page or post where you pasted the shortcode and switch to the HTML editor and remove any tags that surround the shortcode, for example <pre></pre> and <code></code>.
Also, many commercial themes support a shortcode named [raw]. If yours does, wrap the Connections shortcode in it like so: [raw][connections][/raw]. Why? The theme is removing and then re-applying the wpautop filter which is interfering with the code for Connections and will interfere with other shortcode based plugins as well, but may not be as noticable. If the [raw] does not work, you’ll have to send me a copy of the theme so I can see how they implemented that ‘feature’. Sometimes theme authors simply rename the [raw] shortcode.
Where is the CSS file?
The CSS file is named styles.css and can be found in the wp-content/connections_templates/template-name folder. The template-name would be the actual name of the template, for example, cmap or market.
