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
/* Make Category sidebar 90% viewport height - 220px header size */ | |
/*.woocommerce.widget_product_categories ul.product-categories { | |
max-height: calc(-220px + 90vh); | |
overflow: auto; | |
} | |
.woocommerce.widget_product_categories ul.product-categories li.cat-item { | |
list-style: none; | |
} | |
.woocommerce.widget_product_categories ul.product-categories li.cat-item a { | |
list-style: 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
/* Horizontal grid for lists and text. */ | |
.list-grid { | |
display: grid; | |
grid-template-columns: repeat(auto-fit,minmax(132px, 1fr)); | |
} | |
/* Horizontal grid for lists and text with a | devider. */ | |
ul.list-grid-divider { | |
display: grid; | |
grid-template-columns: repeat(auto-fit,minmax(132px, 1fr)); | |
list-style-type: 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
/* Horizontal flex for lists and text. */ | |
.list-flex { | |
display: flex; | |
justify-content: space-around; | |
} | |
.list-flex li { | |
flex-grow: 1; | |
} | |
/* Horizontal flex for lists and text with a | devider. */ | |
.list-flex-divider { |
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 j0e_imagetoRSS($content) { | |
if (has_post_thumbnail()) { | |
$feedlink = esc_url(apply_filters('the_permalink_rss', get_permalink())); | |
$content = '<a href="' . $feedlink . '" rel="nofollow ugc">' . get_the_post_thumbnail(get_the_ID(), 'thumbnail', array('style' => 'float: left; margin: 0 10px 10px 0;')) . '</a>' . $content; | |
} | |
return $content; | |
} |
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 | |
/** | |
* Removes WooCommerce scripts and styles from non-WooCommerce pages, | |
* excluding specific pages by post ID. | |
*/ | |
add_action('wp_print_scripts', 'my_remove_woo_assets', 999); | |
add_action('wp_enqueue_scripts', 'my_remove_woo_assets', 999); |
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 | |
// WordPress Shortcode - Content Hub: Lists all posts for the first category of a post | |
// Need help: https://bloggerpilot.com/en/content-hub-wordpress/ | |
function bp_categoryposts() { | |
// Get first category | |
$categories = get_the_category(); | |
if ( ! empty( $categories ) ) { |
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
/* https://startblogging101.com/kadence-blocks-content-boxes/ */ | |
selector .wp-block-kadence-column .kt-inside-inner-col { | |
display: flex; | |
flex-direction: column; | |
flex: 1; | |
} | |
selector .wp-block-kadence-column .kt-inside-inner-col .wp-block-kadence-advancedbtn { | |
margin-top: auto; |
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
echo '<span style="color: #99000;">Artikel aktualisiert am ' . get_the_modified_date('d.m.Y') . '<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
# Force trailing slash | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_METHOD} GET | |
RewriteCond %{REQUEST_URI} !(.*)/$ | |
RewriteCond %{REQUEST_URI} !^/wp-json/ | |
RewriteCond %{REQUEST_URI} !^/gravatars/ | |
RewriteCond %{REQUEST_FILENAME} !\.(gif|jpg|png|jpeg|css|xml|txt|js|php|scss|webp|mp3|avi|wav|mp4|mov|pdf|html|htm|xst)$ [NC] | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1/ [L,R=301] |
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 | |
// Add a Logo to the WordPress Login | |
add_action('login_head', 'bloggerpilot_loginlogo'); | |
function bloggerpilot_loginlogo() { | |
echo '<style type="text/css"> | |
h1 a { | |
background-image: url(https://bloggerpilot.com/wp-content/uploads/2021/06/logo.svg) !important; | |
width: 200px !important; | |
height: 42px !important; |
NewerOlder