Skip to content

Instantly share code, notes, and snippets.

View jessestu's full-sized avatar

jessestu jessestu

View GitHub Profile

Disable WordPress.com admin bar

This walkthrough disables the WordPress.com admin bar when needed to reveal the default WordPress admin bar on WordPress.com sites using the Business plan.

What to do next:

  1. Install Code Snippets on your site: https://wordpress.com/plugins/code-snippets
  2. Activate code snippets either on that installation page or by going to My Site → WP-Admin → Plugins
  3. Go to My Site → WP-Admin → Snippets → Add New.
  4. Create a new snippet and name it Disable WordPress.com admin bar or something similar.
/* THIS CSS: Widens single-column pages horizontally at the 79em theme breakpoint. / @jessestu 5076061-hc */
@media screen and (min-width: 79em){
.page-one-column .panel-content .wrap {
max-width: 75em;
}
}
/* THIS CSS: Hides the sidebar on all blog pages except My Journey. / @jessestu 5076061-hc */
.widget-area {
WordPress database error Duplicate entry 'rh0hca7rao4hub7nu659fdr9s7' for key 'PRIMARY' for query INSERT INTO `wp_141047689_wcuf_upload_sessions` (`last_activity`, `session_type`, `session_id`, `item`) VALUES ('1532961346', '', 'rh0hca7rao4hub7nu659fdr9s7', '') made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('/wpcom-141047689/wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, WCUF_Session->manage_session, WCUF_Session->create_session, WCUF_DB->create_session_row
This error showed up two times in the last hour.
/* Restore full Featured Image height on Lost IT Productivity page. / @jessestu 5237713-hc */
@media screen and (min-width: 600px) {
.page-id-98 .entry-thumbnail {
background-size: 600px;
background-repeat: no-repeat;
}
}
.page-id-98 .entry-thumbnail {
height: 300px !important;
/* --- change image links on hover / 1297841-zen --- */
.design, .laser-cutting, .fabrication, .cnc-folding, .cnc-machining, .finishing, .assembly, .absolute {
display: inline-block;
height: 100px;
}
.design:hover {
background: url('https://freshlookengineering.files.wordpress.com/2018/07/design-reverse2.png') center no-repeat;
background-size: 100px 100px;
}
/* Hides author and entry footer on posts. / @jessestu 5409110-hc */
.entry-author,
.entry-footer {
display: none;
}
@jessestu
jessestu / action_button.css
Last active October 24, 2018 17:23
Let's create an action button!
/* Styles a call to action button. / @jessestu */
.action-button {
border-top: 1px solid #539fa3;
background: #539fa3;
background: -webkit-gradient(linear, left top, left bottom, from(#74ccd1), to(#539fa3));
background: -webkit-linear-gradient(top, #74ccd1, #539fa3);
background: -moz-linear-gradient(top, #74ccd1, #539fa3);
background: -ms-linear-gradient(top, #74ccd1, #539fa3);
background: -o-linear-gradient(top, #74ccd1, #539fa3);
padding: 15px 30px;
/* Centers all body elements on posts and pages. / @jessestu 1319555-zen */
.site-main, .entry-title {
text-align: center;
margin: 0 auto;
}
/* Tweak to get Like iframe near center */
div.sharedaddy.sd-like-enabled .sd-like .post-likes-widget {
width: 250px;
margin: 0 auto;
padding-left: 100px;
/* Hides "Top Categories" in footer. / @jessestu 5492638-hc */
.footer-top-categories {
display: none;
}
/* Hides the search bar at top of page. / @jessestu 5492638-hc */
.search-wrapper {
display: none;
}
PHP Warning: include_once(/opt/sites/1142711/htdocs/__wp__//wp-content/plugins/learnpress/inc/admin/settings/email-groups/class-lp-settings-emails-group.php): failed to open stream: No such file or directory in /opt/sites/1142711/wpcom-149487500/wp-content/plugins/learnpress-assignments/inc/load.php on line 373
Warning: include_once(/opt/sites/1142711/htdocs/__wp__//wp-content/plugins/learnpress/inc/admin/settings/email-groups/class-lp-settings-emails-group.php): failed to open stream: No such file or directory in /opt/sites/1142711/wpcom-149487500/wp-content/plugins/learnpress-assignments/inc/load.php on line 373
PHP Warning: include_once(): Failed opening '/opt/sites/1142711/htdocs/__wp__//wp-content/plugins/learnpress/inc/admin/settings/email-groups/class-lp-settings-emails-group.php' for inclusion (include_path='phar:///usr/local/bin/wp-cli/vendor/phpunit/php-token-stream:phar:///usr/local/bin/wp-cli/vendor/phpunit/phpunit-mock-objects:phar:///usr/local/bin/wp-cli/vendor/phpunit/php-code-coverage:phar:/