Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.2.10, getAddressBlock, Gridder, template
- This topic has 6 replies, 3 voices, and was last updated 8 years, 2 months ago by
Steven Zahm.
-
AuthorPosts
-
06/29/2015 at 2:29 pm #339031
indy1003
GuestGreat theme, have a few questions:
- how can I get more than 2 profiles to show up per row?
- when I click on the + sign to display the information the phone number only appears, how can I get the address to appear as well?
- when I click on the actual profile, a Google map appears, how do I disable this feature?
Thanks so much!
06/29/2015 at 3:13 pm #339036indy1003
GuestHi, I figured out #1 and #3 but I would still like the address to appear as in #2.
Thanks.
06/30/2015 at 11:53 am #339101Steven Zahm
Keymaster@ indy1003
Great to hear you figured out questions 1 and 3. Adding the address to the panel requires edit the
card.php
file found here:../wp-content/plugins/connections-gridder/
You would need to add this line of code where you want the address to display:
<?php $entry->getAddressBlock(); ?>
Instead of overwriting the
card.php
file I suggest following the advice in this QuickTip so the change will be update safe.Hope that helps, let me know.
07/06/2015 at 11:56 am #339608indy1003
ParticipantUnfortunately there must be more code. When I add this in, there is a bunch of text that is mixed in. It looks like the address is there… here is the code and location that I used…
<div class=”cn-gridder-contact”>
<?php $number = $entry->getPhoneNumberBlock( array( 'preferred' => TRUE, 'format' => '%number%', 'return' => TRUE ) ); if ( $number ) { echo $number; } else { $entry->getPhoneNumberBlock( array( 'format' => '%number%', 'limit' => 1 ) ); }
$address = $entry->getAddressBlock();
?>$email = $entry->getEmailAddressBlock( array( 'preferred' => TRUE, 'format' => '%address%', 'return' => TRUE ) ); if ( $email ) { echo $email; } else { $entry->getEmailAddressBlock( array( 'format' => '%address%', 'limit' => 1 ) ); } ?> <?php if ( $atts['show_social_media'] ) $entry->getSocialMediaBlock(); ?> </div>
07/06/2015 at 3:03 pm #339624Steven Zahm
Keymaster@ indy1003
That looks like that is correct. I suggest looking at the page source. I suspect the address is being output. One thing I’ve completely forgotten about… you’ll need to add some CSS to set the font-size and line-height for the address otherwise it”’ be set 0 for both which will cause it not to display.
07/06/2015 at 3:16 pm #339625indy1003
ParticipantThanks! The line-height helped. Is there anyway to change the heading for the address? The default is “Home” when I would prefer it to say “Address”
07/06/2015 at 3:21 pm #339626Steven Zahm
Keymaster@ indy1003
re: Is there anyway to change the heading for the address? The default is “Home” when I would prefer it to say “Address”
See the doc page under the Changing the Label Text section.
Hope that helps!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.