Within my Joomla website using the T3 template, I inserted the following "Custom Code" just before the closing </head>
tag:
<style type="text/stylesheet">
div.t3-sidebar.t3-sidebar-right{
background: #F8F8F8 none repeat scroll 0% 0%;
border: 1px solid rgb(238, 238, 238);
border-radius: 20px;
}
button.btn.btn-primary.off-canvas-toggle{
font-size: 28px;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$("button.btn.btn-primary.off-canvas-toggle i.fa.fa-bars").addClass("fa-user").removeClass("fa-bars");
});
</script>
Upon inspecting the elements with my browser's development tools, I noticed that even though the tags were present in the header as expected, the styles were not being applied.
Update: The styling issue has been resolved after realizing an error on my part regarding the style type. Many thanks to those who suggested this fix.
Regarding the script problem: There are no errors appearing in the console.
Final Update: The script complication has also been sorted out. It was likely either related to incorrectly calling the jQuery function (using jQuery
instead of $
) or a bracket issue within the document.ready function.