Can’t figure out how to get space around an image? [closed]

If for just this image, you can edit that post and in text editing mode you could add something like this around the link to the image: <span style=”float:left;padding:10px;”> …<img>image link here… </span> If you are looking to fix this for any image that is added to posts, you’d need to add a rule similar … Read more

WPML – Change media uploader language

I am french too, but I must answer in English. You need to use wp_localize_script(), that allow to handle localization in js scripts. add_action(‘wp_enqueue_scripts’, ‘load_script’); function load_script(){ wp_register_script( ‘popup’, plugins_url(‘yourscript/js/yourjs.js’), array( ‘jquery’ ), false, true ); wp_localize_script( ‘popup’, ‘popUp’, array( ‘popupTitle’=> __(”, ‘your-text-domain) ) ); wp_enqueue_script(‘popup’); } In the js file, you will able to … Read more

Responsive Images in WordPress

Simplest way of doing this would be using Media query. Just make 2 Divs and assign class/id to them like this <div class=”class-1″> </div> <div class=”class-2″> </div> You need to enclose your both the_post_thumbnail() function inside this div like this <div class=”class-1″> <?php the_post_thumbnail( ‘recent-startpage-post’ ); ?> </div> <div class=”class-2″> <?php the_post_thumbnail( ‘recent-startpage-post-hr’ ); ?> … Read more

Prevent WordPress from creating individual size images

You will get more details if you Google this : add_image_size() Or Reading this https://developer.wordpress.org/reference/functions/add_image_size/ Each theme or plugin can register new image size that are create autmatically when a media (image) is insert in a post or in the media uploader. You can remove them if you want with the function remove_image_size…