Forum Replies Created
-
AuthorPosts
-
Steven Zahm
KeymasterRE: On the first screen you see here I have a very nice display – the one I expected to see – of the entry. This is what the template looks like when I’m in the WP Dashboard Settings for the template(I hope that makes sense). However, I don’t get this same display on the actual page (second screen shot).
The first screenshot shows a completely different template, not Slim Plus. It looks like the Default Template. The Slim Plus template has not yet been updated to support the Template Customizer.
I’ve taken a look at the image for “Advanced Eye Care of Covington” and the uploaded image is not sized as the FAQ says.
The original image has dimensions of 1052 x 382px. To get the image crop correct for Slim Plus you need to make the image taller. Using the FAQ…
( 120 / 100 ) * 1052 = 1262
So the new image size is 1050 x 1262px.
I’ve attached an updated image so you can see.
This might be easier… the default crop mode in Connections is centered weighted. It is a very common default in plugins and themes. Ideal for subjects in a photo is in the center; eg. profile photos.
This default crop mode can be change thru a bit of code:
Install the Code Snippets plugin and add a new snippet with this code:
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' );Save and Activate the snippet to run on the site’s frontend only.
This will scale the image down and instead of center cropping, it’ll add white space to fit the image dimension.
Hope this helps!
Attachments:
You must be logged in to view attached files.Steven Zahm
Keymaster@ Lara
Can you please reply back with a screenshot showing the issue?
Steven Zahm
Keymaster@ Casper
I see, the
%separator%token is officially not even supported in the address format even though the code does. This is why you do not see it in the in the Customizer for the address format option or in the cMap docs.It will display as intended when the address is displayed as a single line… like you used to have. Now you have as a block, which from a design perspective, I’ve never intended.
Any way…
You need to add CSS to deal with the colon when displaying the address as a block. Liek with this:
#cn-cmap span.adr.cn-address > span.address-name { display: inline; } #cn-cmap span.address-name + span.cn-separator::after { content:"\a"; white-space: pre; }I’ve added to you theme custom CSS area with the rest of your custom code.
Steven Zahm
Keymaster@ Kate
So, it seems another plugin or possible the theme was un-registering a core WordPress script, jQuery Form, which is required by Connections. I added a check in Connections to see if jQuery Form is registered or not and if it is not, registers it again. This seems to have corrected the issue.
Steven Zahm
Keymaster@ Casper
I wouldn’t use the theme options, just WP Rocket + SG Cache.
Steven Zahm
Keymaster@ Casper
Ahhh… that’s the difference. I use both. WP Rocket has builtin support for SG Cache.
Steven Zahm
Keymaster@ Casper
Hmmm… those are the same settings I use. I had thought it might be the memcached setting. I can not remember, do you use any caching plugins such as W3TC… I suppose DB object caching might be able to cause such an error.
Steven Zahm
Keymaster@ Casper
Interesting… that is my hosting provider and I have not experience that issue. Which caching method was causing this?
Steven Zahm
Keymaster@ Casper
That’s the colon I just removed…
In the Template Customizer look in the Advanced panel. It’ll be the Address Format option. Use the
%separator%token to add it.Steven Zahm
Keymaster@ Harald
Just following up since I have not received a reply… is this still an issue?
-
AuthorPosts
