Web Dev/Legacy Rescue

Sitefinity SEO Tips – How to increase your Text/HTML ratio

Improve your Sitefinity SEO by increasing your text-to-HTML ratio using a simple module that expands hidden content for visitors.

Digital illustration to convey SEO concepts

We are certain that marketers and designers are often left scratching their heads as to how they can get more text content on their webpages to improve their SEO rankings, without creating too much clutter.

Our latest video shows how to create a Sitefinity module that allows you to display a portion of your text and gives your site visitor the option to view the full text content.

Code Snippet:

@model Telerik.Sitefinity.Frontend.Mvc.Models.ContentDetailsViewModel
@using Telerik.Sitefinity.Frontend.Mvc.Helpers;
<div class=”@Model.CssClass” @Html.InlineEditingAttributes(Model.ProviderName, Model.ContentType.FullName, (Guid)Model.Item.Fields.Id)>
<div class=”faded-text”>
<div class=”collapse faded-content” id=”dissolveReadmore-@Model.Item.DataItem.Id” aria-expanded=”false”>
@Html.HtmlSanitize((string)Model.Item.Fields.Content)
</div>
<div class=”faded-text-expand”>
<a class=”collapsed btn-link-accordian expand-button” data-toggle=”collapse” href=”#dissolveReadmore-@Model.Item.DataItem.Id” aria-expanded=”false” aria-controls=”collapseExample”>
</a>
</div>
</div>
</div>
<script type=”text/javascript”>
$(‘#dissolveReadmore-@Model.Item.DataItem.Id’).on(‘shown.bs.collapse hide.bs.collapse’, function (e) {
var $panel = $(this).closest(‘#dissolveReadmore-@Model.Item.DataItem.Id’).parent();
$(‘html,body’).animate({
scrollTop: $panel.offset().top
}, 500);
});
</script>

CSS

/***************************
Dissolving Texts
***************************/
.faded-text div.collapse[aria-expanded=”false”] {
display: block;
height: 200px !important;
overflow: hidden;
}

.faded-text div.collapse[aria-expanded=”false”]:before {
content: ”;
width: 100%;
height: 100%;
position: absolute;
left: 0;
max-height: 200px;
background: linear-gradient(transparent -50px, white);
}

.faded-text div.collapsing[aria-expanded=”false”] {
height: 40px !important;
transition: height 2s ease-in-out;
}

.faded-text a.collapsed:after {
content: ‘Continue reading’;
}

.faded-text a:not(.collapsed):after {
content: ‘Show Less’;
}

.faded-text .faded-text-expand {
padding-top: 35px;
padding-bottom: 35px;
text-align:center;
}

Looking for a software partner?

Tell us about your project and we’ll show you how our team can help.

Contact Us

Found this useful? Share it.

Written by

KRS

More musings →

Keep reading

A photograph of a computer screen displayng code Web Dev/Legacy Rescue

4 November 2025 · KRS

Why KRS Chooses Svelte for Custom Software Development

KRS specialises in Svelte development & custom software development in South Africa, delivering fast, scalable business solutions.

Interface mockup with glass effect Web Dev/Legacy Rescue

10 July 2025 · Elizabeth Duff

Modern UX for Legacy Software: How to Upgrade with SPA Design Principles

Learn how to upgrade legacy software with modern SPA design principles, improving performance, usability, and user satisfaction.

Best10 Personalised nutrition and fitness platform developed by KRS screenshot of meal plans Web Dev/Legacy Rescue

15 March 2024 · Elizabeth Duff

KRS: The development team behind Best10

The Best10 platform offers personalised nutrition and fitness support, and KRS is proud to be the development team behind the platform