Christmas decoration on site title wordpress Astra

Use the snippet bellow, in conjunction with the css, in order to add a Christmas decoration to your website. {
    width: 30px;
    margin-top: -15px;
    margin-right: -15px;
function add_icon_before_site_title($title) { // Add your image HTML here $image_html = '<img src="" alt="Santa Hat" class="site-icon" />'; $title = $image_html . $title; return $title; } add_filter('astra_site_title', 'add_icon_before_site_title');

Leave a Reply

Your email address will not be published. Required fields are marked *