Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Ellen
Connections like most plugins/themes use a center weighted scale/crop.
Add this filter to change this default:
function cn_output_default_atts_image_filter( $atts ) { $atts['zc'] = 2; return $atts; } add_filter( 'cn_output_default_atts_image', 'cn_output_default_atts_image_filter' );Valid values:
0Resize to Fit specified dimensions (no cropping)1Crop and resize to best fit the dimensions (default behaviour)2Resize proportionally to fit entire image into specified dimensions, and add borders if required3Resize proportionally adjusting size of scaled image so there are no borders gaps
I think
2is the only other crop mode that will work well in your use case.Hope this helps!
Steven Zahm
Keymaster@ Susan
When I try to access the admin I get a 403 error. Do you have some restriction in place?
Steven Zahm
Keymaster@ KC
No problem. Sometimes it takes a fresh set of eyes.
If you have a moment, I would truly appreciate a review as they really do make a difference.
https://wordpress.org/support/plugin/connections/reviews/
Thanks in advance for your time!
Steven Zahm
Keymaster@ KC
Please navigate to the Tool : Real-Time Find and Replace admin settings page.
It has been setup to replace
high-voltagewithhigh voltage.Apparently this run after the directory is embedded on the page so it changes both the entry permalink and the image display by changing its source.
Navigate to the Connections : Manage admin page and mouseover the “View” link for the “High Voltage Asia Pte Ltd” entry.
Note in the mouseover tooltip that the dash is present in the link, not a space or a
+.You have to remove the
high-voltagesetting from Real-Time Find and Replace or change the entry name so it does not match so it does not get replaced.Hope this helps!
Steven Zahm
Keymaster@ Ellen
Yes, the overlay is placed over the image. The aspect ratio is correct based on the 1920x2408px original image size.
You need to adjust for the height of the overlay. So, add 70 to 100 to the image height.
Steven Zahm
Keymaster@ Ellen
Sorry, this would require custom development which would include additional plugin.
Also, I suggest adding a custom text field instead of using the Custom Fields:
If you decide to use the Custom Fields, CSS can be used to hide the label.
Hope this helps!
Steven Zahm
Keymaster@ Susan
I’m still not quite sure how Connections could be the issue because the rest of the page content is missing as well…
Please create a temp admin login using this plugin:
Reply back, as a private reply, and I’ll take a look.
Steven Zahm
Keymaster@ Ellen
Set grid size to 320 x 400:
Example:
[connections image_width=320 image_height=400]That will ensure the images are scaled down to the same ratio of the source images. Well, technically the height should be 401.333333333. Rounded down should be fine.
Changing the quality on the image settings will actually not have any effect on Gridder since it dynamically creates the required image sizes it needs. Those settings only affect the default cached images sizes which are created when an image is added to an entry.
Connections defaults to the same quality as core WordPress. This default can be changed by adding a filter.
add_filter( 'cn_output_default_atts_image', 'cn_image_quality_100' ); function cn_image_quality_100( $atts ) { $atts['quality'] = 100; return $atts; }Use the Code Snippets plugin to add this filter.
Hope this helps, let me know!
Steven Zahm
Keymaster@ KC
RE: I even did a variation on the name High Voltage, and it still replaced it with a + on a new entry.
You can kinda sorted ingor the
+, The browser will always replace aspace characterwith a+. So, that is not the issue, it is a symptom.Like I said, it seems something is interfering with the entry slug.
I just added both
High Voltage Asia Pte LtdandHigh Voltageto my testing site and both added fine … the space betweenHighandVoltagewas had the dash as expected.Create a temp admin account using this plugin:
Reply back, as a private reply, and I’ll take a look.
Right now, I am really thinking another plugin is, for some reason changing the page content and removing the dash. I say this because I can fix the link and it loads as expected:
This tell me the entry and its data is correct. I do not believe, at this point, that this is an issue with Connections.
Steven Zahm
Keymaster@ Susan
RE: Directory of Service Providers
It does seem something is stripping the page content. NOt only is that affecting Connections, it is also removing your icon and bold-italic note you have before the shortcode.
Try this, copy the shortcode only from the services page and past it into a new page. publish that new page? Does that new page show the directory?
RE: Big Bass Construction
I could not figure out which page this entry is displayed on… but my guess is that Connections was not able to geocode the address automatically … well OpenStreetMap was not able. So, without a lat/long, there will not be a map.
When you manually added those, that allowed the map to be created.
Hope this helps! Let me know how it goes with the directory test.
-
AuthorPosts
