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 class="header__logo"> | |
<a href="home-url"> | |
<span class="screen-reader-text">Logo [company name], links to the homepage</span> | |
<svg class="header__logo--svg" width="80px" height="80px" | |
viewBox="0 0 80 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" | |
role="presentation" | |
focusable="false"> | |
[g's...] | |
</svg> | |
</a> |
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
<!-- old --> | |
<button class="ol-button ol-button--primary ol-button--js-filter" aria-expanded="false"> | |
<span class="ol-button--amount" aria-hidden="true" style="display: inline;"> | |
4 | |
</span> | |
<span class="ol-button__text"> | |
Meer filters | |
</span> | |
<span class="ol-button__icon"> | |
<i class="ol-icon ol-icon-plus" aria-hidden="true"></i> |
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
Current code: | |
<div class="facetwp-facet facetwp-facet-xxx_search_training_type facetwp-type-search" data-name="xxx_search_training_type" data-type="search"> | |
<span class="facetwp-search-wrap"> | |
<i class="facetwp-btn"></i> | |
<input type="text" class="facetwp-search" value="" placeholder="Placehoder text here"> | |
</span> | |
</div> | |
Suggested code: | |
<div class="facetwp-facet facetwp-facet-xxx_search_training_type facetwp-type-search" data-name="xxx_search_training_type" data-type="search"> |
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 | |
// disable yoast seo nag messages | |
// via https://wordpress.org/support/topic/turn-off-yoast-seo-has-been-updated-to-version-message | |
if ( class_exists( 'Yoast_Notification_Center' ) ) { | |
remove_action( 'admin_notices', array( Yoast_Notification_Center::get(), 'display_notifications' ) ); | |
remove_action( 'all_admin_notices', array( Yoast_Notification_Center::get(), 'display_notifications' ) ); | |
} | |
?> |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Add Accessibility support | |
add_theme_support( 'genesis-accessibility', array( 'headings', 'drop-down-menu', 'search-form', 'skip-links', 'rems' ) ); |
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( 'admin_bar_menu', 'prefix_remove_stuf_admin_bar', 999 ); | |
function prefix_remove_stuf_admin_bar( $wp_admin_bar ) { | |
$wp_admin_bar->remove_node( 'wp-logo' ); | |
$wp_admin_bar->remove_node( 'comments' ); | |
$wp_admin_bar->remove_node( 'wpseo-menu' ); | |
if ( !current_user_can( 'edit_others_pages' ) ) { |
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 | |
// set custom post type templates in post meta | |
add_action('publish_name_cpt', 'prefix_add_template', 10, 2 ); | |
function prefix_add_template( $post_id, $post ) { | |
if ( $post_id == 1234 ) { | |
add_post_meta( $post_id, '_wp_page_template', 'your-template.php', true ); | |
} |
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 | |
/** | |
* Template Name: English page | |
* Adds lang=en to the entry-content div only | |
* | |
* @package Genesis\Templates | |
* @author Rian Rietveld | |
* @license GPL-2.0+ | |
*/ |
NewerOlder