How do you turn off the page icon and date in the text previous block please?
I just need the text links nothing else.
How do you turn off the page icon and date in the text previous block please?
I just need the text links nothing else.
That would be very simple:
make a file named text_links_prev_next.php in:
/application/blocks/next_previous/templates/text_links_prev_next.php
Contents of that file:
<?php
defined('C5_EXECUTE') or die('Access Denied.');
if ($previousCollection || $nextCollection): ?>
<nav class="next-previous-nav text-links-prev-next d-flex justify-content-between">
<?php if ($previousCollection): ?>
<a href="<?= h($previousCollection->getCollectionLink()) ?>"
class="previous-link text-uppercase">
PREVIOUS
</a>
<?php else: ?>
<span></span>
<?php endif; ?>
<?php if ($nextCollection): ?>
<a href="<?= h($nextCollection->getCollectionLink()) ?>"
class="next-link text-uppercase">
NEXT
</a>
<?php endif; ?>
</nav>
<?php endif; ?>
if you want, style it like:
.next-previous-nav.text-links-only a {
text-decoration: none;
color: red;
}
.next-previous-nav.text-links-only a:hover {
text-decoration: underline;
}