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 1 reply, 2 voices, and was last updated 5 years, 11 months ago by
Steven Zahm.
-
AuthorPosts
-
04/17/2017 at 5:55 pm #420234
GT
ParticipantHi
I would like to hide (or eliminate) the type of address from displaying in my results.
For example, I do not want the words “Home:” to appear in front of a person or organization’s street address.
In the past, I just removed the %label%%separator% from the appropriate spot in class.entry-output.php (which I still do for email etc labels).
How would I do this for Street Address?
Thanks in advance for the help.
04/18/2017 at 10:06 am #420332Steven Zahm
Keymaster@ GetD
Hmmm… there is probably a much better way to do this vs. editing the core PHP files when you update. Which template are you using?
Here’s the new way you can make the same edit as you were, but, is now update safe. :)
- Log into your site with FTP.
- Navigate to this folder:
../wp-content/plugins/connections/templates/entry/addresses/
- Make a copy of this file:
address-hcard.php
- Navigate to this folder:
../wp-content/
- Create a new folder named:
connections-templates
, within this folder create a folder namedentry
and within this folder create a folder namedaddresses
. - Copy the duplicate of the
address-hcard.php
file to be within the newaddresses
folder. - The final path should be this:
../wp-content/connections-templates/entry/addresses/address-hcard.php
- Now, you can edit this file and remove
%label%%separator%
just as you have done before.
Now your change will be update safe, well, until I change the default template name which is planned as I move Connections from hcard to Shema.org markup.
And, one more catch, this will only work after the next update. In testing my instructions to you I realized I needed to make a minor tweak to the template loading paths so this will not work until I release the next update later this week.
If you would like to make this tweak ahead of my update, here’s a link which shows the change.
Hope this helps!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.