Forum categories

Редактирование заголовка в header.tpl (шапка сайта)

Как изменить главный заголовок?

webitproff
webitproff • 2024-07-18 10:36 #105

смотрите начиная со строки №99

		<div class="uk-card uk-padding-xs">
			 <div>
				<h1 class="fs-4 uk-margin-remove-bottom"><span class="uk-txt-warnlight uk-text-bold">Free</span><span class="uk-txt-sldlight uk-text-bold ">Lance </span><span class="uk-txt-dangrlight uk-text-bold ">Market</span><span class="uk-txt-violtlight uk-text-bold ">Place</span></h1>
			</div>
			<span class="uk-txt-scmtdlight">маркетплейс c витринами товаров и фриланс услуг</span>
		</div>

если желаете - дайте ФТП - я сам быстрее поправлю.

 

по хорошему, то лучше сделать тут так как в шапке для витрины товаров (маркетплейса)

/themes/marketplace/header.market.tpl

1. создаем в шаблоне шапки маркетплейса теги переменных локализации

<div class="uk-card uk-padding-xs">
	<div>
		<span class="uk-heading-bullet uk-text-uppercase uk-text-bold uk-link-text uk-h4 uk-margin-remove-bottom">{PHP.L.market_header_heading_bullet}</span>
		<span class="uk-txt-dangrlight uk-text-bolder">{PHP.L.market_header_heading_descr}</span>
	</div>
	 <span class="">{PHP.L.market_header_heading_descr_bottom}</span>
</div>

2. а затем в нашем файле локализации шаблона в

/themes/marketplace/marketplace.ru.lang.php

прописываем нужные значения переменных, типа такого

$L['market_header_navbar_subtitle'] = 'Маркет';
$L['market_header_heading_bullet'] = 'Маркетплейс';
$L['market_header_heading_descr'] = ' - это рынок товаров';
$L['market_header_heading_descr_bottom'] = 'Товары с витрин индивидуальных продавцов';

ПС. по разделу маркетплейса, такие переменные могут быть в языковых файлах самого модуля

/modules/market/lang/market.ru.lang.php

This post was edited by webitproff (2024-07-18 12:25, 2 years ago)
🗿

🧙‍♂️ Well met, good traveler! Fate has guided your steps to our humble realm. Here, wise sages and masters of the coding craft ⚒️📜 gather to unravel the mysteries of the code ✨⚙️, share their knowledge, and add new chapters to our chronicles.
⬅️ To the left lie ancient scrolls 📚 filled with forgotten wisdom. ⬆️ Straight ahead, friendly folk offer counsel 💬 to those in need. ➡️ To the right, you may become a chronicler ✍️ yourself, sharing your craft and leaving words of wisdom for those yet to come.
📝 Delay no longer—tell us the name by which you are known, complete the rite of registration 🛡️, and join our fellowship!
🏰 Our brotherhood holds no secret initiation, yet many halls remain closed to wandering guests, for some knowledge 💎 is reserved for those who choose to walk this path beside us.