Speed Up Website With High Resolution Images

Thanks. i found a way to fix it. I created two sets of image, and placed them on different servers, CDN to be precise. I had a small sized image, to display in the list of all product catalog, and i had a large image display, for the each product information. Thanks for your comment.

Show (print) featured image all dimensions (height, width)

Add this function to your functions.php file: function show($size = NULL) { global $post; $post_thumbnail_id = get_post_thumbnail_id( $post->ID ); if(isset($size)){ $image_data_array = wp_get_attachment_image_src($post_thumbnail_id,$size); }else{ $image_data_array = wp_get_attachment_image_src($post_thumbnail_id);//Default value: ‘thumbnail’ } echo $image_data_array[1].”x”.$image_data_array[2];//here you can add more chars of strings if you want } and use it like this: <a class=”classname” href=”https://wordpress.stackexchange.com/questions/256604/<?php the_post_thumbnail_url(“full’ ); ?>”>Full Image … Read more

Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?

Sorry, what you’re looking for is not an standard WordPress feature. It might interfere with the theme, which could be built to already include a link to the featured image. That would lead to invalid html. So you’ll have to build this yourself using the admin_post_thumbnail_html hook, which allows you to add fields to the … Read more

remove enclosure url from feed

You can look if your posts have any assigned enclosure meta keys, that could trigger the rss_enclosure() core function to print the <enclosure> tag. Otherwise you can try this demo plugin: <?php /** Plugin Name: Remove RSS Enclosure **/ add_filter( ‘rss_enclosure’, ‘__return_empty_string’ ); It looks like you’ve a plugin that’s adding the <media:content> tag, e.g. … Read more

How to set a Background image in WordPress?

The way I see, you have 3 options: You can achieve that with CSS. Just target the div you want to put the background in. Target it in a way that only shows at the home of the site (check the ID and class of the body div, it usually has names like ‘home-template’ and … Read more