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
// 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',
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1544686201" LAST_MODIFIED="1550055678" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3>
<DL><p>
/* 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;
}
<?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
@booskills
booskills / sorting.php
Created November 21, 2019 22:50
sorting columns
<?php
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
die;
}
/**
* Functionality for our Custom Post types
*
*
* @package Rocket_Books
{
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
},
{
"type": "composer",
"url": "https://packages.metabox.io/KEY"
},
{
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
},
{
"type": "composer",
"url": "https://packages.metabox.io/KEY"
},