M
M
Manimall2018-07-18 14:02:09
WordPress
Manimall, 2018-07-18 14:02:09

Who will tell you how to insert your sprite created through the include tag in wordpress into your theme?

spoiler
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <title><?php bloginfo('description'); ?></title>
</head>
<body>
<div style="display: none">
    <include src="<?php echo bloginfo('template_url');
                  ?>/assets/img/sprite/sprite.svg"></include>
</div>
  
  <div class="info__social social">
          <h2 class="visually-hidden">Мы в социальных сетях</h2>
          <ul class="social__list social__list--header">

            <li class="social__item social__item--header">
              <a class="social__link social__link--fb" href="https://www.facebook.com/ogonek" target="_blank" aria-label="Переход на наш аккаунт в Фейсбуке">Facebook
                <svg xmlns="http://www.w3.org/2000/svg" width="11" height="20" role="img">
                  <use xlink:href="#icon-fb"></use>
                </svg>
              </a>
            </li>

            <li class="social__item social__item--header">
              <a class="social__link social__link--insta" href="https://www.intagram.com/ogonek" target="_blank" aria-label="Переход на наш аккаунт в Интаграмме">Instagram
                <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" role="img">
                  <use xlink:href="#icon-insta"></use>
                </svg>
              </a>
            </li>

            <li class="social__item social__item--header">
              <a class="social__link social__link--vk" href="https://vk.com/ogonek" target="_blank" aria-label="Переход на наш аккаунт в Вконтакте">Вконтакте
                <svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" role="img">
                  <use xlink:href="#icon-vk"></use>
                </svg>
              </a>
            </li>

          </ul>
        </div>
</body>
</html>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question