By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
rocoderesrocoderes
  • Home
  • HTML & CSS
    • Login and Registration Form
    • Card Design
    • Loader
  • JavaScript
  • Python
  • Internet
  • Landing Pages
  • Tools
    • Google Drive Direct Download Link Generator
    • Word Count
  • Games
    • House Painter
Notification Show More
Latest News
How to set the dropdown value by clicking on a table row
Javascript – How to set the dropdown value by clicking on a table row
JavaScript
Attempting to increase the counter, when the object's tag exist
Javascript – Attempting to increase the counter, when the object’s tag exist
JavaScript
Cycle2 JS center active slide
Javascript – Cycle2 JS center active slide
JavaScript
Can import all THREE.js post processing modules as ES6 modules except OutputPass
Javascript – Can import all THREE.js post processing modules as ES6 modules except OutputPass
JavaScript
How to return closest match for an array in Google Sheets Appscript
Javascript – How to return closest match for an array in Google Sheets Appscript
JavaScript
Aa
Aa
rocoderesrocoderes
Search
  • Home
  • HTML & CSS
    • Login and Registration Form
    • Card Design
    • Loader
  • JavaScript
  • Python
  • Internet
  • Landing Pages
  • Tools
    • Google Drive Direct Download Link Generator
    • Word Count
  • Games
    • House Painter
Follow US
High Quality Design Resources for Free.
rocoderes > JavaScript > Javascript – I need to add social media images in the html string I have in the footer of my site done with js [closed]
JavaScript

Javascript – I need to add social media images in the html string I have in the footer of my site done with js [closed]

Admin
Last updated: 2023/12/19 at 5:33 PM
Admin
Share
2 Min Read
I need to add social media images in the html string I have in the footer of my site done with js [closed]

Problem:

Closed. This question needs debugging details. It is not currently accepting answers.


Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.

Contents
Problem:Solution:

Closed 2 months ago.


Improve this question

I have a website with a footer done with javascript (so it appears in every html page) and I cannot add the social media images, because the images I have in the folder “images” cannot be tracked.
When I write img src=”” Visual Studio just doesn’t track any route. How can I fix it?

I tried using flaticon and FontAwesomedirectly but I have no idea of how to do that without downloading the images, I have to register for that, right?

Solution:

Try writing “./” inside src it may suggest folder path where image is located. if not then there is no path u may not have any folder. P.S : make sure the folder is inside the main folder where u have written index.html file.

If you prefer to use online resources like Font Awesome or Flaticon for your social media icons, you don’t need to download the images. you can use Font Awesome icons, for example:

a. Include the Font Awesome CSS in the section of your HTML:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css">

b. Use Font Awesome icons in your footer:

<i class="fab fa-facebook"></i> <!-- Facebook icon -->
<i class="fab fa-twitter"></i>  <!-- Twitter icon -->
<!-- and so on... -->

For Font Awesome, you don’t need to download the icons individually. You reference them by their class names.

Related

Subscribe to Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

Share this Article
Facebook Twitter Email Print
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Tron fee estimation bofore confirming transaction Javascript – Tron fee estimation bofore confirming transaction
Next Article Not able to POST http://localhost:5000/api/createuser Javascript – Not able to POST http://localhost:5000/api/createuser
Leave a comment Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

- Advertisement -

You Might Also Like

How to set the dropdown value by clicking on a table row

Javascript – How to set the dropdown value by clicking on a table row

February 11, 2024
Attempting to increase the counter, when the object's tag exist

Javascript – Attempting to increase the counter, when the object’s tag exist

February 11, 2024
Cycle2 JS center active slide

Javascript – Cycle2 JS center active slide

February 10, 2024
Can import all THREE.js post processing modules as ES6 modules except OutputPass

Javascript – Can import all THREE.js post processing modules as ES6 modules except OutputPass

February 10, 2024
rocoderesrocoderes
Follow US

Copyright © 2022 All Right Reserved By Rocoderes

  • Home
  • About us
  • Contact us
  • Disclaimer
Join Us!

Subscribe to our newsletter and never miss our latest news, podcasts etc.

Zero spam, Unsubscribe at any time.
Welcome Back!

Sign in to your account

Lost your password?