Fix | blog url

pull/3/head
Антон 4 months ago
parent 719d2decd6
commit b7f9855e11
  1. 5
      wp-content/themes/cosmopet/templates/header.twig

@ -2,8 +2,11 @@
{% set posts_page_id = function('get_option', 'page_for_posts') %} {% set posts_page_id = function('get_option', 'page_for_posts') %}
{# Получаем URL этой страницы #} {# Получаем URL этой страницы #}
{% if posts_page_id %}
{% set blog_url = function('get_permalink', posts_page_id) %} {% set blog_url = function('get_permalink', posts_page_id) %}
{% else %}
{% set blog_url = '/blog/' %}
{% endif %}
<header class="header white"> <header class="header white">
<div class="header__menu-block"> <div class="header__menu-block">

Loading…
Cancel
Save