Design Meets Code

Design Meets Code

WordPress · PrestaShop

  • Startseite
  • WordPress
  • PHP / Datenbanken
  • Ubuntu
  • Prestashop
  • Verschiedenes
  • Grafik
  • Glossar

Theme spezifischen Border Radius im Theme Gwyneth entfernen

23. April 2026 Leave a Comment

/* Entfernt die Rundung von allen Bildern im Content-Bereich */
.wp-block-image img,
.wp-block-image {
border-radius: 0 !important;
}
/* Spezifisch für Bilder */
.wp-block-image,
.wp-block-image img,
.wp-block-post-featured-image img {
border-radius: 0px !important;
clip-path: none !important; /* Wichtig, falls eine Maske genutzt wird */
}
/* Globaler Reset für alle Rundungen, die das Theme vorgibt */
:root {
–wp–custom–border-radius: 0px !important;
–wp–style–variable–border-radius: 0px !important;
}
/* Erweitert den Reset auf Beitragslisten und deren Container */
.wp-block-post-featured-image,
.wp-block-post-featured-image a,
.wp-block-post-featured-image img,
.wp-block-query .wp-block-image img {
border-radius: 0 !important;
clip-path: none !important;
}
/* Entfernt Rundungen von den umschließenden Containern in Listen */
.wp-block-post {
border-radius: 0 !important;
}

:root {
--wp--custom--border-radius--s: 0px;
--wp--custom--border-radius--m: 0px;
--wp--custom--border-radius--l: 0px;
--theme--css--wc--border-radius--corner: 0px;
}
[style*="radius:3rem"] {
border-radius: 0 !important;
}

Additional information:

This information is optional, as the above CSS forces no border radius automatically, however, here are some tips on editing border radius you’ve had problems with:

You can disable border radius on images (the theme applies subtle border radius here) by setting it in Appearance → Editor → Styles → Blocks → Image.
Some images inherit the border radius from their container (usually Group block). This is mostly the case with theme sections and layout and you should edit the appropriate template part to get rid of the border radius.

To remove border radius from featured image in post intro, edit “Intro: Post” (and “Intro (Page header)”) template part. The border radius is applied directly on Feature Image block here.

To remove border radius in footer, edit “Footer” template part, where border radius is applied both on Image block (with decorative image) and its Column block wrapper/container.

To remove border radius from featured image in posts list, edit “Posts list item” template part, where the border radius is applied on Group block wrapping around the Featured Image block.

You can access parent (wrapper, container) blocks in block editor multiple ways, such as by using List View.

Filed Under: WordPress

WordPress: E-Mail Benachrichtigungen über Plugin Updates abstellen

25. Juni 2025 Leave a Comment

Mit folgendem Code Snippet in der functions.php lassen sich email Benachrichtigungen über Plugin Updates abstellen:

add_filter( 'wp_mail', 'my_custom_mail_filter' );

function my_custom_mail_filter( $args ) {
    // Beispiel: Unterdrückt E-Mails an eine bestimmte E-Mail-Adresse
    if ( $args['to'] === 'no-updates@example.com' ) {
        $args['to'] = ''; // Setzt die Empfängeradresse auf leer, um den Versand zu verhindern
    }
    return $args;
}

Filed Under: WordPress Tagged With: Code Snippets

WooCommerce:Das Beschneiden von Produktbildern in der Produktübersicht verhindern

23. April 2025 Leave a Comment

Standardmäßig werden Produktbilder im WooCommerce Shop im Verhältnis 1:1 beschnitten, um eine einheitliche Produktansicht zu schaffen. Dies ist aber nicht immer gewünscht.

Das Bildverhältnis lässt sich in den Customizer Einstellungen verändern. Unter Design => Customizer => WooCommerce => Produktbilder lässt sich das Bildverhältnis ändern oder das Zuschneiden (Crop) ganz abstellen.

Filed Under: WordPress

  • 1
  • 2
  • 3
  • …
  • 20
  • Next Page »
Anzeige

Themen

Apache BuddyPress chmod chown Code Snippets Concatenation Operator Conditional Statement Custom Post Types Datenbank Email Enfold Escape Zeichen Foren genesis Grid View htaccess JavaScript Layout Builder List View Medien MegaShop Mitgliederbereich MySQL PHP PHP Anfänger PHP Variablen Plugins Prestashop Prestashop 1.5 Prestashop 1.6 Prestashop 8 Prestashop Module Registrierung RSS Feed s2member Schreibrechte Server ssl Strings Tipps Windows Windows 10 WooCommerce WooCommerce Sortierung WordPress
Anzeige

Letzte Kommentare

  • dmc zu Woocommerce: Produktbewertungen deaktivieren
  • medienplus zu Woocommerce: Produktbewertungen deaktivieren
  • Martin zu CSS: Automatische Silbentrennung in einzelnen Wörtern verhindern
  • Martin zu CSS: Automatische Silbentrennung in einzelnen Wörtern verhindern
  • Klaus zu Woocommerce: Shop Seiten neu generieren

Informationen

  • Kontakt
  • Datenschutzerklärung
  • Impressum
  • Cookie-Richtlinie (EU)
  • Kontakt
  • Datenschutzerklärung
  • Impressum
  • Cookie-Richtlinie (EU)
Anzeige