Архив рубрики: Публикации

Best gallery for WordPress

If you also wonder why most of the galleries for WordPress are so ugly, inconvenient and expensive, and you want to find the best free gallery for posting your photos, videos or portfolio in a minimalistic and convenient format with the ability to align photos by width or height (justify gallery), flipping images, do not have silly restrictions on the number of galleries and photos… then you have come to the right place. As an artist, I’ve been thinking about making my own website with my artwork for a long time. I’ve been making sites on wordpress for quite some time now, but I had no idea that finding the right gallery would be so difficult. 

Читать →

Best plugin for youtube output in WordPress – Youtube Channel Gallery

Long searched for a suitable plugin to display video from youtube on the site with the engine WordPress. There are a lot of options. And most of them are paid. Prices range from $10 to $200, and the quality and capabilities of plugins are often very poor.

 

As a result, I found a FREE plugin for video output 🙂 Saving your time, it’s called Youtube Channel Gallery by Javier Gomez Pose.

 

This plugin can output video from multiple channels. Its functionality is wider than that of similar plugins.

 

How to use it:

  1. install the plugin
  2. add anywhere via “text” a construction of the form

    [Youtube_Channel_Gallery user="googledevelopers" key="your_Google_API_key" maxitems="16" thumb_columns_tablets="4" title="1"]

where in the user field insert the id of your channel, and in the key field insert the API goolge key (taken here). There are also a bunch of other output options, details in the description of the plugin in wordpress repository.

 

You can add as many constructs as you want, i.e. output as many channels as you want.


How to add Google Adsense in WordPress child theme

To insert ads into a child theme on an Adsense site: add the following code to function.php:

////////////////////////

///Google AdSense:

//

add_action('wp_head', 'wpse_43672_wp_head');

function wpse_43672_wp_head(){

    //Close PHP tags 

    ?>

<script data-ad-client="ca-pub-<publisher-numberic-code>" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

    <?php //Open PHP tags

}

////////////////////////

Don’t forget to replace the publisher’s numeric code (also removing the angle brackets around it).

p.s.

But in general it is more convenient to insert this code through a wordpress widget 🙂


Как вставить Google Adsense в дочернюю тему WordPress

Чтобы вставить на сайт Adsense рекламу в дочернюю тему: в function.php добавляем следующий код:

////////////////////////

///Google AdSense:

//

add_action('wp_head', 'wpse_43672_wp_head');

function wpse_43672_wp_head(){

    //Close PHP tags 

    ?>

<script data-ad-client="ca-pub-<цифровой код издателя>" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

    <?php //Open PHP tags

}

////////////////////////

Не забудьте заменить цифровой код издателя (убрав угловые скобки).

p.s.

Но вообще удобнее вставлять этот код через виджет 🙂


Linux Mint 21.1 «Vera»: Стабильность, традиции и свежий взгляд

Linux Mint 21.1 «Vera», выпущенный в конце 2023 года, представляет собой долгосрочный релиз (LTS), который будет поддерживаться до 2027 года. Эта версия дистрибутива основана на Ubuntu 22.04 LTS «Jammy Jellyfish» и привносит ряд изменений, улучшений и новых функций, сохраняя при этом верность традициям Linux Mint в плане стабильности, удобства использования и классического рабочего стола. Читать →

Настройка WireGuard на MikroTik

Схема WireGuard в MikroTikLab

Сегодня речь пойдёт о долгожданной настройки VPN WireGuard на Mikrotik RouterOS 7.3.1. Ранее данный тип соединения не был доступен, но с выходом «семерочки» мы теперь можем создавать данный тип туннеля.

Из основных плюсов его это: Читать →