• Resolved Halil ESEN

    (@halilesen)


    Hi I,
    I would like to remind you of the problems that I reported a long time ago and that are still unresolved. Because each one is very important.

    1. The ad slot after the first post does not work properly on desktop. The first post appeared on one line, the ad space appeared on the second line, and the third post appeared on the other line. There was no problem on mobile. this is why I hide the field after the first post in desktop and tablet view.

    2. Images in post previews, ie archive pages, are in their original size. They do not resize for the space they occupy. This causes slow page loads.

    I hope you solve it soon.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter Halil ESEN

    (@halilesen)

    I spoke plural. But it was to actually Ben. ??

    Theme Author Ben Sibley

    (@bensibley)

    Sorry for missing this. I will get that widget area fixed soon for all layouts.

    To optimize the Featured Images, I’m going to recommend using the Optimole plugin.

    Right now, the images use the “Large” size, which is 1024x1024px, and the alternative I have is “Medium,” which is 300x300px. Even with the Double layout, the Featured Images sometimes exceed these dimensions, and since most screens these days are retina/4k, they will be displayed at 2x that resolution. This will result in blurry images and there won’t be a way for users to make them sharper without editing code. On the other hand, I can have Mission News present images that are a bit larger than needed, and this guarantees sharp display and users have the option to optimize the size with a plugin like Optimole – no code needed. Plus, I can only get the image size approximately right, whereas Optimole will serve the perfect image size for each unique visitor and device.

    Thread Starter Halil ESEN

    (@halilesen)

    I installed the https://www.ads-software.com/plugins/optimole-wp/ plugin on your recommendation. Everything seems fine for now.

    But I would like to find a better alternative to this soon. Is it not possible to set this with some code? I’m a little apprehensive about such third-party plugins. But I installed it because you recommended it. ??

    Theme Author Ben Sibley

    (@bensibley)

    I can give you a modification that will work for your site’s settings. This can be coppied and pasted into your child theme’s functions.php file:

    function ct_mission_news_featured_image()
        {
            $blog_display = apply_filters('ct_mission_news_featured_image_display_filter', get_theme_mod('featured_image_blog_archives'));
            $post_display = apply_filters('ct_mission_news_featured_image_display_filter', get_theme_mod('featured_image_posts'));
    
            // don't output on archives or post pages when turned off via Customizer setting
            if (
                ((is_home() || is_archive() || is_search()) && ($blog_display == 'post' || $blog_display == 'no'))
                || (is_singular('post') && ($post_display == 'blog' || $post_display == 'no'))
            ) {
                return;
            }
    
            global $post;
            $featured_image = '';
    
            if (has_post_thumbnail($post->ID)) {
                if (is_singular()) {
                    $featured_image = '<div class="featured-image">' . get_the_post_thumbnail($post->ID, 'full') . '</div>';
                    if (get_theme_mod('featured_image_caption_posts') == 'yes') {
                        $caption = get_post(get_post_thumbnail_id())->post_excerpt;
                        if (!empty($caption)) {
                            $featured_image .= '<div class="caption">' . wp_kses_post($caption) . '</div>';
                        }
                    }
                } else {
                    $link = get_theme_mod('featured_image_link') == 'media' ? get_the_post_thumbnail_url($post->ID) : get_permalink();
                    $featured_image = '<div class="featured-image"><a href="' . esc_url($link) . '">' . esc_html(get_the_title()) . get_the_post_thumbnail($post->ID, 'medium') . '</a></div>';
                }
            }
    
            $featured_image = apply_filters('ct_mission_news_featured_image', $featured_image);
    
            if ($featured_image) {
                echo $featured_image;
            }
        }

    It’s just going to change the size of Featured Images on your archive pages from “large” to “medium.”

    Thread Starter Halil ESEN

    (@halilesen)

    Ok, but this time the images were of poor quality. I deleted the code. Then I decided that Google’s Web Stories widget was slowing down page loads and deleted it. Home page load score doubled.

    I opened a thread on the Jatpack support forum about this: https://www.ads-software.com/support/topic/resizing-images-36/. Maybe it would be possible to customize the features of that plugin.

    Thanks a lot for your help. I am waiting for new updates.

    Also forgot to add. Adding text excerpt in dual layout preview is possible with a single line code change. I’ve wanted this before. Then I did it myself. I think it shouldn’t be hard to set it as default in new updates.

    Kind regards.

    • This reply was modified 2 years, 6 months ago by Halil ESEN.
    Theme Author Ben Sibley

    (@bensibley)

    That was my point earlier. The images can be switched to Medium size, but there will be a loss of quality which is why the Large size is used.

    I’ll have the update with the widget area fix out this week.

    Thread Starter Halil ESEN

    (@halilesen)

    Hi, Ben. After the update, after the first article, the advertising area is not exactly as desired in double layout.

    it is now:

    Requested, example:

    Thread Starter Halil ESEN

    (@halilesen)

    In addition, it appears after the 2nd post on mobile.

    Theme Author Ben Sibley

    (@bensibley)

    Hmm okay let me submit another update this week to move it next to the first post.

    Theme Author Ben Sibley

    (@bensibley)

    The new update is now available.

    Thread Starter Halil ESEN

    (@halilesen)

    Thank you. Everything seems fine.

    Theme Author Ben Sibley

    (@bensibley)

    Great, thanks for letting me know.

    Thread Starter Halil ESEN

    (@halilesen)

    I want to give a feedback. While the ad space is created after the first post on the desktop, it first occurs on the 2nd line, and is added immediately after the first post. This can cause some problems.

    For example, it doesn’t happen all the time, but there is a problem like this:

    Theme Author Ben Sibley

    (@bensibley)

    This is due to the size of the advertisement. Cropping and resizing ads is against the ToS, so they’re output at their original dimensions. Some ad networks have responsive ads, and that will be configured via their dashboard.

    Ads that are 300×300 should fit nicely into the available space if responsive ads aren’t an option.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Unsolved Problems’ is closed to new replies.