This file contains 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
/** | |
* This function is used to register Advanced Custom Fields (ACF) blocks | |
* from a specific directory. This can be useful when you have a lot of | |
* ACF blocks and want to keep your codebase clean and organized. | |
* | |
* This script assumes that each ACF block's code resides in its own folder under the | |
* /template-parts/blocks/ directory relative to where the script is located (__DIR__). | |
*/ | |
function register_acf_blocks() { |
This file contains 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
\s+id="[^"]*" |
This file contains 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
// Remove comments from Wordpress | |
add_action('admin_menu', 'theme_remove_admin_menus'); | |
function theme_remove_admin_menus() | |
{ | |
remove_menu_page('edit-comments.php'); | |
} | |
// Removes from post and pages | |
add_action('init', 'theme_remove_comment_support', 100); | |
function theme_remove_comment_support() |
This file contains 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
.swiper-slide { | |
height: auto; | |
} |
This file contains 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
/* Firefox */ | |
* { | |
scrollbar-width: 14px; | |
scrollbar-color: #a71b71 #ffffff; | |
} | |
/* Chrome, Edge, and Safari */ | |
::-webkit-scrollbar { | |
width: 14px; | |
} |
This file contains 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
window.onscroll = function () { | |
scrollTop(); | |
}; | |
function scrollTop() { | |
if (document.body.scrollTop > 0 || document.documentElement.scrollTop > 0) { | |
document.getElementById("navbar").classList.add("shadow-md"); | |
} else { | |
document.getElementById("navbar").classList.remove("shadow-md"); | |
} |
This file contains 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
<select id="language-selector" class="flex p-3 px-12 bg-[95%] border-2 appearance-none border-violet"> | |
<option selected> Deutsch </option> | |
<option> English </option> | |
<option> Français </option> | |
</select> |
This file contains 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-block-spacer[style="height:6rem"] { | |
@apply max-sm:!h-8; | |
} |
This file contains 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
:after { | |
content: ""; | |
@apply block w-8 h-8 bg-purple-500; | |
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' stroke-width='1.25' stroke='currentColor' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'%3E%3C/path%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cline x1='13' y1='18' x2='19' y2='12'%3E%3C/line%3E%3Cline x1='13' y1='6' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E") | |
no-repeat 50% 50%; | |
mask-size: cover; | |
} |
NewerOlder