Code 1:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^.well-known - [L]
</IfModule>
Code 2 (works when all selected, then press the insert code button):
// WP auto-uptade disabling
define( 'WP_AUTO_UPDATE_CORE', false );
// prolonging WP auto-save interval to 300 seconds
define( 'AUTOSAVE_INTERVAL', 300 );
Code 2b:
define( 'WP_AUTO_UPDATE_CORE', false );
define( 'AUTOSAVE_INTERVAL', 300 );
Code 3:
/* BEGIN small hero image for mobile */
@media (max-width: 935px) {
.page-hero {
background-image: url( 'https://bike.bikegremlin.com/wp-content/uploads/2021/09/hero-image-mobile-retina-bikegremlin.jpg' ) !important;
}
}
/* END small hero image for mobile */
Code 4:
// BEGIN list child pages without listing pages of the same hierarchy level
function relja_list_child_pages() {
global $post;
if ( is_page() )
$childpages = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->ID . '&echo=0' );
if ( isset($childpages )) {
$string = '<ul>' . $childpages . '</ul>';
}
else{
$string = '';
}
return $string;
}
add_shortcode('relja_child_pages', 'relja_list_child_pages');
// END list child pages without listing pages of the same hierarchy level
Code 5:
sudo /etc/init.d/dns-clean start