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
https://mikeoliver.me/generatepress-custom-css/?fbclid=IwAR0jNsiGTl1XakV3IobMwp-vHT3yqVEKZ3a3ryDbhPfRooKxVuMKsxssB3g |
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
// Put in functions.php | |
/** | |
* Display Post Blocks | |
* | |
*/ | |
function ea_display_post_blocks() { | |
global $post; | |
ea_pp( esc_html( $post->post_content ) ); | |
} |
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
Step 1: Register Block in functions.php | |
/* =========== ACF Blocks ============= */ | |
function register_acf_block_types() { | |
// register a testimonial block. | |
acf_register_block_type(array( | |
'name' => 'testimonial', | |
'title' => __('Testimonial'), |
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
.scholarship-annoucement-block { | |
background-image: url("https://portlandlinksinc.org/wp-content/uploads/2019/05/2019-Recipients.jpg"); | |
position: relative; | |
} | |
.scholarship-annoucement-block:before { | |
content: ""; | |
position: absolute; | |
left: 0; right: 0; | |
top: 0; bottom: 0; | |
background: rgba(0,0,0,.2); |
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
/* Page Transitions */ | |
.site { | |
animation: fadein 1s; | |
word-wrap: break-word; | |
} | |
@keyframes fadein { | |
from { opacity: 0; } | |
to { opacity: 1; } |
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
// Change 404 Text | |
add_filter( 'generate_404_text', 'mj_generate_404_text' ); | |
function mj_generate_404_text() | |
{ | |
return 'It looks like nothing was found at this location. Please try searching.'; | |
} | |
CSS to style | |
/* ------------------------------------------- | |
* 404 Page |
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
// Change 404 Title | |
add_filter( 'generate_404_title', 'mj_generate_404_title' ); | |
function mj_generate_404_title() | |
{ | |
return 'Not Found'; | |
} | |
CSS to Style | |
/* ------------------------------------------- | |
* 404 Page |
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
// Change Default Post Comment Text | |
add_filter( 'generate_post_comment', 'mj_generate_post_comment' ); | |
function mj_generate_post_comment() { | |
return 'Send Comment ⟶'; | |
} |
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
// Change Wording in Search Box add to functions.php | |
add_filter( 'generate_search_placeholder', 'tu_change_search_placeholder' ); | |
function tu_change_search_placeholder() { | |
return 'Search here …'; | |
} |