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 28 replies, 4 voices, and was last updated 8 years, 1 month ago by
Steven Zahm.
-
AuthorPosts
-
06/20/2014 at 5:48 am #294551
Regine
GuestHi Steven
I was updating the following files:
Connections > includes > template > class.template-parts.php – changed category(ies) to country, changed also link to top:
$out[] = sprintf( __( ‘You are searching within country: %s’, ‘connections’ ), implode( ‘, ‘, $terms ) ); //Regine changed here
Line 1110: ‘href’ => ‘#’, //#cn-top Regine changed thisConnections-cmap > cmap.php – changed multiple labels:
$permittedAtts[‘str_work_addr’] = ‘Address’; //$addressLabel[‘work’]; Regine
$permittedAtts[‘str_work_phone’] = ‘Phone’; //$phoneLabel[‘workphone’]; Regine
$permittedAtts[‘str_work_fax’] = ‘Fax’; //$phoneLabel[‘workfax’]; Regine
$permittedAtts[‘str_work_email’] = ‘Email’; //$emailLabel[‘work’]; RegineConnections-cmap > cmap.css and cmap.min.css – changed cn-alphaindex twice to center:
#cn-cmap .cn-alphaindex { text-align: center; }
#cn-cmap #cn-list-head .cn-alphaindex {
clear: both;
position: relative;
margin: 12px 0 0;
text-align: center;}
I tried copying the CSS code into my child theme, but it didn’t work.I haven’t found anything option in WP to make the label changes.
Thanks
Kind regards
Regine
06/20/2014 at 5:50 am #294553Regine
GuestThis reply has been marked as private.06/20/2014 at 5:58 am #294555Regine
GuestHi Steven
Forgot, that I also changed these labels in cmap.php
$permittedAtts[‘str_select’] = ‘Select Country’; //’Select Category’; Regine
$permittedAtts[‘str_select_all’] = ‘Show All Countries’; //’Show All Categories’; Regine
$permittedAtts[‘str_image’] = ‘No Logo Available’;
$permittedAtts[‘str_tray_image’] = ‘No Photo Available’;
$permittedAtts[‘str_map_show’] = ‘Show Map’;
$permittedAtts[‘str_map_hide’] = ‘Close Map’;
$permittedAtts[‘str_bio_head’] = ‘Profile’; //’Biography’; Regine
$permittedAtts[‘str_bio_show’] = ‘Show Profile’; //’Show Bio’; Regine
$permittedAtts[‘str_bio_hide’] = ‘Close Profile’; //’Close Bio’; RegineThanks
Regine06/20/2014 at 9:30 am #294576Steven Zahm
Keymaster@ Regine
All these changes to the
cmap.php
files are not necessary. See this FAQ. cMap has a huge list of options available that can be found on this page.The change to
class.template-parts.php
is also unnecessary, see this QuickTip. The original text you would enter is:You are searching within category(ies): %s
, the new text would be:You are searching within country: %s
The reason the CSS didn’t work in your theme’s styles.css file is likely because the Connections CSS was loaded after and would override the theme. See this QuickTip on how to create an update safe CSS file that cMap will load.
Connections >= 0.8 and the latest templates are all about update safe customizations … I suggest taking a looks at all the QuickTips.
Ok, I’m going to look at your site now…
06/20/2014 at 9:46 am #294577Steven Zahm
Keymaster@ Regine
Ok, the cMap works on your site now. You’ll notice I installed a plugin named Code Snippets. The code snippet I added forces the loading of the scripts required by cMap. If you follow the advice in my previous reply, you should not have any issues when updating moving forward.
06/23/2014 at 11:20 pm #294880Regine
GuestHi Steven
Thanks for the info. I have worked out the labels and the search text info, but the CSS doesn’t work for me despite following your instructions in the QuickTip.
I added a folder in my Child Theme and added the CSS file with the slug cmap-custom.css. In there I have my css style to align center instead of right.
Please can you have a look at it and let me know, what is wrong.
Thanks
Kind regards
Regine
06/24/2014 at 9:25 am #294908Steven Zahm
Keymaster@ Regine
Close, you needed to put the custom CSS file in a
cmap
folder. I moved the file and it is loading fine.How do you like being able to make all those changes without having to edit any files?
06/24/2014 at 10:15 pm #294974Regine
GuestHi Steven
Thanks for your help. I had a look back at the blog article, but it’s not clear to me, that there is another folder required. Maybe you can add a full example of the entire folder and file structure to make it more clear.
Otherwise I am very happy that all the changes are not working without having to edit plugin files.
THanks a lot
Kind regards
Regine
06/25/2014 at 10:04 am #294984Steven Zahm
Keymaster@ Regine
Thanks for the feedback, I added the example to the QuickTip as you suggested.
If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
http://wordpress.org/support/view/plugin-reviews/connections -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.