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.5.19, code snippet, configuration, contact, extension, installation, say what
- This topic has 5 replies, 2 voices, and was last updated 6 years, 6 months ago by
Steven Zahm.
-
AuthorPosts
-
07/14/2016 at 8:06 pm #382868
Robert Peryea
ParticipantHi. Just bought the contact form that should show on each contact, but it’s not working. I went through the instructions a couple of times.
Can someone please tell me what I’m doing wrong?
I’m using the Zerif Lite theme.
07/15/2016 at 8:21 am #382920Steven Zahm
Keymaster@ Robert
I just took a look at you site, seems you have figured it out? Was I missing a step in my instructions or is there something I could have made more clear?
07/15/2016 at 8:54 am #382922Robert Peryea
ParticipantHi, Steven,
I expected to see a contact form on each of the contacts on my list. Is that not what I should be looking for?
I had a contact form on my site on the home page, but I wanted a quick contact form for each member on the regional members list.
Maybe I don’t know where to look.
Bob
07/15/2016 at 8:59 am #382923Robert Peryea
ParticipantSteven,
Disregard, please.
I found it. I was looking for it to be on the front listing, similar to the “See Map” link.
If we can put a “Contact Us” link on the listing, that would be great.
Thanks.
Bob
07/15/2016 at 9:18 am #382924Robert Peryea
ParticipantSteven,
While we’re on it, can I change the header from “Email entry” to “Request Free Information”?
Sorry. I don’t want to make a mess of your great work.
I would love for it to show “Request Free Information” on the listing near the maps. It can then take them to that form.
Sorry. Got a boss who loves the work, but would like it to be customized.
Thanks.
Bob
07/15/2016 at 10:08 am #382930Steven Zahm
Keymaster@ Robert
re: If we can put a “Contact Us” link on the listing, that would be great.
Install the Code Snippets plugin.
Add a new snippet with the following code:
add_filter( 'cn_output_email_addresses', 'cn_contact_email_contact_link', 11, 4 ); function cn_contact_email_contact_link( $block, $addresses, $entry, $atts ) { if ( $addresses ) { if ( ! cnQuery::getVar( 'cn-entry-slug' ) ) { $name = $entry->getName( array( 'format' => '%first%' ) ); $permalink = $entry->getPermalink() . '#cnct-email-' . $entry->getSlug(); $row = '<span class="email-address"><a class="value" title="Email ' . $name . '" href="' . $permalink . '">Contact Us</a></span>'; $block = '<span class="email-address-block">' . PHP_EOL . $row . PHP_EOL . '</span>'; } } return $block; }
Save and Activate the snippet choosing the “Only run on site front-end” option.
This will add a “Contact Us” link on the results list page.
re: can I change the header from “Email entry” to “Request Free Information”?
Yes this can be done. Install the Say What plugin.
Add a new text change using the following settings:
Original string:
Email Entry
Text domain:connections_contact
New string:Request Free Information
Capitalization matters, so make sure to use the exact strings. That should do it.
Hope that helps!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.