View extra.js
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}) |
View extra.php
<?php | |
/** | |
*Plugin name: Extra | |
*Author: My name | |
*Version: 1.0.0 | |
*/ | |
function loadMyBlockFiles() { | |
wp_enqueue_script( | |
'my-test-text', |
View responsive-blocks.css
@media (max-width: 764px) { | |
.wp-block-columns { | |
display: block; | |
} | |
} |
View astra-header.php
<?php | |
$done=false; | |
if ( function_exists( 'jet_theme_core') ) { | |
$done = jet_theme_core() ->do_location( 'header' ); | |
} | |
?> | |
<?php | |
if ( ! $done ) { | |
astra_header(); | |
} |
View content-single.php
<header class="entry-header"> | |
<?php $utility->attributes->get_title( array( | |
'class' => 'entry-title', | |
'html' => '<h3 %1$s>%4$s</h3>', | |
'echo' => true, | |
) ); | |
?> | |
</header> |
View content-page.php
<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> |
View equal columns height jetel carousl
.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; | |
} |
View new-functions.php
// Display 25 products per page | |
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 12;' ), 20 ); |
View functionsnew1.php
add_filter( 'edit_post_link', '__return_false' ); |
NewerOlder