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
<?php | |
/** | |
* This file adds functions to the child WordPress theme. | |
*/ | |
/** | |
* Check for Notification Bar, and display it. | |
*/ | |
function demo_acf_output_notification() { | |
$has_notice = get_field( 'notification_bar', 'options' ); |
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
name: Deploy to a WP Engine Development environment | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 |
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
#---------------------------------------- | |
# This Git ignore should be located | |
# in your WordPress install's wp-content/ | |
# directory. | |
#---------------------------------------- | |
#--------------------------- | |
# WordPress general | |
#--------------------------- | |
/index.php |
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
function qorp_about_block_template_lookup( $template, $type, array $templates ) { | |
if ( $template && 'page-about.php' === $templates[0] ) { | |
add_filter( 'the_content', 'qorp_append_post_meta_output' ); | |
} | |
} | |
add_filter( 'page_template', 'qorp_about_block_template_lookup', 20, 3 ); | |
function qorp_append_post_meta_output( $content ) { | |
ob_start(); |
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
<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> | |
<!-- wp:group {"tagName":"main","className":"site-content","style":{"spacing":{"margin":{"top":"0"}}}} --> | |
<main class="wp-block-group site-content" style="margin-top:0"> | |
<!-- wp:pattern {"slug":"frost/page-home"} /--> | |
</main> | |
<!-- /wp:group --> | |
<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> |
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
<!-- wp:spacer {"height":"150px"} --> | |
<div style="height:150px" aria-hidden="true" class="wp-block-spacer"></div> | |
<!-- /wp:spacer --> | |
<!-- wp:group {"align":"wide","layout":{"inherit":false}} --> | |
<div class="wp-block-group alignwide"><!-- wp:columns {"verticalAlignment":"center"} --> | |
<div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"top":"3rem","right":"1rem","bottom":"3rem","left":"1rem"}},"border":{"width":"1px"}},"backgroundColor":"contrast","className":"has-border-color has-black-border-color"} --> | |
<div class="wp-block-column is-vertically-aligned-center has-border-color has-black-border-color has-contrast-background-color has-background" style="border-width:1px;padding-top:3rem;padding-right:1rem;padding-bottom:3rem;padding-left:1rem"><!-- wp:paragraph {"textColor":"base","fontSize":"small"} --> | |
<p class="has-base-color has-text-color has-small-font-size">Contrast</p> | |
<!-- /wp:paragraph --></div> |
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
{ | |
"apiVersion": 2, | |
"name": "namespace/carousel", | |
"title": "Carousel", | |
"category": "custom-category", | |
"icon": "slides", | |
"keywords": [ "carousel", "slider" ], | |
"description": "Add a swipeable carousel of content.", | |
"supports": { | |
"html": false |
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
import { SVG, Path } from '@wordpress/components'; | |
const arrowLeft = ( | |
<SVG fill="none" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> | |
<Path | |
d="m1.333 14.389 9.466-9.466c.872-.872 2.326-.872 3.198 0s.872 2.326 0 3.198l-5.589 5.621h20.677c1.26 0 2.262 1.002 2.262 2.261s-1.002 2.262-2.262 2.262h-20.677l5.589 5.589c.872.872.872 2.326 0 3.198-.452.452-1.034.678-1.615.678s-1.163-.226-1.615-.678l-9.434-9.434c-.42-.42-.678-1.002-.678-1.615s.226-1.195.678-1.615z" | |
fill="currentColor" | |
/> | |
</SVG> | |
); |
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
<?php | |
/** | |
* Customizer setup | |
* | |
* @package YourChildTheme | |
*/ | |
namespace YourChildTheme\Customizer; | |
/** |
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
<!-- wp:heading {"level":1} --> | |
<h1>This is a heading (H1)</h1> | |
<!-- /wp:heading --> | |
<!-- wp:heading --> | |
<h2>This is a heading (H2)</h2> | |
<!-- /wp:heading --> | |
<!-- wp:heading {"level":3} --> | |
<h3>This is a heading (H3)</h3> |