Client Slider

GRBGRB
edited June 2019 in Shortcodes
I am trying to change the client slider width and height. I see this css block but how do I change the image to 225 w x 225 h with a 2px squared border radius around the images

<img width="225" height="225" src="http://website/wp-content/uploads/2019/06/DM-1-75x75.png" class="scale-with-grid wp-post-image" alt="" srcset="http://website/wp-content/uploads/2019/06/DM-1-75x75.png 75w, http://website/wp-content/uploads/2019/06/DM-1-150x150.png 150w, http://websitem/wp-content/uploads/2019/06/DM-1-146x146.png 146w, http://website/wp-content/uploads/2019/06/DM-1-50x50.png 50w, http://website/wp-content/uploads/2019/06/DM-1-85x85.png 85w, http://website/wp-content/uploads/2019/06/DM-1-80x80.png 80w, http://website/wp-content/uploads/2019/06/DM-1.png 225w" sizes="(max-width: 225px) 100vw, 225px">

Comments

  • I did something like this in the functions.php file but it did not force the logo client images to be the size I wanted. 
    /** Client Slider **/
    if (! function_exists('mfn_add_image_size')) {
    function mfn_add_image_size()
    {
    // clients
    add_image_size('clients-slider', 225, 225, true);
    }
    }
    add_action('after_setup_theme', 'mfn_add_image_size', 11);
  • Hi,
    Unfortunately, the size of the "Client Slider" images are hard-coded in our theme, and it cannot be easily changed in the theme options.
    As you noticed, it have to be modified in the theme code, but we do not provide this kind of help.
    We do not help with the theme files customization.

    Thanks
  • Could you tell me where in the theme code it is hard coded?
  • It's right there as you showed.
    But, you have to upload one more time to apply changed size.
    Also, you should look into the theme-shortcodes.php and theme-functions.php files.

    As I said, we cannot help with modifying the theme files, so if something in your modifications are not working, then we cannot help you with that - we assure, if your modifications will be made successfully, then it will be working fine.
    Thanks
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.