J-BusinessDirectory - Issue JCH Optimize / mod_jbusiness_user

Support Forum

 
 

 

Hi JBD Community,

 

I have a strange issue, when implementing mod_jbusiness_user, J-mydirectory template. 

 

I have normal JCH Optimize setting Premium (Use try-catch on No), but when activating mod_jbusiness_user, the fields of the search (Category / Country) are increasing in width (up to 2000px), except keyword search.

 

If JCH setting to average, seems working... Even every step down in JCH, will increase the width of the fields.

 

Are more of you using same combination?

 

/Robert

Edit: Seems related with: 

Optimize CSS Delivery

The plugin will attempt to extract the critical CSS that is required to format the page above the fold and put this in a <style> element inside the <head> section of the HTML to prevent 'render-blocking'. The combined CSS will then be loaded asynchronously via javascript. Select the number of HTML elements from the top of the page that you want the plugin to find the critical CSS for. The smaller the number, the faster your site but you might see some jumping of the page if the number is too small.

If I increase the number of elements to 600 (i/o 200) is solved... but will drop in speedtest :-(

3 replies

It seems to be a css problem. When everything else works why don't you copy the affected css into your custom.css or into the templates custom css section with an !important ? Maybe it's something like box-sizing: border-box !important;  at the #companies-search or similar.

Thanks, not sure if is direct related to mod_jbusiness_user, but more the way JCH is working..

Yes, you are right, JCH trims the code in this case I suspect, and so the result could be an overwritten or wrong or cut out css. The browsers inspector could help you if you compare the search fields styles with JCH turned off and JCH turned on. Then put the css code from turned off version to your custom css code with an !important; at the end (because usually JCH doesn't change any custom css the "hard way"). It's my idea respectively the way I would try if the problem is this only one thing. Let me know if you can solve it no matter which way.

 
 
 

4 Item(s)

Show per page