Skip to content

Instantly share code, notes, and snippets.

@topleague
topleague / cookie-notice-genesis.php
Created October 5, 2024 09:16
How to Add Cookie Notice to Your Genesis Website
@topleague
topleague / add-link-genesis-featured-cpt-widget.php
Last active September 18, 2024 12:57
Adding a Link to Genesis Featured CPT Widget Plugin
@topleague
topleague / add-subtitle-genesis-featured-cpt-widget.php
Last active September 18, 2024 12:56
Adding a Subtitle to Genesis Featured CPT Widget Plugin
.epaper-blocker, .epaperBlockerWrap {display:none;}
@topleague
topleague / feather-icons-css.txt
Created September 13, 2020 14:27
Customize Feather Icons
.feather {
width: 60px;
height: 60px;
fill: transparent;
stroke: #333333;
stroke-width: .65px;
}
@topleague
topleague / add-the-icon.txt
Created September 13, 2020 14:23
Add the Feather Icons in Genesis
<i data-feather="circle"></i>
@topleague
topleague / feather-icons-cdn.txt
Created September 13, 2020 12:01
Load Feather Icons Scripts from a CDN Provider
<script src="https://unpkg.com/feather-icons"></script>
<script>
feather.replace()
</script>
@topleague
topleague / search-form-under-entry-title-genesis.txt
Created September 5, 2020 04:43
Create a Search Form under Entry Title in Genesis
//* STEP #1: ADD EXCERPT SUPPORT TO PAGES
add_post_type_support( 'page', 'excerpt' );
//* Output Excerpt on Pages
add_action( 'genesis_meta', 'lwp_page_description_meta' );
//* STEP #2: REPLACE DEFAULT ENTRY HEADER WITH EXCERPT
function lwp_page_description_meta() {
//* If it's a singular page, apply page description
@topleague
topleague / insert-html-line-awesome.txt
Created February 21, 2020 11:55
Insert the HTML Code (Line Awesome)
<i class="fa fa-check fa-3x"></i>
<i class="fa fa-check fa-6x"></i>
<i class="fa fa-angle-double-down fa-8x"></i>
<i class="fa fa-angle-double-down fa-10x"></i>
@topleague
topleague / enqueue-line-awesome-script-genesis.txt
Created February 21, 2020 09:20
Enqueue Line Awesome Scripts in Genesis
wp_enqueue_style( 'line-awesome', '//maxst.icons8.com/vue-static/landings/line-awesome/font-awesome-line-awesome/css/all.min.css' );