Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Добавляем рекламный блок ссылок в строку Latest News

В данной статье расскажу вам как добавить рекламный блок ссылок в строчку последних новостей, как показано на скриншоте. В качестве примера был взял блок ссылок от Google.

Для начала нам нужно найти шаблон этой самой строки Latest News.
Заходим в: Админцентр ≫ Внешний вид ≫ Ваш шаблон ≫ Board Index ≫ hookLatestNews

Находим:

</div>
</div>
<script type='text/javascript'>


И выше вставляем наш код с блоком ссылок.

После этого нужно задать отступ блока от любого края, что-бы блок не накладывался на ротацию последних новостей, для этого заключаем блок ссылок в теги <span> и задаём параметры отступа, в качестве примера:

<span style='margin-left: 49%;'>


Этот код задаёт отступ от левого края на 49%. Вы можете прописать отступ больше или меньше, по вашему случаю. 

© Respected (ipbmafia.ru)

User Feedback

Recommended Comments

Комментариев пока нет

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Добавить комментарий...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.