Viewing 30 results - 1,381 through 1,410 (of 10,095 total)
  • Author
    Search Results
  • #1271108

    Hey Tomasssu,

    Thank you for the inquiry.

    The theme register its own thumbnails and whenever you upload a product image, these thumbnails are automatically generated as well which is probably why the images takes up that much space in the server. If you don’t need those thumbnails, you can manually remove them using the following snippet in the functions.php file.

    // Disable loads of Enfold & WP image sizes upon upload
    add_action('init', 'remove_enfold_image_sizes');
    function remove_enfold_image_sizes() {
    // do NOT remove widget size, is used in backend portfolio items!
    // remove_image_size('widget');
      remove_image_size('square');
      remove_image_size('featured');
      remove_image_size('featured_large');
      remove_image_size('portfolio');
      remove_image_size('portfolio_small');
      remove_image_size('gallery');
      remove_image_size('magazine');
      remove_image_size('masonry');
      remove_image_size('entry_without_sidebar');
      remove_image_size('entry_with_sidebar');
      remove_image_size('shop_thumbnail');
      remove_image_size('shop_catalog');
      remove_image_size('shop_single'); 
      remove_image_size('shop_gallery_thumbnail');
    }
    

    After adding the snippet, use the following plugin to regenerate the images, which should also remove the unregistered thumbnails.

    // https://wordpress.org/plugins/regenerate-thumbnails/

    IMPORTANT: Please do not forget to create a backup or a restore point before doing the above steps.

    Related thread: https://kriesi.at/support/topic/media-upload-and-enfolds-thumbnail-sizes/#post-1270140

    Best regards,
    Ismael

    #1271093

    Hi,

    Thank you for the update.

    We tried to select the preview image manually but for some reason, the original image is still displayed in the grid instead of the selected thumbnail. Did you happen to remove some images or do a clean up in the uploads folder? When you enable the Smush plugin, did you disable certain thumbnails?

    Best regards,
    Ismael

    #1271062

    Hi,

    Sorry for the delay. The grid in the archive page is currently using the portfolio thumbnail and by default, the crop option for this thumbnail is enabled, so images may get cut off if the original image does not have the same aspect ratio as the thumbnail. If you want to prevent this from happening, you have to disable the crop option for the portfolio thumbnail. To do that, we have to add this snippet in the functions.php file.

    
    function ava_enfold_image_sizes() {
      remove_image_size('portfolio'); 
      add_image_size('portfolio', 495, 400, false );
    }
    add_action('init', 'ava_enfold_image_sizes');
    

    After adding the snippet, try to refresh the page, then upload the images again or regenerate the thumbnails using the following plugin.

    // https://wordpress.org/plugins/regenerate-thumbnails/

    Best regards,
    Ismael

    #1270957

    Topic: New Custom Post Types

    in forum Enfold
    bucksharp
    Participant

    I tried putting this in my child theme’s functions.php, and it’s not throwing any errors, but it breaks the media library. Any ideas of how I could create a custom post type?

    <!-- new post type = Proud Bulldog Business -->
    <?php
    /*
    * Creating a function to create our CPT
    */
     
    function custom_post_type() {
     
    // Set UI labels for Custom Post Type
        $labels = array(
            'name'                => _x( 'Bulldog Businesses', 'Post Type General Name', 'twentytwenty' ),
            'singular_name'       => _x( 'Bulldog Business', 'Post Type Singular Name', 'twentytwenty' ),
            'menu_name'           => __( 'Bulldog Businesses', 'twentytwenty' ),
            'parent_item_colon'   => __( 'Parent Business', 'twentytwenty' ),
            'all_items'           => __( 'All Businesses', 'twentytwenty' ),
            'view_item'           => __( 'View Business', 'twentytwenty' ),
            'add_new_item'        => __( 'Add New Business', 'twentytwenty' ),
            'add_new'             => __( 'Add New', 'twentytwenty' ),
            'edit_item'           => __( 'Edit Business', 'twentytwenty' ),
            'update_item'         => __( 'Update Business', 'twentytwenty' ),
            'search_items'        => __( 'Search Business', 'twentytwenty' ),
            'not_found'           => __( 'Not Found', 'twentytwenty' ),
            'not_found_in_trash'  => __( 'Not found in Trash', 'twentytwenty' ),
        );
         
    // Set other options for Custom Post Type
         
        $args = array(
            'label'               => __( 'businesses', 'twentytwenty' ),
            'description'         => __( 'Proud Bulldog Businesses', 'twentytwenty' ),
            'labels'              => $labels,
            // Features this CPT supports in Post Editor
            'supports'            => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', ),
            // You can associate this CPT with a taxonomy or custom taxonomy. 
            'taxonomies'          => array( 'genres' ),
            /* A hierarchical CPT is like Pages and can have
            * Parent and child items. A non-hierarchical CPT
            * is like Posts.
            */ 
            'hierarchical'        => false,
            'public'              => true,
            'show_ui'             => true,
            'show_in_menu'        => true,
            'show_in_nav_menus'   => true,
            'show_in_admin_bar'   => true,
            'menu_position'       => 5,
            'can_export'          => true,
            'has_archive'         => true,
            'exclude_from_search' => false,
            'publicly_queryable'  => true,
            'capability_type'     => 'post',
            'show_in_rest' => true,
     
        );
         
        // Registering your Custom Post Type
        register_post_type( 'businesses', $args );
     
    }
     
    /* Hook into the 'init' action so that the function
    * Containing our post type registration is not 
    * unnecessarily executed. 
    */
     
    add_action( 'init', 'custom_post_type', 0 );
    ?>
    #1270854
    Tomasssu
    Participant

    Hi from Slovakia. I use Enfold for our online shop. Everything is OK but I have one problem. Online shop: 1200 products – uploaded 5000 multimedia files / size of one on average 300-400 kb. Nevertheless, our online shop is over 20 GB in size (18 GB uploaded multimedia files) (!) We checked the installed plugins, but we didn’t find a problem. Could this be a problem with the template? Doesn’t it make many copies of different thumbnails? (5000 multimedia files have been uploaded, but EWWW Image Optimizer show over 100000…) Do you know the solution? Thanks for reaction.

    #1270816

    Hi Guenni,
    so the only way now is to change the original files which means, I have to overwrite this any time after updating Enfold?
    Which code do I exactly have to change? Is it only this snippet from your post #1270342?


    @Ismael
    : Guenni’s solution should be the right way to avoid bigger file sizes after uploading instead of enabling thumbnails risking a heavier performance? So there is no way to get it to work in the Child Theme?

    I also tried Smush, which is doing the job, but unfortunately the same as Guenni reported happens (still much bigger file sizes than the original image).

    Best regards

    #1270759

    Hi Audrey,

    Try adding this code in your child theme’s functions.php file:

    add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
    function enfold_customization_modify_thumb_size( $size ) {
    	$size['portfolio'] = array('width'=>990, 'height'=>800', 'crop' => false);
    	return $size;
    }

    Then try to re-upload the image/s if there are lots of them then use Regenerate Thumbnails plugin.

    Best regards,
    Nikko

    #1270696

    The exact same thing happens if I try to add the following CSS in the article page: .entry-thumbnail { display: none; }

    #1270642

    Hi,

    Thank you for the update.

    If I understand correctly, you are wondering why the generated thumbnails file size is much bigger compare to the original image. Is that correct? Please note that the thumbnail quality directly affects the file size, so reducing the default quality should affect the final compressed size of the thumbnails. Also, image optimization plugins could also affect the final size of the thumbnails. Did you install an image optimization plugin?

    Best regards,
    Ismael

    #1270630
    cbroome12
    Participant

    Hi there.

    Want to insert a VideoAsk widget into our website.

    When I add the script code into either a main page (e.g. Home), or via a plugin (e.g. Header & Footer scripts) the widget works on desktop but not on mobile – in that, it shows on mobile but the play function doesn’t work.

    Guidance from VideoAsk is (I’ve removed part of it for security reasons on this forum, denoted XXXXXXXXXXX):

    <!– Add the code below inside the <body> tags of your HTML page –>
    <script>
    window.VIDEOASK_EMBED_CONFIG = {
    “kind”: “widget”,
    “url”: “https://www.videoask.com/ XXXXXXXXXXXXXX “,
    “options”: {
    “widgetType”: “VideoThumbnailExtraLarge”,
    “text”: “Talk to us”,
    “backgroundColor”: “#B5055A”,
    “position”: “bottom-right”,
    “dismissable”: true
    }
    }
    </script>
    <script src=”https://www.videoask.com/embed/embed.js”></script&gt;
    <!– Important!!! In order to allow your videoask to open up on the same page when interacting with the widget, your website must use the secure https:// protocol (i.e have an SSL certificate). Otherwise, when clicking the widget, a new tab will be automatically opened in the browser.

    Any ideas please?

    Thanks in advance.

    #1270597

    Hi,

    It actually depends on the elements that are used or the content that currently exists in the site. If you are not using the Portfolio Grid or the Masonry elements for example, then you could safely remove the portfolio and masonry thumbnails. If there is no latest posts widget, then the widget thumbnail is probably not required. You could actually remove all registered thumbnails because WordPress will just automatically fall back to the original source or the original image but this could also mean a much heavier site.

    Best regards,
    Ismael

    #1270448

    I am NOT talking about the thumbnail quality.
    Please read again.

    #1270417

    Hi, thanks for helping out!


    @Guenni007
    : This is a bit too much coding for me and unfortunately your solution doesn’t work right now?


    @Ismael
    : Which image sizes that are automatically created can I disable for the future? The original image size uploaded is already optimized in size and quality. I tried deleting some files via SFTP in a test and saw that e.g. thumbnails in sliders (editing the slideshow in the back-end) are missing after.

    So which ones are necessary for a correct workflow in Enfold?

    Best regards

    #1270167

    Edit: HM ? i tested it on a nearly fresh installation – but the snippet to set the thumbnail compression does not work as expected !
    and – the newer plugin has this compression option in its settings – here also the compression seems to be not taken into account
    my uploaded image has 1500px width so it is comparable to the calculated format with 1500px width.
    Uploaded Size : 128kb Calculated Format: 545kb allthough i do set the rate to 40% ???

    i knew that on former Enfold Versions this snippet does the job as we want to have it.
    Maybe Günter knows a different method that works.

    Even if i take the filter : avf_responsive_images_defaults i have no file-size reduction at all

    #1270155
    jewsforjesus
    Participant

    Hi,
    All thumbnails aren’t responsive, unfortunately, i.e. in a category, in a post slider etc.
    Could you please help me to fix that issue?
    I can send you screenshots if you need them.
    Enfold ver. 4.7.6.4
    PHP ver. 7.3.25
    WordPress ver. 5.5.3

    Thanks a lot.

    #1270140

    A lot of users have allready good image editors to optimize the jpgs for web with the wanted and for each image best compression rate.
    Many images are not critical and therefore tolerate higher compression rates.
    On uploading images – enfold genereates the calculated formats from the opend jpg and does not set a compression rate. So it is like you save a jpg with zero compression ( in photoshop f.e. quality 12 : maximum )

    the original code you can find in functions.php was since line 236:

    so you can influence that on setting a compression rate in your child-theme functions.php
    ( here in my example 65% – but in most cases a 45% will be ok too )

     function av_return_100(){ return 65; }
      add_filter('jpeg_quality', 'av_return_100');
      add_filter('wp_editor_set_quality', 'av_return_100');
    

    Then
    Whether a format provided by Enfold ( functions.php lines 178ff ) is generated can be influenced again by means of a snippet in the child-theme functions.php:

    Some formats are needed by Enfold because they are used in the backend. The formats you want to keep then comment out analogous to the widget format.

    // Disable loads of Enfold & WP image sizes upon upload
    add_action('init', 'remove_enfold_image_sizes');
    function remove_enfold_image_sizes() {
    // do NOT remove widget size, is used in backend portfolio items!
    // remove_image_size('widget');
      remove_image_size('square');
      remove_image_size('featured');
      remove_image_size('featured_large');
      remove_image_size('portfolio');
      remove_image_size('portfolio_small');
      remove_image_size('gallery');
      remove_image_size('magazine');
      remove_image_size('masonry');
      remove_image_size('entry_without_sidebar');
      remove_image_size('entry_with_sidebar');
      remove_image_size('shop_thumbnail');
      remove_image_size('shop_catalog');
      remove_image_size('shop_single'); 
      remove_image_size('shop_gallery_thumbnail');
    }
    

    and if you like to do that with WP image formats too:

    // Remove unneeded WP image sizes
    add_filter( 'intermediate_image_sizes_advanced', 'prefix_remove_default_images' );
    // Remove default image sizes here. 
    function prefix_remove_default_images( $sizes ) {
    // do NOT remove small and medium sizes, they are used in backend Media Library!
    // unset( $sizes['small']); // 150px
    // unset( $sizes['medium']); // 300px
     unset( $sizes['large']); // 1024px
     unset( $sizes['medium_large']); // 768px
     return $sizes;
    }

    BUT:
    However, if you add this to an existing installation, you would have to recalculate your thumbnails afterwards.
    There are small plugins that you can use temporarily for this action. Whereby you should make sure that the omitted formats are also deleted then.

    in former times i used this : Force Regenerate Thumbnails
    does that on recalculating.

    But maybe a newer Plugin will be better – this seems to be from an image expert and will do the job too: reGenerate Thumbnails Advanced

    #1270120
    diggital
    Participant

    Hi,
    I recently checked some of my Enfold websites because of huge media image files reported in page speed tests.

    It seems to differ from the uploaded original image size (e.g. more than 1600 px width) how many thumbnails are created by Enfold automatically. I found up to 19 thumbnails!

    1) Is it possible to enable this or to reduce the number of thumbnails without having any issues?
    2) Most of the uploaded images are already optimized when uploaded and the curious thing is, that the first generated thumbnails are much bigger than the original and increase their file sizes up to more than 4 times!
    3) dpi changes sometimes from original to thumbnail from 72 dpi to 96 dpi which is also increasing the file sizes.

    Example: Original 1461 x 727px (107.7 KB), thumbnail: 1461 x 630px (352 KB!), the first thumbnails with lower file size than the original start only at 300 x 300 px

    We have websites with huge media libraries which increase a lot by this and influence the website performance. Any page speed test is reporting these thumbnail file sizes.

    Any help is highly appreciated.

    Best regards

    #1270084

    Hey MarcusJeroch,

    Thank you for the inquiry.

    The theme sets the image or thumbnail quality to 100% from the default 80% set by WordPress. To revert the image quality back to default, we could use the following function or snippet.

    // https://kriesi.at/support/topic/css-changes-arent-showing-on-the-live-site-and-unwanted-image-resizing/#post-1237301
    // https://kriesi.at/support/topic/full-screen-slider-original-image-vs-resize-image-1500px/#post-1234306

    You will have to regenerate the thumbnails or upload the images again to see the changes.

    Best regards,
    Ismael

    #1269510

    Merhabalar,

    Bu degisikliklerin sonraki guncellemelerde kayip olmamasi icin child theme kullanmanizi tavsiye ederim. Eger child theme kullanmiyorsaniz buradan bizim onceden hazirladigimizi indirip yukleyebilirsiniz – https://kriesi.at/documentation/enfold/child-theme/

    – /enfold/includes/loop-search.php dosyasini kopyalayip /enfold-child/ klasoru icerisine “includes” klasoru olusturup onnun icine yapistirin.
    – Assagidaki satiri bulun

    echo "<span class='search-result-counter {$counterclass}'>{$post_loop_count}</span>";

    ve o satiri assagidaki ile degistirin

    $searchthumb = get_the_post_thumbnail( $the_id, 'large' );
    echo "<span class='search-result-counter {$counterclass}'>{$searchthumb}</span>";

    – Sonrasinda assagidaki kodu Enfold theme options > General Styling > Quick CSS alanina ekleyin

    .search-result-counter {
        padding: 0;
    }
    
    .search-result-counter img {
    	width: 100%;
    	height: 100%;
    	border-radius: 100px;
    }

    Best regards,
    Yigit

    #1267478

    Topic: Header not shrinking

    in forum Enfold
    Photoart-Huebner
    Participant

    Hello enfold theme.

    My header does not shrink actually. The shrinked size of the logo is shown from the beginning. Please help.
    http://www.photoart-huebner.de

    Best regards

    Marcus

    Update: Can be closed – after Updates the Logos used were thumbnails. Changed it and now its fine again! THX

    #1266971

    Hey Chris,
    Sorry for the very late reply and thanks for the links. As I understand your issue, these thumbnails are not showing below the layerslider:
    2020-12-13_175906.jpg
    I tested with Chrome, Firefox, & Edge on Windows 10, but each showed & worked for me.
    Are you still having this issue?

    Best regards,
    Mike

    #1266475
    eyeqindia
    Participant

    Hi,

    We are having this issue for last 1 month and tried everything possible before opening this ticket –

    We are not able to upload featured image to our blog posts. Pls follow these steps to reproduce the issue:

    1. Go to Posts and create a new post.
    2. Click on featured image in the image section in the right.
    3. Try uploading an image.
    4. The image uploads but the thumbnail is not visible.
    5. It still allows me to select that image as featured image. But after I do that, there is no featured image showing in the post.

    I have recorded this flow and you can check on https://www.awesomescreenshot.com/video/1992123?key=d9e29bd0336c0b0ef5190df5c9f66c03

    We have checked with our host (hostgator) and they said there is no issue. We tried various combinations of WP version/ PHP version, disabling plugins to see if one of them was an issue but it did not solve the issue. We also created a copy of the site on a staging site, but it is working on staging so we are not able to troubleshoot.

    Can you please have a look and see if you can figure something out?

    Thanks,
    Priyanka

    #1265787
    Chris
    Participant

    Dear Support-Team,
    could you please assist me with the above descriped issue?
    I integrated the Layerslider as a color-changer here: https://internetschlosser.de/modell-home-inclusive/#farbwechsler

    1. In Firefox the thumbnails appear as usual
    2. In Chrone and MS Edge they doesn’t

    Could you maybe tell me, what I did wrong?
    Logindata in the secret area included.
    Thanks a lot in advance and stay healthy,
    yours Chris

    #1265667

    Hey dannyl82,

    Thank you for the inquiry.

    The issue is on a post it then displays the image at the top as the ***-845×321.png version

    That is the predefined thumbnail for featured images in a post without sidebar, but it can be adjusted manually in the functions.php file around line 188.

    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>321);
    

    .. or we can use the Simple Image Sizes plugin to adjust the thumbnail size in the Settings > Media panel.

    // https://wordpress.org/plugins/simple-image-sizes/

    We have to regenerate the images or upload the image again after the size adjustment.

    Best regards,
    Ismael

    #1265135
    dannyl82
    Participant

    Hi,

    I wondered if somebody could help me with the way the site is displaying the images in our posts and category pages.

    We normally try and keep the main image for a post when we upload it to 1200×630 as the dimensions work well for social media shares etc. When we upload the image as the feature image in a post it creates all the different sizes. The issue is on a post it then displays the image at the top as the ***-845×321.png version which is the incorrect version as it isn’t a multiple of 1200×630 and means the top and bottom of the image get chopped off. Looking at all the versions that are generated I think it should be the ***-.768×403.png version (correct me if I’m wrong here) that is displayed as this is a correct multiple and looking at this version there is nothing that has been cropped – How do we change it so the posts use that version?

    Similarly, on our archive/category page, it is displaying the 495×400 version for the thumbnail which is too square, for the thumbnail based on our feature image size I think it should be the 300×158 version, could you tell me how we change this too, please?

    Thanks,
    Danny

    #1264276

    Hi,

    That is odd. Have you tried removing the existing thumbnails and adding them again from scratch with totally different names?

    Thank you for your patience.

    Best regards,
    Ismael

    #1264201

    Hey Rikard,

    it works, but only on the shop-site, the header of the widgets in the footer are shown in the same font as in the shop (font-family: dubai. The footer headers needs the other font domillion brush. Do you have an idea for this problem? I need this dubai font only in the body of the shop.

    And there is another question. The thumbnail box of related products or products in the shop overview has a little white arrow on the top of the text part into the image. I don’t want this arrow. Do you have a code, how it can be deleted? Link is in the private content.

    Greetings, Sabine

    • This reply was modified 5 years, 3 months ago by TakiwaSoulArt.
    #1264159

    In reply to: Woocommerce Reviwes

    Hey XLeads,

    Please try the following in Quick CSS under Enfold->General Styling:

    .thumbnail_container .rating_container {
        opacity: 1;
    }

    Best regards,
    Rikard

    #1264037

    Hi Ismael,

    Could you please submit this as a bug? I have been turning blog articles to pages by using ALB for years (as recommended a long time ago by Kriesi) and this error never happened. I first noticed it when Yoast changed their Schema and you guys added the SEO deferring to the SEO plugin.

    Something has gone awry. I suggest looking into why there are two “blog” markups created, one is good and without errors and the other one has the errors. This never happened before.

    I would not appreciate having to use another plugin for Schema to replace what the theme should provide by default. Switching to ALB is really wonderful for a blog boost as I can turn it to Evergreen while still remaining on the blog. It worked perfectly with no issues (as that information is still there, I can still see the date, author, and thumbnail) but now it fails. I am sure that you did not design allowing switching to ALB to create a markup issue.

    Besides, Enfold has a pretty large CSS and JS file that impacts LCP (last contentful paint) and no matter how little code I use for the page, these are large files. Adding more plugins is not recommended.

    Thank you.

    Please keep me posted of the fix.

    Havi

    • This reply was modified 5 years, 3 months ago by havi. Reason: Found duplicate markup when checking for more info. Added info to help solve it
    #1263849

    Hi,

    Thank you for the update.

    We adjusted the height values a bit and uploaded an image with 3 different colors but it did not work. Looks like there is an issue with the image cropping option because when we visited an official documentation or article about WP images, the examples are cropped the same way even though they are supposed to show in different crop positions.

    // https://havecamerawilltravel.com/photographer/wordpress-thumbnail-crop/

    UPDATE: We edited the custom_modified_thumb_sizes function and use the add_image_size function instead of modifying the existing thumbnails. It did not work at first because we were trying to modify thumbnails that do not actually exist. (see private field)

    Best regards,
    Ismael

Viewing 30 results - 1,381 through 1,410 (of 10,095 total)