For example :Yes that is correct.
<h3 class="block-minorHeader">
<a href="{{ link('members/tpm') }}">
{$title}
</a>
</h3>
My example is the widget made by xenMade for TPM, this is the titleSo i should add that to my extra.less? do I replace members/tpm with the link I want? Sorry, this is all so new to me.
<xf:if is="$threads is not empty OR ($threads is empty AND $filter != 'latest')">
<div class="block"{{ widget_data($widget) }}>
<div class="block-container">
<xf:if is="$style == 'full'">
<h3 class="block-header">
<a href="{$link}" rel="nofollow">{$title}</a>
</h3>
<div class="block-body">
<div class="structItemContainer">
<xf:if is="$threads is not empty">
<xf:foreach loop="$threads" value="$thread">
<xf:macro template="thread_list_macros" name="item"
arg-allowInlineMod="{{ false }}"
arg-thread="{$thread}" />
</xf:foreach>
<xf:elseif is="$filter == 'unread'" />
<div class="block-row">
{{ phrase('no_unread_posts_view_latest', {'link': link('whats-new/posts', null, {'skip': 1})}) }}
</div>
<xf:else />
<div class="block-row">
{{ phrase('no_results_found') }}
</div>
</xf:if>
</div>
</div>
<xf:if is="$hasMore">
<div class="block-footer">
<span class="block-footer-controls">
<xf:button href="{$link}" rel="nofollow">{{ phrase('view_more...') }}</xf:button>
</span>
</div>
</xf:if>
<xf:else />
<h3 class="block-minorHeader">
<a href="{$link}" rel="nofollow">{$title}</a>
</h3>
<ul class="block-body">
<xf:if is="$threads is not empty">
<xf:foreach loop="$threads" value="$thread">
<li class="block-row">
<xf:macro template="thread_list_macros" name="item_new_posts"
arg-thread="{$thread}" />
</li>
</xf:foreach>
<xf:elseif is="$filter == 'unread'" />
<li class="block-row block-row--minor">
{{ phrase('no_unread_posts_view_latest', {'link': link('whats-new/posts', null, {'skip': 1})}) }}
</li>
<xf:else />
<li class="block-row block-row--minor">
{{ phrase('no_results_found') }}
</li>
</xf:if>
</ul>
</xf:if>
</div>
</div>
</xf:if>
You would just edit this line in your code <a href="{$link}" rel="nofollow">{$title}</a> to <a href="https://LINK/" rel="nofollow">{$title}</a>This is my widget_new_posts template. The thing is I made my own content for the block, thats why I want to change the link cause its linking to the new poats page because that is the widget I used, so I am hoping this is the right template.
Code:<xf:if is="$threads is not empty OR ($threads is empty AND $filter != 'latest')"> <div class="block"{{ widget_data($widget) }}> <div class="block-container"> <xf:if is="$style == 'full'"> <h3 class="block-header"> <a href="{$link}" rel="nofollow">{$title}</a> </h3> <div class="block-body"> <div class="structItemContainer"> <xf:if is="$threads is not empty"> <xf:foreach loop="$threads" value="$thread"> <xf:macro template="thread_list_macros" name="item" arg-allowInlineMod="{{ false }}" arg-thread="{$thread}" /> </xf:foreach> <xf:elseif is="$filter == 'unread'" /> <div class="block-row"> {{ phrase('no_unread_posts_view_latest', {'link': link('whats-new/posts', null, {'skip': 1})}) }} </div> <xf:else /> <div class="block-row"> {{ phrase('no_results_found') }} </div> </xf:if> </div> </div> <xf:if is="$hasMore"> <div class="block-footer"> <span class="block-footer-controls"> <xf:button href="{$link}" rel="nofollow">{{ phrase('view_more...') }}</xf:button> </span> </div> </xf:if> <xf:else /> <h3 class="block-minorHeader"> <a href="{$link}" rel="nofollow">{$title}</a> </h3> <ul class="block-body"> <xf:if is="$threads is not empty"> <xf:foreach loop="$threads" value="$thread"> <li class="block-row"> <xf:macro template="thread_list_macros" name="item_new_posts" arg-thread="{$thread}" /> </li> </xf:foreach> <xf:elseif is="$filter == 'unread'" /> <li class="block-row block-row--minor"> {{ phrase('no_unread_posts_view_latest', {'link': link('whats-new/posts', null, {'skip': 1})}) }} </li> <xf:else /> <li class="block-row block-row--minor"> {{ phrase('no_results_found') }} </li> </xf:if> </ul> </xf:if> </div> </div> </xf:if>
<h3 class="block-header">
<a href="SITELINK" rel="nofollow">MY NAME</a>
</h3>
<h3 class="block-minorHeader">
<xf:if is="$title == 'Yourwidgettitle'">
<a href="/categories/6/" rel="nofollow">{$title}</a>
<xf:elseif is="$title == 'Anotherwidgettitle'" />
<a href="/forums/4/" rel="nofollow">{$title}</a>
<xf:else />
<a href="{$link}" rel="nofollow">{$title}</a>
</xf:if>
</h3>
We use essential cookies to make this site work, and optional cookies to enhance your experience.