This file contains hidden or 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 scaffold child-theme youtube-video --parent_theme=twentytwentythree |
This file contains hidden or 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
| if ( ! function_exists( 'custom_setup' ) ) { | |
| function custom_setup() { | |
| // Remove core block patterns. | |
| remove_theme_support( 'core-block-patterns' ); | |
| } | |
| } | |
| add_action( 'after_setup_theme', 'custom_setup' ); |
This file contains hidden or 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
| .yoast-table-of-contents{ | |
| --border: 2px solid var(--global-palette1); | |
| padding: 1rem; | |
| background: var(--global-palette7); | |
| border: var(--border); | |
| box-shadow: var(--box-shadow); | |
| border-radius: 1rem; | |
| } | |
| .yoast-table-of-contents ul{ | |
| padding-inline-start: 0.2em; |
This file contains hidden or 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
| [data-id="_BZXXz"] div.gtranslate_wrapper{ | |
| position: absolute; | |
| top: 12px; | |
| } | |
| [data-id="_BZXXz"] div.entry-content{ | |
| max-height: 20px; | |
| display: block; | |
| } |
This file contains hidden or 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 | |
| add_filter( 'wpseo_breadcrumb_links', 'fix_care_plan_bc_path' ); | |
| /** | |
| * Custom breadcrumb paths using Yoast SEO to fix care plan breadcrumb paths. | |
| * | |
| * @param [array] $links default param. | |
| * @return [array] $links edited links path. | |
| */ |
This file contains hidden or 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
| <style> | |
| body{ | |
| --content-vertical-spacing: 0px; | |
| } | |
| .tribe-events-calendar-latest-past__event-date-tag-year, | |
| .tribe-events-calendar-latest-past__event-date-tag-month { | |
| background: var(--buttonInitialColor) !important; | |
| color: #ffffff !important; | |
| font-weight: bold !important; | |
| } |
This file contains hidden or 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
| add_action('woocommerce_product_meta_start',function(){ | |
| global $product; | |
| echo wc_display_product_attributes( $product ); | |
| }); |
This file contains hidden or 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
| <div id="gform_123_vars">. | |
| <script type="module" | |
| data-xq-forms="gfrom_123"//ID | |
| data-xq-enc="html" | |
| data-xq-format="raw" | |
| data-xq-action="https://our.server.coml/t/form/encryptedmail" | |
| data-xq-api="9-4e10b813ecc8-a9a316bc-d5694ec-a9ecd26c77c6" | |
| data-xq-success="callbackfunction()"> | |
| </script> | |
| <script> |
This file contains hidden or 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 | |
| add_action('save_post', 'relate_post_to_thumb'); | |
| function relate_post_to_thumb($post_id) { | |
| //does this post have a URL / thumbnail | |
| $thumb_id = get_post_thumbnail_id($post_id); | |
| //if thumb found relate to post | |
| if($thumb_id){ |
This file contains hidden or 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
| add_filter( 'wp_insert_post_data' , 'filter_post_data' , '99', 2 ); | |
| function filter_post_data( $data , $postarr ) { | |
| // Change post title | |
| print_r($data); | |
| print_r($postarr); | |
| die(); | |
| } |