Skip to content

Instantly share code, notes, and snippets.

View Frankiamme's full-sized avatar

Frank Willis Frankiamme

View GitHub Profile
@Frankiamme
Frankiamme / changes.css
Created December 5, 2023 15:24
Css WPMUDEV - Frank
/* Frank Changes */
/* Remove huge spacing on the right and left sections of the page */
body .wp-site-blocks main{
margin: 0px;
}
/* Center the site title / logo */
.wp-site-blocks header .wp-block-site-title{
text-align: center;
@Frankiamme
Frankiamme / functions.php
Created December 5, 2023 15:21
Updating my custom PHP code - WPMUDEV Frank
<?php
// Add Shortcode
function subform() {
// Get the current user's display name
$user_display_name = wp_get_current_user()->get("display_name");
// Get the blog name
$blog_name = get_bloginfo( 'name' );
@Frankiamme
Frankiamme / findOverflowParents.js
Created February 17, 2023 06:58 — forked from brandonjp/findOverflowParents.js
find overflow:hidden ancestors
// when you're trying to use `position:sticky` on an element
// you'll have trouble if any parent/ancestor element has
// overflow set to anything other than "visible" (such as: auto,hidden,overlay,scroll)
// & turns out if a parent is `display:flex` it might need some love
// (to remedy this you can set the `align-self` of your sticky element)
// see here for how the display & align-self properties affect: http://bit.ly/2ZaRu4o
// so, to find those troublesome parents...
// copy & paste this into Chrome Inspector/Dev Tools console
// (and be sure to change the #stickyElement below, if needed)