spokoinyi Проверенные Сообщения 22 Реакции 1 Баллы 300 10 Дек 2017 #1 Как можно убрать название форума и кнопки ?
TaLLeR43 Заблокирован Сообщения 617 Реакции 188 Баллы 1,745 10 Дек 2017 #2 Код:Скопировать body[data-template="forum_list"] .p-title-value { display: none; /* убираем заголовок на главной странице */ } В Extra.less вставь...уберет с главной название форума Позитивный голос 0 Негативный голос
Код:Скопировать body[data-template="forum_list"] .p-title-value { display: none; /* убираем заголовок на главной странице */ } В Extra.less вставь...уберет с главной название форума
CMTV Проверенные Сообщения 238 Решения 3 Реакции 1,185 Баллы 3,535 10 Дек 2017 #3 Более правильное решение в следующем сообщении! (но это тоже работает) В PAGE_CONTAINER замените блок: HTML:Скопировать <xf:macro name="breadcrumbs" arg-breadcrumbs="{$breadcrumbs}" arg-navTree="{$navTree}" arg-selectedNavEntry="{$selectedNavEntry}" /> На: HTML:Скопировать <xf:if is="$template !== 'forum_list'"> <xf:macro name="breadcrumbs" arg-breadcrumbs="{$breadcrumbs}" arg-navTree="{$navTree}" arg-selectedNavEntry="{$selectedNavEntry}" /> </xf:if> Замените блок: HTML:Скопировать <xf:if is="$headerHtml is not empty"> <div class="p-body-header"> {$headerHtml|raw} </div> <xf:elseif contentcheck="true" /> <div class="p-body-header"> <xf:contentcheck> <xf:if contentcheck="true"> <div class="p-title {{ $noH1 ? 'p-title--noH1' : '' }}"> <xf:contentcheck> <xf:if is="!$noH1"> <h1 class="p-title-value">{$h1}</h1> </xf:if> <xf:if contentcheck="true"> <div class="p-title-pageAction"><xf:contentcheck><xf:pageaction /></xf:contentcheck></div> </xf:if> </xf:contentcheck> </div> </xf:if> <xf:if is="$description is not empty"> <div class="p-description">{$description}</div> </xf:if> </xf:contentcheck> </div> На: HTML:Скопировать <xf:if is="$template !== 'forum_list'"> <xf:if is="$headerHtml is not empty"> <div class="p-body-header"> {$headerHtml|raw} </div> <xf:elseif contentcheck="true" /> <div class="p-body-header"> <xf:contentcheck> <xf:if contentcheck="true"> <div class="p-title {{ $noH1 ? 'p-title--noH1' : '' }}"> <xf:contentcheck> <xf:if is="!$noH1"> <h1 class="p-title-value">{$h1}</h1> </xf:if> <xf:if contentcheck="true"> <div class="p-title-pageAction"><xf:contentcheck><xf:pageaction /></xf:contentcheck></div> </xf:if> </xf:contentcheck> </div> </xf:if> <xf:if is="$description is not empty"> <div class="p-description">{$description}</div> </xf:if> </xf:contentcheck> </div> </xf:if> Последнее редактирование: 10 Дек 2017 Позитивный голос 0 Негативный голос
Более правильное решение в следующем сообщении! (но это тоже работает) В PAGE_CONTAINER замените блок: HTML:Скопировать <xf:macro name="breadcrumbs" arg-breadcrumbs="{$breadcrumbs}" arg-navTree="{$navTree}" arg-selectedNavEntry="{$selectedNavEntry}" /> На: HTML:Скопировать <xf:if is="$template !== 'forum_list'"> <xf:macro name="breadcrumbs" arg-breadcrumbs="{$breadcrumbs}" arg-navTree="{$navTree}" arg-selectedNavEntry="{$selectedNavEntry}" /> </xf:if> Замените блок: HTML:Скопировать <xf:if is="$headerHtml is not empty"> <div class="p-body-header"> {$headerHtml|raw} </div> <xf:elseif contentcheck="true" /> <div class="p-body-header"> <xf:contentcheck> <xf:if contentcheck="true"> <div class="p-title {{ $noH1 ? 'p-title--noH1' : '' }}"> <xf:contentcheck> <xf:if is="!$noH1"> <h1 class="p-title-value">{$h1}</h1> </xf:if> <xf:if contentcheck="true"> <div class="p-title-pageAction"><xf:contentcheck><xf:pageaction /></xf:contentcheck></div> </xf:if> </xf:contentcheck> </div> </xf:if> <xf:if is="$description is not empty"> <div class="p-description">{$description}</div> </xf:if> </xf:contentcheck> </div> На: HTML:Скопировать <xf:if is="$template !== 'forum_list'"> <xf:if is="$headerHtml is not empty"> <div class="p-body-header"> {$headerHtml|raw} </div> <xf:elseif contentcheck="true" /> <div class="p-body-header"> <xf:contentcheck> <xf:if contentcheck="true"> <div class="p-title {{ $noH1 ? 'p-title--noH1' : '' }}"> <xf:contentcheck> <xf:if is="!$noH1"> <h1 class="p-title-value">{$h1}</h1> </xf:if> <xf:if contentcheck="true"> <div class="p-title-pageAction"><xf:contentcheck><xf:pageaction /></xf:contentcheck></div> </xf:if> </xf:contentcheck> </div> </xf:if> <xf:if is="$description is not empty"> <div class="p-description">{$description}</div> </xf:if> </xf:contentcheck> </div> </xf:if>
CMTV Проверенные Сообщения 238 Решения 3 Реакции 1,185 Баллы 3,535 10 Дек 2017 #4 Согласен, что частичное решение TaLLeR43 более правильное и быстрое. Привожу полное решение. В шаблоне extra.less: Less:Скопировать body[data-template="forum_list"] { .p-title-value, .p-title-pageAction { display: none; } } Использую его и на своих форумах, тогда уж. Последнее редактирование: 10 Дек 2017 Позитивный голос 0 Негативный голос
Согласен, что частичное решение TaLLeR43 более правильное и быстрое. Привожу полное решение. В шаблоне extra.less: Less:Скопировать body[data-template="forum_list"] { .p-title-value, .p-title-pageAction { display: none; } } Использую его и на своих форумах, тогда уж.