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
wp.blocks.registerBlockType('my_new-block', { | |
title: 'My Extra Block', | |
icon: 'heart', | |
category: 'common', | |
attributes: { | |
content: {type: 'string'} | |
}, | |
edit: function(props) { | |
function somename(event) { | |
props.setAttributes({content: event.target.value}) |
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 | |
/** | |
*Plugin name: Extra | |
*Author: My name | |
*Version: 1.0.0 | |
*/ | |
function loadMyBlockFiles() { | |
wp_enqueue_script( | |
'my-test-text', |
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 (max-width: 764px) { | |
.wp-block-columns { | |
display: block; | |
} | |
} |
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 | |
$done=false; | |
if ( function_exists( 'jet_theme_core') ) { | |
$done = jet_theme_core() ->do_location( 'header' ); | |
} | |
?> | |
<?php | |
if ( ! $done ) { | |
astra_header(); | |
} |
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
<header class="entry-header"> | |
<?php $utility->attributes->get_title( array( | |
'class' => 'entry-title', | |
'html' => '<h3 %1$s>%4$s</h3>', | |
'echo' => true, | |
) ); | |
?> | |
</header> |
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
<header class="entry-header"> | |
<?php $utility->attributes->get_title( array( | |
'class' => 'entry-title screen-reader-text', | |
'html' => '<h1 %1$s>%4$s</h1>', | |
'echo' => true, | |
) ); | |
?> | |
</header> |
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
.jet-carousel-wrap.jet-equal-cols .jet-carousel__item>*:last-child { | |
display: flex; | |
flex-direction: column; | |
} | |
.jet-carousel-wrap.jet-equal-cols .jet-carousel__item .jet-carousel__item-link, .jet-carousel-wrap.jet-equal-cols .jet-carousel__item .jet-banner, .jet-carousel-wrap.jet-equal-cols .jet-carousel__item .jet-banner__link { | |
-webkit-box-flex: 1; | |
-webkit-flex-grow: 1; | |
-ms-flex-positive: 1; | |
flex-grow: 1; | |
} |
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
// Display 25 products per page | |
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 12;' ), 20 ); |
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_filter( 'edit_post_link', '__return_false' ); |
NewerOlder