Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #1078446

    How do I increase the size of the featured image? I need it taller. The width is fine.

    #1078461

    Hey Jeffrey,

    Your image itself needs to be taller. The image in that link provided is 321px height full-size. In a nutshell if you want your image taller use a bigger image.

    Best regards,
    Jordan Shannon

    #1078462

    Hey Jeffrey,

    Your image itself needs to be taller. The image in that link provided is 321px height full-size. In a nutshell if you want your image taller use a bigger image.

    Best regards,
    Jordan Shannon

    #1080584

    Wrong. The image is 1030x618px. Your featured image container is probably 321px tall. Is there anyone there that can answer my question who understands WordPress and this theme?

    #1081130

    7 days since I asked this simple question. Maybe this format isn’t that efficient for answering questions.

    #1081258

    Hi JeffreySummers,

    Enfold prepares other sizes for different components.

    You need to change the image size
    https://kriesi.at/support/topic/full-list-of-image-dimensions-for-enfold/#post-373563

    regenerate thumbs and then try to adjust the image via css if it does not show up as you need.

    Or you can use simple image sizes plugin and specify the image dimensions there.

    Best regards,
    Victoria

    #1081735

    It seemed to be this code line:

    $avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>540); // big images for blog and page entries

    I successfully changed the container size and regenerated the existing image and it now works just fine.

    Support Note: It would’ve been much easier to have given me this code option in the first place instead of just telling me to “change my image size” which had nothing to do with the issue.

    My question now: How do I keep this code change in my child theme so that future changes to the function.php file doesn’t mess it up again? Do I have to copy the entire functions.php file to the child theme or can I use some snippet?

    Appreciate the help Victoria.

    #1081928

    Hi,

    Put the updated functions file into your child-theme directory.

    Best regards,
    Jordan Shannon

    #1082333

    Quick related question…I want the entry_with_sidebar size to be taller so it has a 16:9 aspect ratio. I added this to the functions.php file in my child theme:
    $avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>475);

    I just uploaded a new image into the media library, but the image size for that variation is still as programmed in the theme, 845×321. There doesn’t seem to be any effect to the change in functions.php.

    Caching is off. There are no thumbnails to regen because this was a newly uploaded image. The image in question is called “staci-overholt-shower-16×9.jpg”

    Is there anything else needed to make that image size change take effect? Any ideas on what I may be missing?

    #1082374

    AJ…there are multiple lines of code that address all the options for the blog layout, one is for big images if you have that option selected, you don’t say. Make sure the line of code you change matches the size option you have marked in the blog layout options page.

    Then you do need to regenerate but you can regenerate only that specific image in the media library.

    #1082375

    2nd question: Can this one line of code change be put into the customizer as a css change? or do I really have to put the entire functions.php file in my child theme folder…because this breaks the theme when I did it and got the white screen of death.

    #1082664

    Thanks Jeffrey.

    I only added this line to the functions.php file in my child theme:
    $avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>475);

    I looked at the Uploads folder at the images created after I added this line, and I saw that the theme still used the default size rather than the new size in the line added in functions.php

    I added credentials in the private area of my reply above, so I hope Jordan or one of the other moderators will be able to take a look and let me know what’s going on.

    Thanks!

    #1083170

    AJ; You did not need to add any line, just change the value on the existing line. The fact that you added a line is what the problem is. Now you have two lines commanding the same function. Delete what you added and change the existing line value to what you need. Regenerate and that should be all you need.

    #1083602

    Thanks! I can do that, but a question remains about life cycle and managing this customization after updating the theme. If I edit the theme’s functions.php file, that edit will be overwritten when the theme is updated, correct? I presumed adding an argument in my child theme’s functions.php would override the parent theme’s functions.php.

    I don’t mind making a note to edit the parent theme’s functions.php file, but I am hoping there is a clean way to handle it in the child theme.

    Thanks to all for the assistance!

    #1083822

    Tru dat! It’s why I asked the question above: “2nd question: Can this one line of code change be put into the customizer as a css change? or do I really have to put the entire functions.php file in my child theme folder…because this breaks the theme when I did it and got the white screen of death.”

    Putting the entire functions.php file can’t be the way to go since that’s a critical file that will have changes made in the future, that you will need to not overwrite. But I did, but labeled it functions.php2 in the child theme folder.

    Still no answer.

    #1084366

    Hi,

    You can add the “avf_modify_thumb_size” filter in the child theme’s functions.php file to adjust the size of the existing thumbnails.

    Example:

    add_filter( 'avf_modify_thumb_size', 'avf_modify_thumb_size_mod', 10, 1 );
    function avf_modify_thumb_size_mod( $size ) {
      $size['entry_with_sidebar'] = array('width'=>845, 'height'=>475);
      return $size;
    }

    Best regards,
    Ismael

    #1084456

    Thanks Ismael!!

    #1084982

    That solution worked perfectly, Ismael. Thank you! And when it’s added to the child theme’s functions.php, it will survive a parent theme update. Excellent!

    #1085183

    Hi,

    Awesome! Glad it worked. Please don’t hesitate to open a new thread if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘Featured Image -Posts’ is closed to new replies.