| 开发者 | ahmtgurel |
|---|---|
| 更新时间 | 2026年11月21日 20:22 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
It finds the logo in two ways:
custom-logo-link class. The plugin recognises this class.<header> element of the page that points to the home page and contains an image is treated as the logo.The logo cannot be found automatically when:
<header> element,<a> element) that wraps the image. The lights are attached to that link.
<img ...> line of the logo selected.<a ...> line right above the selected <img> line. This is the logo link.<a> line has a class="..." attribute.<a class="site-logo" href="..."> the selector is .site-logoid="...", put a # in front of the id. For <a id="logo" href="..."> the selector is #logo<div class="site-branding"> the selector is .site-branding aclass="logo-link header-item", one of them is enough. Pick the one that is most specific to the logo: .logo-link
document.querySelectorAll('.site-logo').lengthIf the logo is added with the Elementor Image or Site Logo widget, the easiest way is to give the widget your own class:
yeni-yil-logo.yeni-yil-logo a:has() feature and the length adjustment uses the CSS round() function. Both work in current versions of Chrome, Edge, Firefox and Safari. In old browsers the lights may not appear, or a partial piece may remain at the end of the string.