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 | |
global $post; | |
$post_parent = $post->post_parent; | |
if ( $post_parent ){ | |
wp_redirect(get_permalink($post_parent)); | |
} else { | |
$home_url = home_url(); | |
wp_redirect( $home_url); | |
} | |
?> |
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
/* #region Clamp Function for Responsive Typography */ | |
$clamp-view-min: 400; | |
$clamp-view-max: 1100; | |
$clamp-default-unit: rem; | |
$clamp-base-font-size: 16; // Base font size in px for rem conversion | |
@function strip-units($value) { | |
@if unitless($value) { | |
@return $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
(function() { | |
// Variables to track scroll state and rotation | |
let lastScrollTop = 0; | |
let scrollTimeout; | |
let rotationAngles = {}; // Store rotation angles for each SVG | |
const ROTATION_SPEED = 0.5; // Degrees per scroll event | |
let animatedSections = new Map(); // Track sections being animated | |
// Function to get or initialize rotation angle for an element | |
function getRotationAngle(element) { |
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
.tolle-links a { | |
position: relative; | |
} | |
.tolle-links a::after { | |
content: ""; | |
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3E%3Cpath d='M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z'/%3E%3C/svg%3E"); | |
mask-position: center; | |
mask-size: contain; | |
background-color: currentcolor; | |
color: #cd147f; |
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
// In die Design-Einstellungen -> CSS von der ZEILE! | |
@media (min-width: 981px) { | |
selector .et_pb_column { | |
display: flex; | |
flex-flow: column nowrap; | |
align-items: flex-start; | |
justify-content: center; | |
gap: 0; | |
} |
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 | |
#region Clean Up WP Admin Bar | |
function remove_admin_bar_links() { | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('wp-logo'); // Remove the Wordpress logo + sub links | |
// $wp_admin_bar->remove_menu('site-name'); // Remove the site name menu | |
// $wp_admin_bar->remove_menu('view-site'); // Remove the view site link | |
// $wp_admin_bar->remove_menu('updates'); // Remove the updates link | |
// $wp_admin_bar->remove_menu('comments'); // Remove the comments link | |
$wp_admin_bar->remove_menu('new-content'); // Remove the content link |
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 | |
// Get all ACF fields of the current post | |
$custom_fields = get_fields(); | |
$available_fields = array(); | |
if ($custom_fields) { | |
foreach ($custom_fields as $field_name => $field_value) { | |
$available_fields[$field_name] = $field_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
(function() { | |
// Add scroll class to body when scrolling | |
function handleScroll() { | |
const scrollPosition = window.scrollY || document.documentElement.scrollTop; | |
if (scrollPosition > 0) { | |
document.body.classList.add('scrolling'); | |
} else { | |
document.body.classList.remove('scrolling'); | |
} |
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( 'use_block_editor_for_post', '__return_false' ); |
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 | |
/** | |
* Search results template | |
* @package Relevanssi Live Ajax Search | |
*/ | |
function get_custom_post_type_labels() { | |
return array( | |
'projects' => 'Projekte', | |
'post' => 'Neuigkeiten', |
NewerOlder