Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Knighton mrkdevelopment

View GitHub Profile
@mrkdevelopment
mrkdevelopment / Filter
Created Oct 25, 2020
Hook to stop Divi Check in Gravity Forms Styler for Divi Plugin
View Filter
function setNoDiviCheck(){
return false;
}
add_filter( 'mrkwp_gfwp_test_divi', 'setNoDiviCheck' );
@mrkdevelopment
mrkdevelopment / css
Created Aug 5, 2020
Style your paceholder
View css
::placeholder {
color: red;
}
View css snippet
.ez-toc-list-level-5{
display:none;
}
View css-notifiy-bar
<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 Feb 2, 2020
Browser Theme Color
View HTML
<meta name="theme-color" content="#038"/>
@mrkdevelopment
mrkdevelopment / HTMlL in Head
Last active Feb 1, 2020
Add this to your header for coloured browser in mobile
View HTMlL in Head
<!-- 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 Jan 8, 2020
Displays the FAQ items as a grid
View 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 Jan 8, 2020
Short Code Attributes for FAQ List id
View FAQ List Short Code
[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" /]
View mrkwp-faq-post-type-permalink-fix.php
<?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 Apr 22, 2019
WordPress filter to change diviframework faq post type args
View update_diviframework_faq_post_type_args.php
<?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;
You can’t perform that action at this time.