VecomLab
Наш сайтЧат в Telegram
Русский
Русский
  • Добро пожаловать
  • Помощь
  • Прокачай Shopify без кода
    • Shrine Solutions
    • Loox Reviews
  • Настройка темы Shopify
    • Dawn Тема Shopify
      • Dawn Тема Shopify: Как добавить свои иконки соцсетей
      • Dawn Тема Shopify: Как добавить иконки способов оплаты в корзину (Cart Drawer)
      • Dawn Тема Shopify: Как изменить ссылку (Continue shopping)
      • Dawn Тема Shopify: Как добавить видео (Video With Text)
      • Dawn Тема Shopify: Как добавить видео (YouTube Video With Text)
  • Основы Shopify и Facebook
    • Обзор
    • Быстрый старт
    • Дропшиппинг
    • Регистрация бизнеса
    • Открытие счета
    • Криптовалюта
    • Выбор продукта
      • Task #1: Поиск товара
    • Рабочее пространство
      • Task #2: Trello и Google Диск + Доступы
    • Создание магазина
      • Task #3: Favicon & Logo Site & Logo Social & Social sharing image
      • Task #4: Shopify Аккаунт
      • Task #5: Домен
      • Task #6: Корпоративная Почта Yandex
      • Task #7: DSers Аккаунт
      • Task #8: Копирайтинг
      • Task #9: Manage Account
      • Task #10: Settings - Store details
      • Task #11: Settings - Payments
      • Task #12: Settings - Notifications
      • Task #13: Settings - Store languages
      • Task #14: Settings - Checkout
      • Task #15: Settings - Shipping and delivery
      • Task #16: Settings - Policies
      • Task #17: Online Store - Preferences
      • Task #18: Online Store - Navigation
      • Task #19: Online Store - Customize
      • Task #20: Online Store - Discounts
      • Task #21: Online Store - Edit Code
      • Task #22: Products
    • Социальные сети
      • Task #23: Facebook Страница
      • Task #24: Instagram Аккаунт
    • Рекламный аккаунт
      • Task #25: Рекламный Аккаунт Facebook
    • Приложения
      • Task #26: Loox or Judge.me Product Reviews
      • Task #27: Klaviyo
      • Task #28: Tracktor By ShopPad
      • Task #29: Buy Me ‑ Sticky Buy Button
    • Рекламная стратегия
      • Task #30: Подготовка и Запуск Тестовой Рекламной Кампании
    • Управление бизнесом
      • Task #31: Менеджмент
    • Клиентский сервис
      • Task #32: FAQ's and CS Templates
Powered by GitBook
On this page
  • 1. Перейдите в редактор кода
  • 2. Откройте файл image-with-text.liquid в папке sections
  • 3. Откройте файл component-image-with-text.css в папке assets

Was this helpful?

  1. Настройка темы Shopify
  2. Dawn Тема Shopify

Dawn Тема Shopify: Как добавить видео (Video With Text)

Пошаговая инструкция по добавлению видео в блок "Image with Text" в теме Dawn для Shopify с помощью кода — бесплатно и без приложений.

PreviousDawn Тема Shopify: Как изменить ссылку (Continue shopping)NextDawn Тема Shopify: Как добавить видео (YouTube Video With Text)

Last updated 6 days ago

Was this helpful?


Актуально для версии темы Dawn 15.3.0


1. Перейдите в редактор кода

Online Store → Themes → Edit code.

2. Откройте файл image-with-text.liquid в папке sections

Найдите image_picker и вставьте код.

{
  "type": "url",
  "id": "video_url",
  "label": "Video Url"
},
{
  "type": "url",
  "id": "video_image_url",
  "label": "Video Image Url"
},
{
  "type": "checkbox",
  "id": "autoplay",
  "label": "Autoplay if no sound"
},
{
  "type": "checkbox",
  "id": "show_controls",
  "label": "Show Controls"
},
{
  "type": "checkbox",
  "id": "loop_video",
  "label": "Loop Video"
},

Найдите {{ 'detailed-apparel-1' | placeholder_svg_tag: 'placeholder-svg' }} и вставьте код.

{%- elsif section.settings.video_url -%}
  <video {% if section.settings.autoplay %} autoplay muted {% endif %} {% if section.settings.show_controls %} controls {% endif %} {% if section.settings.loop_video %} loop {% endif %} playsinline poster="{{ section.settings.video_image_url }}">
    <source src="{{ section.settings.video_url }}" type="video/mp4">
  </video>

Найдите строку с class="image-with-text__media-item" и замените её.

class="image-with-text__media{% if section.settings.video_url != blank %} image-with-text__video{% endif %} image-with-text__media--{{ section.settings.height }}{% unless remove_color_classes %} gradient color-{{ section.settings.color_scheme }}{% else %} background-transparent{% endunless %}{% if section.settings.image != blank or section.settings.video_url != blank %} global-media-settings{% endif %}{% if section.settings.image != blank %} media{% elsif section.settings.video_url == blank %} image-with-text__media--placeholder placeholder{% endif %}{% if section.settings.image_behavior != 'none' %} animate--{{ section.settings.image_behavior }}{% endif %}"

3. Откройте файл component-image-with-text.css в папке assets

В конец файла вставьте стили.

/*
  Video With Text
*/
.image-with-text__video {
  display: flex;
  align-items: center;
}

.image-with-text__video video {
  width: 100%;
}

Нужна помощь с настройкой? — мы всё сделаем за вас.

Свяжитесь с нами