admin管理员组文章数量:1421054
I have a custom header video on my WordPress site and I have an overlay (an svg I repeat in the background of a div) that I want to live on top of the video. I accomplished this like so
<?php the_custom_header_markup(); ?>
<div class="header__overlay"></div>
However this creates a problem. Because the video and the generated pause button are both in the generated wp-custom-header div, I cannot get my overlay between them. ie For my overlay to be z-indexed over my video, it is also over top of my button.
Is there a way for me to filter the output of The_custom_header_markup to include additional markup. That functions typical markup is:
<div id="wp-custom-header" class="wp-custom-header">
<video id="wp-custom-header-video"></video>
<button type="button" id="wp-custom-header-video-button" class="wp-custom-header-video-button ...">Pause</button>
</div>
What I want is
<div id="wp-custom-header" class="wp-custom-header">
<video id="wp-custom-header-video"></video>
<div class="header__overlay"></div>
<button type="button" id="wp-custom-header-video-button" class="wp-custom-header-video-button ...">Pause</button>
</div>
Thanks In advance! JoesLost
本文标签: filtersHow to add markup to the wpcustomheader div
版权声明:本文标题:filters - How to add markup to the wp-custom-header div 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745337018a2654087.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论