Problem with loading images from child theme CSS file with relevant path

There’s no need for the wp-content/themes path – both themes sit in the same directory, so you can just traverse up one and then back down to child theme: background-image: url(../child-theme-name/images/some-image.png); Update: Regarding your answer to “where is the CSS file stored”, you inferred that the stylesheet resides in the child theme folder – in … Read more

Bulk image rotation

Yes, this is a known problem between ios devices and WordPress. It’s a real issue due to the high numbers of iPhone/ipad users who also use WordPress, and I’m surprised it hasn’t been addressed in the WordPress core. Looks like it’s still being debated/ worked on here. It’s a question that’s been asked before here. … Read more

Add a new data attribute in tag

I found the solution to add that attribute to the img tag with this function: add_filter(‘the_content’,’new_content’); function new_content($content) { $content = str_replace(‘<img’,'<img data-qazy=”true”‘, $content); return $content; }

Frontend Post – Allow Only Image File Upload

You can check mime type of uploaded image before upload to media. Add mimeTypes in $allowmimeType which you want to allow. then check uploaded files mimetype $fileMimeType. If not found in allowed mimetype then return false. // Insert Attachment function insert_attachment($file_handler, $post_id, $setthumb=’false’) { if ($_FILES[$file_handler][‘error’] !== UPLOAD_ERR_OK){ return __return_false(); } # uploaded file type … Read more

Best option for photo/gallery handling?

You can keep your whole site together, i.e. texts and images, the main suggestion: just don’t mix up large image/galleries with your text stream, this will indeed slow down your site loading. While most bloggers want display their pictures at any cost, most visitors just want read a specific text, then this approach become annoying … Read more