Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.
 Actions

X title header and crumbs above content

From TWC Wiki

Revision as of 09:05, 12 July 2025 by Makanyane (talk | contribs) (Created page with "This copies the page title and breadcrumbs section and inserts them lower down the page so they sit within the content section instead of above the side bar. Using this means the title and breadcrumbs would appear twice at the top of the page, classes are added to the elements so that one or the other may be hidden. <pre> <div class="title-logo-container"> <div class="title-logo-section"> <!-- start title_header_and_crumbs_above_content --> <div class="title-section"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This copies the page title and breadcrumbs section and inserts them lower down the page so they sit within the content section instead of above the side bar.

Using this means the title and breadcrumbs would appear twice at the top of the page, classes are added to the elements so that one or the other may be hidden.

<div class="title-logo-container">
<div class="title-logo-section">

<!-- start title_header_and_crumbs_above_content  -->
<div class="title-section">
	
<div class="inHeaderCrumbs">
	<xf:macro template="PAGE_CONTAINER" id="breadcrumbs"
		arg-breadcrumbs="{$breadcrumbs}"
		arg-navTree="{$navTree}"
		arg-selectedNavEntry="{$selectedNavEntry}" />
</div>
<div class="titleHeaderAboveContent">
	<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>
</div>
</div>
<!-- end title_header_and_crumbs_above_content  -->
<!-- logo section  -->
			<div class="logo-section">
				<div class="p-header-logo p-header-logo--image logo-in-pageContent">
					<a href="{{ ($xf.options.logoLink && $xf.homePageUrl) ? $xf.homePageUrl : link('index') }}">
						<xf:macro id="style_variation_macros::picture"
							arg-property="publicLogoUrl"
							arg-propertyRetina="publicLogoUrl2x"
							arg-width="{{ property('publicLogoWidth') }}"
							arg-height="{{ property('publicLogoHeight') }}"
							arg-alt="{$xf.options.boardTitle}" />
					</a>
				</div>	
			</div>	
</div>
</div>
YOU can help us improve this Wiki! ~ Look for ways to help and editing advice. ~ If you need further advice, please post here.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.