Image behind the post’s title

The image you are referring to is set via your themes style.css file and not via the WordPress admin or in your theme options. You can find the file here: http://promisingcoins.com/wp-content/themes/structural/style.css Here is the CSS that is used for this section (line #1305): .breadcrumb { background: url(images/breadcrumb.png); position: relative; text-align: center; padding: 60px 0px; margin-top: … Read more

Add “Featured Image” box in my plugin post page

You can add that featured image metabox you’ve circled to your custom post type by doing: register_post_type( ‘yourCPTslug’, [ //… ‘supports’ => [‘title’, ‘editor’, ‘thumbnail’] // note: thumbnail ] ); add_action( ‘after_setup_theme’, function () { add_theme_support( ‘post-thumbnails’ , [‘yourCPTslug’] ); }); As for a single function calling it in a position where you want it … Read more

Adding srcset to an image in ajax

wp_get_attachment_image_srcset is the key here: wp_get_attachment_image_srcset( int $attachment_id, array|string $size=”medium”, array $image_meta = null ) I believe the missing information you lack, is that post thumbnails are actually an attachment ID. In combination with get_post_thumbnail_id you should be able to generate srcset values. But also keep in mind that while googling, every question I found … Read more

I’m unable to call img path using single quotes in an array?

You’re trying to use PHP tags while inside a string: ‘<img src=”https://wordpress.stackexchange.com/questions/302344/<?php bloginfo(“template_directory’); ?>/images/social/facebook-share.png” />’ You need to instead use concatenation: ‘<img src=”‘ . esc_url( get_bloginfo(‘template_directory’) ) . ‘/images/social/facebook-share.png” />’ Or my personal favorite, sprintf(): sprintf( ‘<img src=”https://wordpress.stackexchange.com/questions/302344/%1$s/images/social/facebook-share.png” />’, esc_url( get_bloginfo(‘template_directory’) ) );

Cropped image file size larger than original, is it normal?

Yes, this is normal, given how ImageMagick, the PHP image editor WP uses by default, resizes images. Actually, it first expands the image and then scales it back again, sticking to its own resizing quality settings, not the one of the source image. So, if you have a low quality image (say, 93.8 kb at … Read more

Errors and warning with padlock sign when site moved to SSL

As mentioned in the other answer, that’s because the URL for the image is http, not https, so you get a ‘mixed content’ message from the browser. Equivalent to “You are on an https connection, but one of the images you got came from a http connection. That means that that image is not being … Read more