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.
- This topic has 3 replies, 2 voices, and was last updated 4 years ago by
Adam Burke.
-
AuthorPosts
-
04/20/2017 at 3:15 pm #420648
Adam Burke
ParticipantHello,
I’ve been trying to add an address to the Panel Contact information, and I followed the steps on this thread here:
https://connections-pro.com/support/topic/adding-info-to-panel-contact-info/
The problem I am running into is that all the lines in the address are mashed up into one line. Do you know what I could do to correct this? I know very little about PHP.
I added the
$entry->getAddressBlock();
to thecard.php
file, and that was simple enough, and I also added the CSS code (I’m very familiar with CSS), and so that doesn’t seem to be effecting it. I’ve even tried usingword-wrap
in the CSS, and it changes nothing. I also attempted to just copy and paste what was on thecard-single.php
file and that didn’t work either. Any help you would be able to provide would be much appreciated.I’ve pasted that section of the php code below to verify that it was entered properly.
Thank you!
<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 ) ); } $email = $entry->getEmailAddressBlock( array( 'preferred' => TRUE, 'format' => '%address%', 'return' => TRUE ) ); if ( $email ) { echo $email; } else { $entry->getEmailAddressBlock( array( 'format' => '%address%', 'limit' => 1 ) ); } ?> $entry->getAddressBlock(); <?php if ( $atts['show_social_media'] ) $entry->getSocialMediaBlock(); ?> </div>
-
This topic was modified 5 years, 9 months ago by
Adam Burke.
-
This topic was modified 4 years ago by
Steven Zahm. Reason: Fix link
04/21/2017 at 9:06 am #420730Steven Zahm
Keymaster@ Adam
The issue is almost definitely CSS related. Since I can not see the issue, my best guess is that you will need to add some CSS to set the spans for the address parts as blocks. If you can share a link to the directory page so I can took a look I should be able to provide more specific advice.
Hope this helps!
12/29/2018 at 6:02 pm #480386Adam Burke
ParticipantThis reply has been marked as private.01/04/2019 at 3:00 pm #480807Adam Burke
ParticipantThis reply has been marked as private. -
This topic was modified 5 years, 9 months ago by
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.