# Логотип с изображением и текстом

**URL:** https://meta.discourse.org/t/image-and-text-as-logo/138996
**Category:** Support
**Created:** [17.Январь.2020 23:40:51 UTC](https://meta.discourse.org/t/image-and-text-as-logo/138996 "2020-01-17T23:40:51Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![smrtey](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@smrtey](https://meta.discourse.org/u/smrtey)
#### Post date: [20.Январь.2020 20:31:46 UTC](https://meta.discourse.org/t/image-and-text-as-logo/138996/6 "2020-01-20T20:31:46Z")

</div>

Попробуйте это

```plaintext
.d-header .title::after {
    padding-left: 20px;
    font-size: 1.5em;
    color: #333;
    content: "Here is some text";
}
.archetype-regular #main.no-text .d-header .title::after,
.archetype-private_message #main.no-text .d-header .title::after {
    display:none;
}

```

```plaintext
<script>
    $(document).ready(function() {
    	$(window).scroll(function(){
    		checkScroll()
        }); 
    
    	function checkScroll() {
    		var y = $(window).scrollTop();		
    		if (y > 55) {
                document.getElementById("main").classList.add('no-text');
            } else {
                document.getElementById("main").classList.remove('no-text');
            }
    	}
    	checkScroll();
    });
</script>

```

Вот это в виде компонента

> **[GitHub - oerog/header-text: Add Text After Your Logo on Discourse](https://github.com/oerog/header-text)**
>
> Add Text After Your Logo on Discourse

---

_[View the full topic](https://meta.discourse.org/t/image-and-text-as-logo/138996)._
