@font-face {
font-family: "OpenSans";
src: url("fonts/opensans.woff2") format("woff2")
url("fonts/opensans.woff") format("woff") ;
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "OpenSans";
src: url("fonts/opensansbold.woff2") format("woff2"),
url("fonts/opensansbold.woff") format("woff");
font-weight: 700;
font-style: normal;
}
function ra_change_text_multiple( $changed) {
$text = array(
'Add Listing' => 'ВАШ ТЕКСТ',
);
$changed= str_ireplace( array_keys($text), $text, $changed);
return $changed;
}
add_filter( 'gettext', 'ra_change_text_multiple', 20 );
$image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full');
<img src="<?php echo $image_url[0]; ?>" />
<div class="video">
<video loop muted autoplay src="http://thenewcode.com/assets/videos/polina.mp4"></video>
</div>
.video {
width: 100%;
padding-bottom: 67%;
position: relative;
}
.video video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}