Accessing different image copy based on which div image is in

So i used my own tweak of to create different copies of the same image to be displayed on different posts.

So lets say i have 2 image div sizes.

a) 100*100 
b) 10*10

So if an image lies in div a. the copy optimized (lies in a directory on the server)for 100*100 div needs to be accessed

For more clarity, say images for a lies in uploads/a/ and for b in /images/b. Any help?

Is it even feasible to do this?


<div class="a">
    <img src="/images/image-100.jpg">

<div class="b">
    <img src="/images/image-10.jpg">

If I got you right, that's what you want! Cheers

Tags: Html / Css / Wordpress

Similar questions

Use remove_action by accessing a class which was initiated under another class - PHP
I have a situation like this in a WordPress plugin - This is the parent class of the plugin - Child class is defined in another file - Now, my goal is to remove_action the action like this - Unfortunately it gives error that it is an undefined function. What am I missing in this case?
Copy Meta Value from one column to another column which have specific meta_key
OK, so I have this question which pertains to posts in wordpress using SQL. Trying to copy the meta_value below: meta_key = cb_video_embed_code_post meta_value = youtube link To every instance where the meta_key is _feature_video but i wanna only change the meta_value. I hope this makes sense - hard to explain with my limited SQL knowledge meta_key...
In which wordpress folder shall I copy an xml file to prevent unauthorized access?
I want to save an xml file which it should be accessed from my first plugin only. In which wordpress folder shall I save it? I use plesk platform and If I remove permission rights of (other) not to READ plugin cannot see the xml If I place it inside wp-admin and logout as admin I can access the URL Shouldnt wp-admin was not accessible?
Center overlay middle div content over bottom of top div and top of bottom div stacked vertically
Let's say I have 3 div elements, wrapped in an article element. It would look something like this: Now, what I'd like to to is have that middle of class "avatar" to center vertically and horizontally between (overlap) the "thumb" and "content" divs. It would look something like this: Avatar centered between two div's As you can see, I'm working wit...
replace div text with another div in div jquery onload
I want to change B text with A text and D text with C text with jquery. I added this script: but it change A text in both main div
Add different class to div depending on which li is clicked
Using Elegant Themes' Divi tabs module. Want to change the background of the containing section depending on which tab is selected. What is happening with the code I've cobbled together is that .pink is being added to the #industryTabs div regardless of which li has the .et_pb_tab_active class on it (see screenshot): So when I click tab 1 the backg...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.