This file contains hidden or 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 | |
use Dompdf\Dompdf; | |
use Dompdf\Options; | |
add_action('wp', 'sd_generate_pdf'); | |
function sd_generate_pdf() { | |
// Only on post with id 750 | |
if( get_the_ID() != 750 ) { | |
return; |
This file contains hidden or 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
/* | |
Example: | |
https://share.cleanshot.com/yZOIpu | |
HTML: | |
<div class="box"> | |
<div class="ribbon"><span>News</span></div> | |
</div> |
This file contains hidden or 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
/* | |
* LOGIN SCREEN | |
*/ | |
// Logo | |
function sd_custom_login_logo() { ?> | |
<style type="text/css"> | |
body.login div#login h1 a { | |
background-image: url(<?php echo get_bloginfo( 'template_directory' ) ?>/img/logo-login.png); | |
padding-bottom: 10px; |
OlderNewer