Images use & location, on new wordpress theme

use this code and rename index.html to index.php. <img src=”https://wordpress.stackexchange.com/questions/244087/<?php bloginfo(“template_directory’); ?>/img/Logos-crear.png”> <object> <embed src=”https://wordpress.stackexchange.com/questions/244087/<?php bloginfo(“template_directory’); ?>/img/icons/twitter.svg”> that should work fine.no need to change in css code.

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…

Uploaded images not showing properly using wordpress

There is a function called media_sideload_image($file, $post_id, $desc, $return); to download an image from the specified URL and attach it to a post. You can use it. It asked following Parameters. $file : (string) (Required) The URL of the image to download. $post_id : (int) (Required) The post ID the media is to be associated … Read more