Skip to content

Instantly share code, notes, and snippets.

View mrkdevelopment's full-sized avatar

Matt Knighton mrkdevelopment

View GitHub Profile
@mrkdevelopment
mrkdevelopment / css
Created August 5, 2020 07:04
Style your paceholder
::placeholder {
color: red;
}
.ez-toc-list-level-5{
display:none;
}
@mrkdevelopment
mrkdevelopment / css-notifiy-bar
Last active July 3, 2021 03:34
Alert Bar with Icon
<style>
#notify-bar .alert-wrapper{
padding:5px;
}
#notify-bar .icon-wrap{
height: 25px;
display: inline-flex;
width: 20px;
margin: 5px 20px 0 0;
}
@mrkdevelopment
mrkdevelopment / HTML
Created February 2, 2020 10:33
Browser Theme Color
<meta name="theme-color" content="#038"/>
@mrkdevelopment
mrkdevelopment / HTMlL in Head
Last active February 1, 2020 23:59
Add this to your header for coloured browser in mobile
<!-- Blue Version -->
<meta name="theme-color" content="#038"/>
<!--Grey Version -->
<meta name="theme-color" content="#3a3a3a"/>
<!--Green version -->
<meta name="theme-color" content="#209b60"/>
@mrkdevelopment
mrkdevelopment / FAQ Items as a Grid
Created January 8, 2020 06:11
Displays the FAQ items as a grid
[df_multi_col_faq_shortcode id="css-id" class="css-class" include_categories="comma-separated-faq-category-ids" expanded="0-or-1" orderby="date" order="DESC" /]
@mrkdevelopment
mrkdevelopment / FAQ List Short Code
Last active January 8, 2020 06:10
Short Code Attributes for FAQ List id
[df_toggled_faq_shortcode id="css-id" class="css-class" include_categories="comma-separated-faq-category-ids" expanded="0-or-1" orderby="date" order="DESC" /]
@mrkdevelopment
mrkdevelopment / mrkwp-faq-post-type-permalink-fix.php
Last active December 5, 2019 03:41
FAQ post type permalink fix.
<?php
function mrkwp_faq_posttype_fix_register_post_type_args( $args, $post_type )
{
if ($post_type == "faq" ) {
$args['rewrite'] = array(
'slug' => false,
);
}
@mrkdevelopment
mrkdevelopment / update_diviframework_faq_post_type_args.php
Last active April 22, 2019 03:43
WordPress filter to change diviframework faq post type args
<?php
// Add this to your child theme's function.php file.
// Make sure you flush the rewrite rules.
// On wp cli you can 'wp rewrite flush'
// Or goto WordPress Admin > Settings > Permalink and save the settings which will flush the rules.
add_filter(
'df_faq_post_type_args',
function ($args) {
$args['public'] = true;
@mrkdevelopment
mrkdevelopment / business-directory-post-type-arg-filter.php
Last active April 9, 2019 04:28
Business Directory Post Type Arg Filter
<?php
// Add this to your child theme's function.php file.
// Make sure you flush the rewrite rules.
// On wp cli you can 'wp rewrite flush'
// Or goto WordPress Admin > Settings > Permalink and save the settings which will flush the rules.
add_filter('business_directory_post_type_args', function($args){
$args['rewrite'] = [
'slug' => '/business-location',
];
return $args;