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
.nav-links .page-numbers:not(.next):not(.prev) { | |
display: none; | |
} |
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
@media (min-width: 769px) { | |
.site-content { | |
display: flex; | |
} | |
.inside-right-sidebar { | |
height: 100%; | |
} | |
.inside-right-sidebar aside:last-child { | |
position: -webkit-sticky; | |
position: sticky; |
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
/*Progress bar CSS*/ | |
.meter { | |
height: 30px; | |
position: relative; | |
background: #f3efe6; | |
border-radius:3px; | |
overflow: hidden; | |
margin: 5px 0 5px 0; | |
} | |
.meter span { |
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
//add no-lazy class to primary logo | |
function wpd_generate_logo_output($output, $logo_url, $html_attr) { | |
//add our no-lazy class | |
$html_attr = str_replace('class="', 'class="no-lazy ', $html_attr); | |
//logo output | |
printf( | |
'<div class="site-logo no-lazy"> | |
<a href="%1$s" title="%2$s" rel="home"> |
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
html {-webkit-font-smoothing: auto;} | |
/*fonts*/ | |
strong {color:#202020;} | |
/*no margin mobile*/ | |
@media screen and (max-width: 768px) { | |
.no-margin-mobile {margin-bottom:0px;}} | |
/*links*/ | |
#block-2 a {text-decoration:none;} | |
#block-2 {border: 1px solid rgba(0,0,0,.05); | |
box-shadow: 0 0 27px 0 rgb(214 231 233 / 52%); |
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
function bis_remove_cpt_slug($args, $post_type) { | |
if(in_array($post_type, array('artist'))) { | |
$args['rewrite'] = array('slug' => '/'); | |
} | |
return $args; | |
} | |
add_filter('register_post_type_args', 'bis_remove_cpt_slug', 10, 2); |
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
//adds custom post type query var to preview links | |
function mycptname_cpt_previow_query_vars($link, $post) { | |
$custom_post_types = array('artist'); | |
if(in_array($post->post_type, $custom_post_types)) { | |
return add_query_arg(['post_type' => $post->post_type], $link); | |
} | |
return $link; | |
} | |
add_filter('preview_post_link', 'mycptname_cpt_previow_query_vars', 10, 2); |
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
function na_remove_slug( $post_link, $post, $leavename ) { | |
if ( 'artist' != $post->post_type || 'publish' != $post->post_status ) { | |
return $post_link; | |
} | |
$post_link = str_replace( '/' . $post->post_type . '/', '/', $post_link ); | |
return $post_link; | |
} |