Skip to content

Instantly share code, notes, and snippets.

View nextab's full-sized avatar

nexTab - Oliver Gehrmann nextab

View GitHub Profile
# BEGIN EWWWIO
# Die Anweisungen (Zeilen) zwischen „BEGIN EWWWIO“ und „END EWWWIO“ sind
# dynamisch generiert und sollten nur über WordPress-Filter geändert werden.
# Alle Änderungen an den Anweisungen zwischen diesen Markierungen werden überschrieben.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{REQUEST_FILENAME} (.*)\.(jpe?g|png|gif)$
RewriteCond %{REQUEST_FILENAME}.webp -f
RewriteCond %{QUERY_STRING} !type=original
@nextab
nextab / Set Divi's Backend to English even with Polylang installed
Last active July 8, 2022 13:04
Divi & Polylang have a weird bug when you have both installed on the same website: no matter what your user account has selected as its preferred language, Divi's backend builder will always show the translation for the primary language set in Polylang.
#region Set Divi's backend to English for Oli's user account
add_filter( 'load_textdomain_mofile', 'switch_divi_to_en', 10, 2 );
/*
* Replace 'textdomain' with your plugin's textdomain. e.g. 'hello-dolly'.
* Define your filename, such as: yourtranslationfile-en_GB.mo
* Define the location, for example: wp-content/languages/textdomain/yourtranslationfile-en_GB.mo
*/
function switch_divi_to_en( $mofile, $domain ) {
if ( $domain === 'et_builder' && get_current_user_id() == 9) {
$mofile = get_template_directory() . '/includes/builder/languages/en_US.mo';
@nextab
nextab / CF7 Kontaktformular-Vorlage.txt
Created June 29, 2022 07:39
Ein Standard-Eingabeformular für Contact Form 7
[text* your-name placeholder "Name"]
[email* email placeholder "E-Mail Adresse"]
<strong>Interesse an:</strong>
[checkbox* interesse-an id:select-service use_label_element "Webdesign" "SEA" "Live-Coverage" "Übersetzungen" "SEO" "Andere Dienstleistung"]
[textarea message placeholder "Weitere Hinweise"]
<div class="dscf7">[checkbox* datenschutz ""] Ich akzeptiere die Verwendung meiner obigen Angaben zur Beantwortung meiner Anfrage, wie in der <a target="_blank" href="/datenschutzerklaerung/" title="Datenschutzerklärung in neuem Tab öffnen">Datenschutzerklärung</a> beschrieben.</div>
:root {
--button-background-color: #fff;
--button-border: 2px solid #fff;
--button-border-radius: 5px;
--button-box-shadow: none;
--button-color: #660039;
--button-font-family: inherit;
--button-font-size: 1.2rem;
--button-font-weight: 400;
--button-hover-background-color: transparent;
:root {
--button-background-color: #fff;
--button-border-radius: 0;
--button-border: 2px solid #fff;
--button-box-shadow: none;
--button-color: #660039;
--button-font-family: inherit;
--button-font-size: 1.2rem;
--button-font-weight: 400;
--button-hover-background-color: transparent;
:root {
--button-background-color: #000;
--button-border-radius: 0;
--button-border: 2px solid #000;
--button-box-shadow: none;
--button-color: #fff;
--button-font-family: inherit;
--button-font-size: 1.2rem;
--button-font-weight: 400;
--button-hover-background-color: transparent;
:root {
--button-background-color: #000;
--button-border-radius: 25px;
--button-border: 2px solid #000;
--button-box-shadow: none;
--button-color: #fff;
--button-font-family: inherit;
--button-font-size: 1.2rem;
--button-font-weight: 400;
--button-hover-background-color: transparent;
:root {
--button-background-color: #000;
--button-border-radius: 0;
--button-border: 2px solid #000;
--button-box-shadow: none;
--button-color: #fff;
--button-font-family: inherit;
--button-font-size: 1.2rem;
--button-font-weight: 400;
--button-hover-background-color: transparent;
@nextab
nextab / Contact Form 7 - CF7 Styling-Vorlage.scss
Created June 29, 2022 07:10
Mit Hilfe dieser Vorlage ist es auf einfache Art möglich, Kontaktformulare, die über das Plugin Contact Form 7 erzeugt wurden, schöner zu gestalten.
:root {
--button-background-color: #000;
--button-border-radius: 0;
--button-border: 2px solid #000;
--button-box-shadow: none;
--button-color: #fff;
--button-font-family: inherit;
--button-font-size: 1.2rem;
--button-font-weight: 400;
--button-hover-background-color: transparent;
// HTML:
<div style="width: 100%;/*! grid-column: 1 / span 4; */">
<input type="checkbox" id="menu_trigger" name="menu_trigger">
<label for="menu_trigger"></label>
<nav>
<!-- Menü -->
<a href="index.php" class="navi"><b>Startseite</b></a>
<a href="index.php?list=40" class="navi">Dienstleistungen</a>
<a href="index.php?list=35" class="navi">Notebooks Gebraucht</a>