Skip to content

Instantly share code, notes, and snippets.

/* elements in Twenty Sixteen Theme
#page
.site-inner
header#masthead
#content
div#primary
main#main
article.hentry
.entry-header
/* Card Based Layout - Base styles */
.cpt-card {
/*background: bisque;*/
margin-bottom: 2em;
padding: 1em;
}
.cpt-card a {
/*color: black;*/
/* Single Book Layout using Flexbox */
/** Debug CSS start here */
.single-book-container {
background-color: aqua;
}
.book-meta-container {
.cpt-card-widget {
display: grid;
grid-template-columns: 50px auto;
margin-bottom: 1em;
border-left: 3px solid #d6d6d6;
}
.cpt-card-widget .book-entry-title {
margin: 0 0 0.25em;
}

Add phpCodeSniffer to PhpStorm:

  1. In the Settings/Preferences dialog (Ctrl+Alt+S),

    Languages & Frameworks | PHP | Quality Tools.

  2. On the Quality Tools page that opens, expand the Code Sniffer area. From the Configuration list, choose the PHP Code Sniffer script that we just installed in our utilities directory.

    You need to select > \phphcs\bin\phpcs.bat

<?php
/** This code can be placed in functions.php file of Child theme or any other plugin */
add_filter( 'rbr/admin/settings/advance/fields', 'adding_color_field_to_advance_section' );
function adding_color_field_to_advance_section( $fields_array ) {
// Modify this fields array
<?php
/**
* Place this code where you want to add insertion point
*/
do_action('rbr_single_book_meta_after');
/**
* Place the following code in functions.php file of child theme or extending plugin
// Remove Options
$option_ids_to_delete = array(
0 => 'rbr_test_field',
1 => 'rbr_archive_column',
2 => 'rbr_text_field1',
3 => 'rbr_color_test',
4 => 'rbr_number_field1',
5 => 'rbr_textarea_field1',
6 => 'rbr_advance_color_field',
7 => 'rbr_checkbox_field1',