RTFM.WIKI

Ordnung muß sein. Ordnung über alles (18+)

Инструменты пользователя

Инструменты сайта


Stylesheet conf/userstyle.css not found, please contact the developer of "dokuwiki_2024" template.
web:wordpress:generatepress

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
web:wordpress:generatepress [2021/06/19 00:49] dxweb:wordpress:generatepress [2021/06/19 02:10] (текущий) dx
Строка 1: Строка 1:
 +====== GeneratePress - заметки ======
  
 +==== Hooks Visual Guide ====
 +
 +https://docs.generatepress.com/article/hooks-visual-guide/
 +
 +==== Кнопка/css ====
 +
 +https://docs.generatepress.com/article/adding-buttons-navigation/
 +
 +==== Гугл шрифты ====
 +
 +  * [[https://docs.generatepress.com/article/customizing-the-google-font-list/|Customizing the Google Font List]]
 +  * [[https://generatepress.com/forums/topic/adding-additional-google-fonts-to-the-customizer/|Adding additional google fonts to the customizer]]
 +
 +==== Разрешить Sections/Секции в сайдбаре ====
 +
 +[[https://docs.generatepress.com/article/allow-sidebars-sections/|via]]
 +
 +<code php>add_filter( 'generate_sections_sidebars','__return_true' );</code>
 +
 +==== Изменить копирайт ====
 +
 +[[https://docs.generatepress.com/article/changing-the-copyright-message/|via]]
 +
 +В настройках шаблона - Customize > Layout > Footer
 +
 +В коде
 +
 +<code php>
 +add_filter( 'generate_copyright','tu_custom_copyright' );
 +function tu_custom_copyright() {
 +    ?>
 +    Your new message in here. You can add anything you want, including PHP and HTML.
 +    <?php
 +}
 +</code>
 +
 +Убрать футер
 +
 +<code php>
 +add_action( 'after_setup_theme', 'tu_remove_footer_area' );
 +function tu_remove_footer_area() {
 +    remove_action( 'generate_footer','generate_construct_footer' );
 +}
 +</code>
 +
 +==== Показать дату изменения вместо даты публикации ====
 +
 +https://docs.generatepress.com/article/show-the-updated-post-date/
 +
 +==== Дочерняя тема ====
 +
 +[[https://docs.generatepress.com/article/using-child-theme/|via]]
 +
 +  - Скачать http://generatepress.com/api/themes/generatepress_child.zip
 +  - Загрузить - Appearance > Themes > Add New > Upload
 +
 +==== Выводить только featured image в Blog ====
 +
 +[[https://generatepress.com/forums/topic/how-to-only-show-featured-image-on-blog-homepage-and-not-entire-blog-post/|via]]
 +
 +Customizer > Layout > Blog > Excerpt > 0
 +
 +==== Изменить next page - previous page ====
 +
 +https://generatepress.com/forums/topic/change-template-post-navigation-next-page-previous-page/
 +
 +==== Top кнопка ====
 +
 +https://docs.generatepress.com/article/back-to-top-button/
 +
 +==== Featured Image ====
 +
 +  * https://generatepress.com/forums/topic/featured-image-besides-post-title-and-content/
 +  * https://generatepress.com/forums/topic/how-to-only-show-featured-image-on-blog-homepage-and-not-entire-blog-post/