Skip to content

Instantly share code, notes, and snippets.

View mrkdevelopment's full-sized avatar

Matt Knighton mrkdevelopment

View GitHub Profile
@mrkdevelopment
mrkdevelopment / zip_no_ds_store
Created January 26, 2012 23:51
To ZIP files and no include .DS_store
zip -r archive.zip * -x "*.DS_Store"
@mrkdevelopment
mrkdevelopment / In your social icons file
Last active July 29, 2022 00:25
Divi social icons extension
<?php if ( 'on' === et_get_option( 'divi_show_linkedin_icon', 'on' ) ) : ?>
<li class="et-social-icon et-social-linkedin">
<a href="<?php echo esc_url( et_get_option( 'divi_linkedin_url', '#' ) ); ?>" class="icon">
<span><?php esc_html_e( 'Linked In', 'Divi' ); ?></span>
</a>
</li>
<?php endif; ?>
<?php if ( 'on' === et_get_option( 'divi_show_youtube_icon', 'on' ) ) : ?>
<li class="et-social-icon et-social-youtube">
@media (max-width: 1200px) {
.et_boxed_layout #page-container,
.et_fixed_nav.et_boxed_layout #page-container #top-header,
.et_fixed_nav.et_boxed_layout #page-container #main-header{
width:100%;
}
}
@mrkdevelopment
mrkdevelopment / Create Tar
Created February 10, 2017 00:27
Use this for migrations and downloads of remote WordPress sites.
//tar files
tar -zcvf backup.tar.gz *
@mrkdevelopment
mrkdevelopment / css snippet
Last active April 22, 2017 01:42
DiviFramework Breadcrumb CSS
#breadcrumbs span,
#breadcrumbs span a{
color:#fff;
font-weight: bold;
}
#breadcrumbs span:first-child{
background:#009DDC;
padding:3px
}
@mrkdevelopment
mrkdevelopment / snippet
Created April 25, 2017 01:26
Change Bar colour for Divi Menu
.nav li.red-bar ul {
border-top: 3px solid #ff0000;
}
@mrkdevelopment
mrkdevelopment / df-breadcrumb-module.css
Created April 25, 2017 06:31
Divi Framework CSS for the breadcrumb module
.breadcrumb_header h1 {
padding:0;
}
.breadcrumb_header .subtitle {
padding-top:15px;
display:block;
}
.breadcrumb_header.all_centered {
@mrkdevelopment
mrkdevelopment / register-custom-faq-view-file.php
Created April 26, 2017 05:05
Register Custom FAQ view file via a filter
<?php
add_filter('my_custom_faq_view', 'my_custom_faq_view_filter', 10, 1);
function my_custom_faq_view_filter($slugs = array())
{
// set the location of the faq file to a sub directory in the child theme folder.
$slugs['my_custom_faq_slug'] = get_stylesheet_directory() . '/resources/views/my-custom-faq-file.php';
return $slugs;
@mrkdevelopment
mrkdevelopment / sample-faq-view-file.php
Created April 26, 2017 05:07
Sample FAQ view file
<?php
$args = array(
'post_type' => 'faq',
'posts_per_page' => -1,
'tax_query' => array(
array(
'taxonomy' => 'faq_category',
'field' => 'id',
@mrkdevelopment
mrkdevelopment / style.css
Last active August 5, 2019 21:36
Mobile Menu bar adjustment for Divi
span.mobile_menu_bar:before{
color:#ffffff;
}