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 9 replies, 2 voices, and was last updated 5 years, 2 months ago by
Steven Zahm.
-
AuthorPosts
-
07/04/2018 at 8:55 pm #466840
Michael Quesnel
ParticipantHi. Our categories show up once we click on view profile, which gives the details. However, we would like the categories for our coaches (i.e. life coach, recovery coach etc.) to show up once someone clicks on the plus sign next to their name. Right now the phone number, email address and im icons appear. I have tried adding shortcode but cannot seem to get it to show up where I want. See attached.
Thanks in advance and thanks for your awesome support.
Michael
Attachments:
You must be logged in to view attached files.07/05/2018 at 11:38 am #466897Steven Zahm
Keymaster@ Michael
There is not a way to add this info without editing the PHP of the template files. You can follow the steps in the post.
The only difference is the file path is:
../wp-content/plugins/connections-gridder/
Hope this helps!
07/05/2018 at 1:51 pm #466916Michael Quesnel
ParticipantWorked- thanks.
07/05/2018 at 7:14 pm #466931Michael Quesnel
ParticipantOne more question now that this works, my client would prefer to bypass panel all together and have picture link to a landing page, is this possible?
07/06/2018 at 6:05 pm #467017Steven Zahm
Keymaster@ Michael
You would have to wrap the image within an
a
tag. To get the entry permalink for thehref
attribute you can use the$entry->getPermalink()
method.Hope that helps!
07/08/2018 at 5:29 pm #467067Michael Quesnel
ParticipantThanks but not sure how to do that. Can you be a bit more specific, where and exact syntax. Thanks
07/09/2018 at 11:48 am #467115Steven Zahm
Keymaster@ Michael
Well, this is untested… but the code would be something like this.
Replace this:
<?php $entry->getImage( array( 'image' => $atts['image'], 'height' => $atts['image_height'], 'width' => $atts['image_width'], 'fallback' => array( 'type' => 'block', 'string' => '' ), 'style' => $atts['image_opacity'] ? array( 'opacity' => $atts['image_opacity'], 'filter' => 'alpha(opacity=' . $atts['image_opacity'] * 100 . ')' ) : array(), ) ); ?>
with this:
<?php echo '<a href="' . $entry->getPermalink() . '>'; $entry->getImage( array( 'image' => $atts['image'], 'height' => $atts['image_height'], 'width' => $atts['image_width'], 'fallback' => array( 'type' => 'block', 'string' => '' ), 'style' => $atts['image_opacity'] ? array( 'opacity' => $atts['image_opacity'], 'filter' => 'alpha(opacity=' . $atts['image_opacity'] * 100 . ')' ) : array(), ) ); echo '</a>'; ?>
07/10/2018 at 9:48 am #467163Michael Quesnel
ParticipantThanks I will test and let you know.
07/10/2018 at 10:06 am #467166Michael Quesnel
ParticipantI am assuming this is an edit to the card.php file, right? If so it does not work. Here is the sandbox url: http://icoach-wp.icoachinternational.org/find-your-coach/ and my hopes is that we can eliminate the extra click on the + sign and just go to a landing page via the image, as I mentioned. I am testing on my name Michael Quesnel from the grid.
07/10/2018 at 10:46 am #467171Steven Zahm
Keymaster@ Michael
Look like I had one type in the code I gave… change this:
echo '<a href="' . $entry->getPermalink() . '>';
to this:
echo '<a href="' . $entry->getPermalink() . '">';
I m still unsure if this will do it though because there is quite a bit of javascript involved in make Gridder function the way it does. If this change does not work, it might not be easy to make necessary changes to the javascript.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.