This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="500" height="160" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<polygon class="shape" points="150,75 112.5,140 37.5,140 0,75 37.5,10 112.5,10" fill="#006791"></polygon> | |
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (min-width: 768px) { | |
.awp-masonry .gallery-item , .awp-masonry .gallery-icon img { | |
width: 100% !important; | |
max-width: 100% !important; | |
} | |
.awp-masonry [class*="gallery-columns-"] { | |
column-gap: 0; | |
} | |
.awp-masonry .gallery-columns-2 { | |
-webkit-column-count: 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*--- Automatic drop cap first letter first paragraph all single poss ----*/ | |
.single-post .entry-content > p:first-of-type:first-letter { | |
float: left; | |
clear: both; | |
font-size: 3em; | |
font-weight: bold; | |
line-height: 0.8em; | |
margin: 0.1em 0.1em 0em 0px; | |
padding: 3px 6px; | |
color: #fff; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*- Agency Section with Heading -*/ | |
<div class="awp-section"> | |
<!-- content before heading --> | |
<div class="flex-container awp-heading"> | |
<div class="block-title"> | |
<h4>H4 Heading</h4> | |
</div> | |
<h2>H2 Heading</h2> | |
p tag text | |
<a class="button cta" href="#" data-cta="the label">the label</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'post_thumbnail_html', 'custom_add_post_thumbnail_caption',10,5 ); | |
function custom_add_post_thumbnail_caption($html, $post_id, $post_thumbnail_id, $size, $attr) { | |
if( $html == '' ) { | |
return $html; | |
} else { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.square .elementor-flip-box { | |
width: 100%; | |
height: 0; | |
padding-bottom: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('comment_form', 'db_add_comment_content'); | |
function db_add_comment_content() { | |
$commenter = wp_get_current_commenter(); | |
echo '<p>my content below comment box</p>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
window.onload = function() { | |
var pageHeader = document.querySelectorAll(".generate-content-header"); | |
pageHeader[0].classList.add("zoom"); | |
} | |
</script> | |
.generate-content-header { | |
background-size: 100%; | |
transition: background-size 2s ease-in; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_shortcode( 'featured_caption', 'db_featured_image_caption' ); | |
function db_featured_image_caption() { | |
ob_start(); | |
$get_description = get_post(get_post_thumbnail_id())->post_excerpt; | |
if(!empty($get_description)){ | |
$content = '<div class="featured-caption">' . $get_description . '</div>'; | |
ob_end_clean(); | |
return $content; | |
} | |
} |