How to share single image post on facebook in basic HTML? - html

I have an Image Gallery with 16 images in basic HTML.
When a user clicks on an image, the image will pop up. Nothing else.
I added Facebook, Twitter and Google+ icons on every image, but is it possible to share every single image on Facebook?
I am only able to share the website link, but I want to share those 16 images separately on Facebook.
So when a user clicks on an image to share to Facebook, then only this image will be shared, not the other 15 images.
Please give me some ideas.
I have been struggling with this the last few days.
Thanks in advance.

Use the share button social plugin and make it specific to each image (see https://developers.facebook.com/docs/plugins/share-button/ ). Be sure to read the section titled "Can I use the Share Dialog without using the Share Button?"

Related

How Do I identify the background image of this site? I am cloning a site for Wordpress

I am cloning https://www.sovereignselfdefense.com per request from the owner. To create a Wordpress site. The site that is currently up is a Kajabi site. I have downloaded all images from the Kajabi site by simply right clicking the site and clicking download. I made the Wordpress theme and the images that did not download (shown with arrows) display fine in the custom wordpress theme.
All images, except these images in the CTA (for example, the gentleman with his arms out) are downloaded.
The client is transferring from Kajabi to Wordpress. I am afraid that the cloned wordpress theme is getting these images from the Kajabi site and, when said site is taken down, that I wouldn't be able to get these images. The Wordpress theme works, and displays these images for now.
I used Google Chrome Inspect Elements to try to find what this image is, and how this image is displaying. I am confused.
I'm requesting some tips on how to identify how the site loads these images in the CTA, so I can download them and link the wordpress theme's html accordingly. If someone could teach me how to identify one image, I believe I will be able to identify the rest of the images. Thank you for helping out.
In the inspect you can see the html code there is style expand it and you can access the background image's URL.I have just highlighted in the images.
They have attached a style block before the parent div of any container which has a background image just expand that style tag and get the image.
Image-1:
Image-2:
Image-3:
Image-1: https://kajabi-storefronts-production.kajabi-cdn.com/kajabi-storefronts-production/themes/2031124/settings_images/tzJ4ad46RcSJinm7qbnO_Edited-image.png
Image-2: https://kajabi-storefronts-production.kajabi-cdn.com/kajabi-storefronts-production/themes/2031124/settings_images/qqHvByszR1iu2rvfEQwg_defending2.jpg
Image-3: https://kajabi-storefronts-production.kajabi-cdn.com/kajabi-storefronts-production/themes/2031124/settings_images/AWzmDDsWTlKOdoWPatUA_SovereignSelfDefenseBrandingPhotography-59.jpg
By clicking the image if you can drag it directly to your desktop that means that image is used by
<img src="">
tag in the code. Either it's used through css.
For your code please check the css file and you will get the image use as "background-image:url()" or you can check through inspect element section by section.
If you are using Google chrome then you can download and install this cool extension.
I'm a Gentleman
Here is the description from that link.
Easily save images with a click, gestures or the extension button.
Save images with one click by using the alt + click hotkey (holding the alt key and clicking the image).
Or save images by dragging them (drag the image slightly on any direction).
Download every image on the page by using the extension button (green button on the top right).
Note: The images are downloaded in the default directory for downloads of Chrome.
Installation Note: After installing, Chrome doesn't add any extensions to the currently opened tabs (so, you have to reload the tabs that were opened before the extension was installed to work it to work on them).
Also, you can inspect the page. below is the step on how to access inspect Element.
Right-click anywhere on the webpage, and at the very bottom of the menu that pops up, you will see "Inspect." Click that.
Click the hamburger menu (the icon with 3 stacked dots) on the far
right of your Google Chrome toolbar, click More Tools, then select
Developer Tools.
Now if you want to find out the image you can simply find it by clicking CTRL+F and type like .png or .jpg any other extension that you want to find.
Here is the example.
You can click right click then click save image as and when you are saving it.under the name you will find the type.
Some websites make it almost impossible to get the image. I remember trying to save a background theme image from the old gmail.
If you find yourself in that situation, open the Developer Tools, go to Network, filter by Images then sort by Size descending, so you get the biggest image to be the first one, then hover over each file to find your image.
You want to sort by the file size, because most of the times, the big background images are the largest in size.
Just checked out your website out..
Image 1
You can find this right below the line where the section id is 1574286919067
Image 2
Similar to the first image, this is under the section 1589827030126
Image 3
Once again, under section 1589828889742
Hopes this helps you out.. Let me know if you want to have anymore queries about the same.
The images itself:
-> Image 1: https://kajabi-storefronts-production.kajabi-cdn.com/kajabi-storefronts-production/themes/2031124/settings_images/tzJ4ad46RcSJinm7qbnO_Edited-image.png
-> Image 2: https://kajabi-storefronts-production.kajabi-cdn.com/kajabi-storefronts-production/themes/2031124/settings_images/qqHvByszR1iu2rvfEQwg_defending2.jpg
-> Image 3: https://kajabi-storefronts-production.kajabi-cdn.com/kajabi-storefronts-production/themes/2031124/settings_images/AWzmDDsWTlKOdoWPatUA_SovereignSelfDefenseBrandingPhotography-59.jpg

How to put an image that is already in-browser into a form

I want to let my users add an image to a form, similar to how they might upload an image from their browser, but I want them to be able to choose an image that is already in the browser on the page that I delivered to them.
Is this possible?
Show a modal that has a gallery of images and let them choose one of them, on clicking save collect the index/unique id of the image and save the form.
Something like this could help you https://stackoverflow.com/a/35543772

html/css How can I show the clicked photo in a gallery at the top of the page?

I want to make 1 html page a gallery for my website. Instead of making a page for the title and description of every picture, I would like to show the information of the last clicked image above the gallery. (pics of video game items and how/where to obtain them, to be specific)
Basically when you go to the website, you will see a blank image spot, a description that says "click one below" and a gallery below. Once an image is clicked, it scrolls you back to the top and changes the blank image spot and description to the relevant picture.
This would save me from creating 100+ pages for each dedicated item and description, without clogging 1 page with TONS of information. Thanks
(preferably with only html/css because that's all I know, but a simple copy pasta of something else would help as well)

Tie tracking clicks link to a href syntax and image

I need help with this scenario:
I have a tracking clicks link (provided by someone / mandatory) that I
want to tie it to a clickable image so that, when visitors click on
that image, they will enter another page of the website and all clicks
traffic be taken in consideration by that tracking link.
I'm a complete noob and I want to know if that is possible and how (some example) with HTML / java or anything else.
Thank you in advance.

Entire image link with a section of the image mapped elsewhere

When you link an entire image like in the HTML code below, can you still use image mapping to link a specific area on that image to a different address than what would be specified in the code below. For example, I have an image here: http://joshuamcauley.zxq.net/products/gloves/FBG2.png that when the user clicks on it a pop-up box appears with more information about the product. I was wondering if I used an image mapping program, can I make the Buy Now area add the product to the shopping cart or would the general link of the entire image over-ride this?
HTML
<img src="#">
What you are trying to do can be achieved by the html's map tag, so that you can map a particular section of the image to a specific href/perform different tasks.
Tutorial-HTML Map may be helpful to you on this.
Hope this is what you are looking for.