Services images auto resize

Hi, 

Please could you see if there is a solution for auto resizing images on the Basic Services.

I've already updated the single-spa_services.php file with a fix on another thread http://webriti.com/support/discussion/1886/spa-service-page#latest which displays just the image linking to the service that has been selected. 

All I need now is a responsive image, so that it shrinks if on a mobile device.

many thanks,
Christopher
Tagged:

Comments

  • Hi @ gfiproductions

    If possible share your website URL . 
    So that we can assist you better . 

    Also tell me are you facing issue with Home page service images or 
    Single page view of service image .
    Also clear this .

    Thanks 
    Akhilesh
  • Hi, this is the link to the page:


    it works on chrome, but firefox and explorer don't display correctly.  

    Thanks
    C
  • Answer to the second part of your question: just single page view service. Home page is fine.

  • Hi

    To change image size for this follow the given below instruction . 

    Step 1 

    1 Find the single-spa_services.php file (located in your theme fodler ). 

    2 Repalce the code of it with the code of single-spa_services.txt (given below in the attachemnt ).


    single-spa_services.txt
    1K
  • Step 2 

    Find the resize_image.php file located in your theme fodler << fucntions fodler << resize_image fodler << find the file . 

    Open it and find the below line of code on line no 10 

     add_image_size( 'service-two-thumb', 150, 87,false );
    And replace it with below line of code 

     add_image_size( 'service-two-thumb', 150, 87,false );
      add_image_size( 'service-single-thumb', 800, 500,false );

    Chagne image size as your need . 

    Then uplaod the service image again . 

    Hope I made my point clear . 
    Let me know for any confusion . 

    Thanks 
    Akhilesh


  • Hi Akhilesh,

    IT WORKS!! WELL DONE!!

    You are a genius.

    Chris

  • SCRATCH last comment.

    The whole site crashed.  Just spent the last three hours restoring.

    can you clarify the code fix.  what is deleted and what stays?

    thank you
    Chris
  • Hi 

    I have checke your website 

    And it is working well . 
    Let me specify the issue you are facing .
    So that we can assist you better .

    Thanks 
Sign In or Register to comment.