Buy me a coffee

Site Title CSS

#1. Change a part of site title size
Suppose we need to change text “x5” to bigger

Site Title Css 1 Min

You can use this code to Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("a#site-title").each(function() {
    $(this).html($(this).html().replace(/x5/g, "<span>x5</span>"));
});
});
</script>
<style>
  a#site-title span {
    font-size: 30px;
}
</style>

Site Title Css 2 Min

Result

Site Title Css 3 Min

#2. Change a part of site title color
If you need to change “x5” color

Site Title Css 4 Min

Result

Bổ Sung 5 Min

You can use this code to Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("a#site-title").each(function() {
    $(this).html($(this).html().replace(/x5/g, "<span>x5</span>"));
});
});
</script>
<style>
  a#site-title span {
    color: #f1f;
}
</style>

Site Title Css 5 Min

#3. Hover Site Title – Rotate it 360 degree
You can use this code to Custom CSS box

a#site-title {
    transition: transform 0.5s ease-in-out;
    display: inline-block;
}
a#site-title:hover {
    transform: rotate(360deg);
}

Site Title Css 6 Min

#4. Site Title – Different color on each character
You can use this code to Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
    var colors = ["red", "blue", "green", "orange", "purple", "yellow", "pink", "cyan"];
    var text = $("#site-title").text();
    var coloredText = "";

    for (var i = 0; i < text.length; i++) {
        var color = colors[i % colors.length];
        coloredText += '<span style="color:' + color + ';">' + text[i] + '</span>';
    }

    $("#site-title").html(coloredText);
});
</script>

Site Title Css 7 Min

Result

Site Title Css 8 Min

You can change color here

Site Title Css 9 Min

#5. Site Title in middle of screen on scroll
You can use this code to Custom CSS box.

a#site-title {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    text-align: center;
    width: 150px !important;
    white-space: nowrap;
}

Site Title Css 10 Min