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
<h2 class="text-center block-single-tb"> | |
Featured Tools and Services | |
</h2> | |
<?php | |
// the query | |
$sticky = get_option( 'sticky_posts' ); | |
$the_query = new WP_Query( array( | |
'post_type' => 'coupon', | |
'posts_per_page' => 6, | |
'post__in' => $sticky, |
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
<!doctype html><html amp i-amphtml-binding i-amphtml-layout i-amphtml-no-boilerplate lang=en-US prefix="og: https://ogp.me/ns#" transformed="google;v=7"><head><meta charset=UTF-8><style amp-runtime i-amphtml-version=012108052321001>html{overflow-x:hidden!important}html.i-amphtml-fie{height:100%!important;width:100%!important}html:not([amp4ads]),html:not([amp4ads]) body{height:auto!important}html:not([amp4ads]) body{margin:0!important}body{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}html.i-amphtml-singledoc.i-amphtml-embedded{-ms-touch-action:pan-y pinch-zoom;touch-action:pan-y pinch-zoom}html.i-amphtml-fie>body,html.i-amphtml-singledoc>body{overflow:visible!important}html.i-amphtml-fie:not(.i-amphtml-inabox)>body,html.i-amphtml-singledoc:not(.i-amphtml-inabox)>body{position:relative!important}html.i-amphtml-ios-embed-legacy>body{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important}html.i-amphtml-ios-embed{overflow-y:auto |
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
<link id="custom_stylesheet" rel="stylesheet" type="text/css" href="" /> | |
<script> | |
function LoadStyleAndScript() | |
{ | |
$("#custom_stylesheet").attr("href", "//example.com/mystyle.css"); | |
} | |
</script> | |
<input type="button" onClick="LoadStyleAndScript();" value="Load it"> |
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
/** | |
* Create shortcode for donate box. | |
* | |
* @since 1.0 | |
*/ | |
function md_child_donate_shortcode( $atts ) { | |
ob_start(); | |
?> | |
<form action="https://www.paypal.com/donate" method="post" target="_top" class="text-center mb-half"> |
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 MD Image Sizes to Gutenberg Image Block */ | |
add_filter( 'image_size_names_choose','md_custom_image_sizes' ); | |
function md_custom_image_sizes( $sizes ) { | |
return array_merge( $sizes, array( | |
//Add your custom sizes here | |
'md-full' => __( 'MD Full' ), | |
'md-banner' => __( 'MD Banner' ), | |
'md-block' => __( 'MD Block' ), | |
'md-thumbnail' => __( 'MD Thumb' ), |
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 (prefers-color-scheme: dark) { | |
.aawp .aawp-tb__row--highlight { | |
background-color: #219b00; | |
color: #fff; | |
} | |
.aawp .aawp-tb__row--highlight a, h4.pt-cv-title a { | |
color: #fff; | |
} | |
.logopatch3,.logopatch4,.logopatch5{ |
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
<?php | |
add_action( | |
'enqueue_block_editor_assets', | |
function () { | |
$theme = wp_get_theme(); | |
wp_enqueue_style( | |
'block-md-custom-css', '/wp-content/themes/md-child/custom-editor.css?v=1' | |
); | |
} | |
); |
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
<?php add_action('init', function() { | |
register_block_style('core/pullquote', [ | |
'name' => 'smaller', | |
'label' => __('Small', 'md'), | |
'inline_style' => '.wp-block-pullquote.is-style-smaller blockquote{font-size:18px!important}' | |
]); | |
register_block_style('core/quote', [ | |
'name' => 'minimal', | |
'label' => __('Minimal', 'md'), | |
'inline_style' => '.wp-block-quote.is-style-minimal{font-size: 18px; padding: 2em; border-left:8px solid #c0392b; box-shadow: 1px 2px 9px 0px rgb(153 153 153 / 33%); line-height:1.9em}' |