Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Replace the icons with my own pictures #49

Open
horangiinc opened this issue Feb 10, 2019 · 3 comments
Open

Replace the icons with my own pictures #49

horangiinc opened this issue Feb 10, 2019 · 3 comments

Comments

@horangiinc
Copy link

I want use some pictures instead of the fa-icons at service section.
can I make it?
Would you like to teach me how to do it?

@MatthewMcD
Copy link

You can do this:

  1. First make a copy of the services.html partial and put it in your own partials directory for your site (this will override the rendering from the theme).
  2. Change the icon variables to your image URLs in config.toml.
  3. Change the line:
    <i class="fa-4x {{ .icon }} wow bounceIn text-primary"></i>
    
    to an <img> tag and then drop in the variable for the src attribute.
  4. Rebuild your site and test the results. Fix up your html as needed.

@horangiinc
Copy link
Author

horangiinc commented Mar 17, 2019 via email

@MatthewMcD
Copy link

You have to change it to an image tag and then reference the src as the icon param. If you don't understand html and go this may be a bit difficult.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants