Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1180071
    rustedfingers
    Participant

    Please help as newbie here. I could not upload attached image I want to use as hero/background image to my website: http://www.digitalsolutionsbymd.com

    #1180081
    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    After setting up the child theme, add the following code in your Child Theme’s functions.php file:

    add_filter( 'wp_image_editors', 'change_graphic_lib' );
    
    function change_graphic_lib($array) {
    return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
    }

    Let us know how this goes!

    #1180919
    rustedfingers
    Participant

    I have setup my child theme. I am trying to look where the directory of the themes are for copying and pasting the View to be changed. In my File Manager in my hosting site, I am looking at the public_html/wp-admin folder. Am I looking at the right location? Thanks.

    #1180923
    Christopher
    Moderator

    Hi there,

    Please add provided code under public_html/wp-content/themes/x-child/functions.php file.

    Hope it helps.

    #1181165
    rustedfingers
    Participant

    I tried to add via the WordPress Editor but I still get the HTTP error.. Did I do correct? Attaching screenshot.

    #1181195
    Christopher
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1181209
    rustedfingers
    Participant
    This reply has been marked as private.
    #1181375
    Rahul
    Moderator

    Hi There,

    The images are now having the functionality to upload.
    I have uploaded the provided image (hero large); Please have a look and confirm.

    Happy to help!

    #1182584
    rustedfingers
    Participant

    I could now see the image. How did you fix it? For my future reference. Thanks.

    #1182692
    rustedfingers
    Participant

    How do I make the image I just uploaded to be full width and height? I tried background-size: cover; in the Style box in Cornerstone but it didn’t work.

    My site: http://www.digitalsolutionsbymd.com

    I would like to mimic: https://danielladraper.com/

    #1182719
    Christopher
    Moderator

    Hi there,

    Please disable ‘column container’ option from row settings.
    Add width: 100%; in image’s style field.

    Hope it helps.

    #1184545
    rustedfingers
    Participant

    How do I set the size of the background image so that the width fits to the maximum width of the browser and the height adjusts in accordance to the aspect ratio? I tried the property background-size: cover, contain and setting 100% 100% property but it did not work.

    Thank you for your help as always!

    Here’s my website: http://www.digitalsolutionsbymd.com/

    #1184631
    Paul R
    Moderator

    Hi,

    I think it would be easier to control if you use the revslider.

    Please refer to the links below

    https://community.theme.co/kb/sliders/
    https://www.themepunch.com/revslider-doc/slider-revolution-documentation/

    Hope that helps.

    #1187921
    rustedfingers
    Participant

    I am again getting an HTTP error uploading attached image. Hope you can check. Thanks.

    #1188166
    Darshana
    Moderator

    Hi there,

    You image is not uploaded due to our file-size limit of 512KB. You can try an online service to share your image. In the meantime, please check the following resource and see if that helps (https://themeskills.com/fix-http-error-when-uploading-images-to-wordpress/).

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1180071 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>