Viewing 30 results - 1,891 through 1,920 (of 10,095 total)
  • Author
    Search Results
  • #1177635

    I found a solution how to get a result (nearly) the way we want it. How to cover an image with any original size and aspect ratio to the same big image preview size:
    – big image with thumbnail below
    – Gallery Big Preview Image Size: No Scaling
    – Force same size for all big preview images? Yes

    Set the height you need for your gallery in QuickCSS:

    @media only screen and (min-width: 990px) {
    #top div .avia-gallery .avia-gallery-big img {
    height: 697px !important;
    object-fit: cover;
    }}
    @media only screen and (max-width: 989px) {
    #top div .avia-gallery .avia-gallery-big img {
    height: 350px !important;
    object-fit: cover;
    }}

    Hi Nikko,

    great, this is what I needed :)
    Only one little thing is not correct, you need to change in magazin.php

    if($image) $output .="<a href='{$link}' {$titleAttr} class='av-magazine-thumbnail-link '>{$image}</a>";

    to

    if($image) $output .="<a href='{$link}' {$titleAttr} data-title='{$image_alt}' class='av-magazine-thumbnail-link '>{$image}</a>";

    for the right output.

    Thank you so mutch for your help, great service!
    Best regards
    Mike

    • This reply was modified 6 years, 2 months ago by Mike61.

    Hi Mike61,

    Thanks for providing the screenshot, it’s pretty clear to me now.
    Can we use data-title instead? so the code you should using for CSS is:

    content: attr(data-title);

    Edit postslider.php and find this code (line 699 in Enfold 4.7.2):

    $output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : '';

    replace with:

    $image_alt = get_post_meta(get_post_thumbnail_id($the_id), '_wp_attachment_image_alt', TRUE);
    $output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title='' data-title='{$image_alt}'>{$thumbnail}</a>" : '';

    Edit magazine.php and find this code (line 1057 in Enfold 4.7.2):

    $title = "<a href='{$link}' {$titleAttr}>". apply_filters( 'avf_magazine_title', get_the_title( $entry->ID ), $entry ) . '</a>';

    replace with:

    $image_alt = get_post_meta(get_post_thumbnail_id($entry->ID), '_wp_attachment_image_alt', TRUE);
    $title = "<a href='{$link}' {$titleAttr} data-title='{$image_alt}'>". apply_filters( 'avf_magazine_title', get_the_title( $entry->ID ), $entry ) . '</a>';

    Hope this helps :)

    Best regards,
    Nikko

    Hi Mike,

    I’m not sure I understand it well.
    The codes I gave at the beginning apply to a.slide-image for Blog element and a.av-magazine-thumbnail-link for Magazine element.
    After reviewing our discussion you mentioned mediathek but I think I misunderstood that, can you give a screenshot for that?

    Best regards,
    Nikko

    Hi Nikko,
    I am so sorry, but I don’t want applied the attr to the image, I want applied the title of the image (post thumbnail)
    as title to the postlink. So I can use…

    Blog element:

    .avia-content-slider a.slide-image:after {
        content: attr(title);
        font-size: 11px;
    }

    Magazin element:

    .av-magazine a.av-magazine-thumbnail-link:after {
        content: attr(title);
        font-size: 11px;
    }

    This will show the content of the image title (set in mediathek) for the link tag title of the post.
    I need this to show the image licensing below the image. (See link in private conent)

    Thank you again and best regards
    Mike

    Hi Mike,

    No worries, I see you want it applied to the image.
    Just remove the modification I suggested then in the child theme edit postslider.php and find this code (line 619 in Enfold 4.7.2):

    $thumbnail  = get_the_post_thumbnail( $the_id, $image_size );

    replace with:

    $thumbnail  = get_the_post_thumbnail( $the_id, $image_size, array('title' => $entry->post_title) );

    In magazine.php and find this code (line 1054 in Enfold 4.7.2):

    $image = get_the_post_thumbnail( $entry->ID, $this->atts['image_size'][$style] );

    replace with:

    $image = get_the_post_thumbnail( $entry->ID, $this->atts['image_size'][$style], array('title' => $entry->post_title) );

    Best regards,
    Nikko

    Hi Nikko,
    thank you for your help! This will work but it is not what I mean – sorry, my fail.

    I need the title of the thumbnail (mediathek) as attr of the postlink:
    a.slide-image -> Blog element
    a.av-magazine-thumbnail-link -> Magazin element

    Hope you can help again.

    Thank you and best regards
    Mike

    • This reply was modified 6 years, 2 months ago by Mike61.
    #1177116
    Jan
    Participant

    I don’t understand the behavior of the aspect ratio values in the gallery with »big image with thumbnail below«. We made two galleries with the same parameters:
    – Gallery Big Preview Image Size: Gallery (854×684)
    – Force same size for all big preview images? Yes
    – Gallery Preview Image Size: Square (180×180)
    – Thumbnail Columns: 5
    Can you please explain the behavior of the aspect ratio of the big image:
    – 1st image: original size 1350 × 900 = 3:2 / in browser: 687 x 687 = 1:1
    – 2nd image: original size 1500 x 1000 = 3:2 / in browser: 687 x 556 = ? (not 1:1 and not 3:2)
    And if we change the gallery big preview image size to a square aspect ratio (e.g. Masonry (705×705)), both pictures are not displayed 1:1 in the browser, but landscape format. I don’t understand that behavior at all.
    What we want to see is a 1:1 aspect ratio of the big preview image independently of the original image size and aspect ratio. Is that possible?
    Thank you, Jan

    Hi Mike,

    You’ll need to override the Blog and Magazine Element.
    Please do the preparatory stuff that is written in our document: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb
    After doing that, (from the Enfold theme, location: enfold > config-templatebuilder > avia-shortcodes folder) copy both magazine and postslider folder and paste it in the shortcodes folder of the child theme.
    Then in the child theme edit postslider.php and find this code (line 699 in Enfold 4.7.2):

    $output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : '';

    replace with:

    $output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title='{$title}'>{$thumbnail}</a>" : '';

    Then again, in the child theme edit magazine.php and find this code (line 1056 in Enfold 4.7.2):

    $titleAttr = "title='".__( 'Link to:','avia_framework' )." ".the_title_attribute(array('echo' => 0, 'post' => $entry->ID)) . "'";

    replace with:

    $titleAttr = "title='".the_title_attribute(array('echo' => 0, 'post' => $entry->ID)) . "'";

    Hope this helps.

    Best regards,
    Nikko

    #1177020

    ok thank you.
    if I want to add thumbnails under the large image where do I do this, see example?
    https://kriesi.at/themes/enfold-2017/portfolio/portfolio-4-columns-centered-ajax/#toggle-id-1-closed

    • This reply was modified 6 years, 2 months ago by karel.
    #1176913
    Pivou
    Participant

    Are these hover-settings: https://kriesi.at/themes/enfold-2017/portfolio/masonry-portfolio-example-4-column-masonry-grid/
    supported by the “portfolio grid”, too ? I was unable to find the settings.

    #1176874

    Thank you Ismael, it works flawlessly.

    For those who want to know the solution, you just need to add the following code to the functions.php file:

    function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta){
        $link = wp_get_attachment_image_src($attachment->ID, "full");
        return $link;
    }
    add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);

    Thank you very much – it is fixed after all, apologies, for wasting your time…
    I do have another query – is there a simple way of making the thumbnail in a widget area larger? The thumbnails on the links to the blogs using the latest news widget are really small and have a white border around them.

    Thank you

    #1176627

    Hi,

    Thank you for the update.

    The large thumbnail is the default image size use in the lightbox container. If you want to adjust it, use the avf_avia_builder_gallery_image_link filter as described in the following thread.

    // https://kriesi.at/support/topic/thumbnail-size-in-galleries-2/#post-1142492

    The filter will replace large with full or the original image.

    Best regards,
    Ismael

    #1176220

    Hey Victoria,

    So you are saying that clicking on the gallery thumbnail will display the large thumbnail (1030px wide) instead of the full-size image? Why though? It doesn’t make sense. Go to any website and you will see that clicking on a thumbnail displays the full image. Say you are shopping online and you see the thumbnails of the product. Wouldn’t you want to see as many details as possible when clicking on an image?

    How can I change this behavior? It is kind of annoying because this was working properly time ago. Some update changed this; I’m not sure which one.

    Thank you,

    #1176023

    Hey Mike, thanks for answering.

    You are right, it’s not a horizontal gallery, but a regular gallery.

    Anyway, the issue is still there. For some reason, some images load the large thumbnail (1030px wide). For example, these ones: https://i.imgur.com/WhQg5BC.jpg
    Or if you change the language to Catalan, all of them will load the large thumbnail.

    Why is that?

    #1175823

    Hey blancocapell,
    Thank you for the link, but this seems to be a regular gallery and not a “horizontal gallery” element. I have checked your gallery images in the lightbox and they are opening the original images such as /IMG_1068.jpg where the thumbnails are like these /IMG_1068-260x185.jpg
    Perhaps you thought it was a thumbnail because the image was contained in the viewable area of the lightbox?
    To extend it you could try this css:

    img.mfp-img,.mfp-image-holder .mfp-content {
        width: 100% !important; 
        height: 100% !important; 
        max-height: 100% !important;
    }

    But the “horizontal gallery” element doesn’t open in a lightbox, the image is only enlarged within the container.

    Best regards,
    Mike

    #1175488
    AmelC
    Participant

    Hello,

    I have just purchased and successfully installed and imported theme demos, everything seems to be working just as expected, however I do have a question regarding the “gallery-element” layout. As far as I have noticed it now the “gallery-element” differs a bit from the “portfolio-element” in term of that “gallery-element” do not support category or/and tags as the “portfolio-element” does and the “gallery-element” also can not have the same layout as the “portfolio-element” means the thumbnails that fills the entire screen..

    So question is can we implement 2 things in “gallery-element”

    1. TAG/CATEGORY support so we can filter the images, means we need tags on the images it self
    2. allow us to have same layout on the “gallery-element” as the “portfolio-element” do have it”

    I am asking this because “portfolio-element” have tags/categories and also a nice layout BUT it is a hassle to add the images via portfolio-element as we need to create a portfolio items for each image we want to display while the gallery-element is much more practical for the usage as we simply drag a set of images and uploads them in no time and it´s done..

    Please let me know if you understand what I am looking for, if not I will provide you an access to my web page which is now protected with password as it is still under construction, will send it as a private message in case you need it..

    Thank you
    Best regards
    Amel

    #1175400
    ArturBala
    Participant

    Hi,

    in Enfold we got the following media elements: single Image with Hotspots AND we got a gallery to add Images.
    My question is:
    Is there a way to add images with Hotspots to a gallery?
    So that in the end we see a big Image and thumbnails below (but the images are with hotspots)
    Is something like this possible in Enfold?

    #1175380
    blancocapell
    Participant

    Hi,

    I understand from this answer that now the images of the horizontal gallery open the large size on the lightbox. This wasn’t the case in the past if I’m not mistaken… And I think it doesn’t make sense to open a thumbnail on the lightbox. The thumbnail should be displayed when opening a page, to speed up the loading time, but when a user clicks on the lightbox, they want to see the original picture.

    How can I change that behaviour so the lightbox opens the full size of the image?

    #1175145

    Dear Mike,

    I realized one more thing here.
    Your modification works on a gallery, if it is shown with ‘small thumbnails’
    Like here on the top: https://www.chironkft.net/portfolio-item/munka6-2/

    But if it is shown with one big image and the rest is shown via lightbox, then it is not working on the big image. See here:
    https://www.chironkft.net/portfolio-item/proba/
    There comes the fading effect again (plus the red circle).
    Is it possible to change this to the zoom effect also?

    Thanks

    András

    #1174890

    In reply to: Thumbnail image size

    Hi,

    Thank you for the update.

    Try to install the Simple Image Sizes plugin, go to the Settings > Media panel, look for and adjust the size of the “entry_width_sidebar” thumbnail, save or update, then regenerate the thumbnails. If you don’t want to regenerate the media library, just upload the featured image again to see the changes.

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

    Best regards,
    Ismael

    #1173837

    Hi,

    Yes, the Simple Image Sizes plugin is still compatible with the latest version of WordPress and the theme. After the activation, go to the Settings > Media panel to see the list of registered of thumbnails. And to disable the thumbnails, set their width and height to 0, then look for the Thumbnail regeneration section and tick off the checkbox of the thumbnails that you don’t want to use. Save changes, then regenerate the thumbnails.

    Best regards,
    Ismael

    #1173608

    Hi,

    I see what you mean, the point is the WP is generating the thumbnails at 80x80px, that is why I cannot understand why they do not look clear if I use 80x80px size.

    2020-01-14_1756

    Marc

    #1173586

    Hi Marco,

    Yes, I looked at your code, it just makes the images displayed at a bigger size, but the images are 80px size and they are already blurred and so the widget needs to use a bigger image size to show ok at 80px or the thumbs at 80px have to be of better quality.

    http://www.wpbeginner.com/wp-tutorials/how-to-increase-or-decrease-wordpress-jpeg-image-compression/
    https://havecamerawilltravel.com/photographer/wordpress-resize-thumbnails/

    Best regards,
    Victoria

    #1173429

    Hi,

    And if spend 3 hours to identify all the images that are actually used, how to delete all the other ones?

    To delete the thumbnails, you can either use the remove_image_size function.

    // https://developer.wordpress.org/reference/functions/remove_image_size/

    Or use the Simple Image Sizes plugin as described in the following thread.

    // https://kriesi.at/support/topic/photos-taking-up-a-huge-amount-of-space-on-my-site-storage-anything-i-can-do/#post-1055362

    Don’t forget to regenerate the images after disabling the thumbnails.

    Best regards,
    Ismael

    #1173347
    LizSomerville
    Participant

    Good afternoon.

    I am trying to create a list of specific blog posts for my news page – I would like the thumbnail image to be displayed on the right alongside the text rather than in the centre above it. Please could you let me know if there is a way of doing this? I am using small author, small preview pic.
    Link to page is below.

    Many thanks.

    #1173243

    Topic: Enfold 4.7.1 problems

    in forum Enfold
    mike.rav
    Participant

    Hi,

    After updating to Enfold 4.7.1, the below 2 issues were noticed so far:

    Timeline:
    =======
    wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/timeline/timeline.php
    if( !rray_key_exists( ‘font-size’, $this->title_styling ) ) -> Syntax error

    Magazine
    ========
    Display Thumbnails?
    If the box is unchecked, the thumbnails is still visible in the page.

    thank you

    #1173195

    Hi,

    @edgold: Are you using an extension or plugin for the images? The URL of the featured images look a bit different and the appended query is probably being used by a certain script to load a different image instead of the selected thumbnail. (see private field)

    Best regards,
    Ismael

    #1173064
    Jason
    Participant

    hi there,
    like what has been done for the portfolio grid – I’d like to create the same effect for blog posts (if possible).
    portfolio grid with text overlay
    i'd like to do the same for blog posts
    instead of displaying the title under the featured/thumbnail image, i’d like it to display it on hover, overlaid on top of the thumbnail image.
    any advice of which files to look for/edit?
    many thanks,
    Jason

Viewing 30 results - 1,891 through 1,920 (of 10,095 total)