04/18/2017 at 10:06 am
#420332
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 namedentryand within this folder create a folder namedaddresses. - Copy the duplicate of the
address-hcard.phpfile to be within the newaddressesfolder. - 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!
