Astra

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.

img.site-icon {
    width: 30px;
    margin-top: -15px;
    margin-right: -15px;
}
    
function add_icon_before_site_title($title) { // Add your image HTML here $image_html = '<img src="https://wpsnippet.club/wp-content/uploads/2023/12/santahat.png" 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