Skip to content

Instantly share code, notes, and snippets.

<?php
function tw_remove_menu_pages() {
// remove testimonials menu section
// remove_menu_page( 'edit.php?post_type=testimonials-widget' );
// remove categories
remove_submenu_page( 'edit.php?post_type=testimonials-widget', 'edit-tags.php?taxonomy=category&amp;post_type=testimonials-widget' );
// remove tags
@dubravkoL
dubravkoL / htmlTags.html
Last active March 14, 2018 14:19
HEAD html - Must-Have Social Meta Tags for Twitter, Google+, Facebook and More
<head>
<!--///////// Minimum Social Media Tag Template: Article //////////-->
<!-- Place this data between the <head> tags of your website -->
<title>Page Title. Maximum length 60-70 characters</title>
<meta name="description" content="Page description. No longer than 155 characters." />
@dubravkoL
dubravkoL / 0_reuse_code.js
Last active August 29, 2015 14:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dubravkoL
dubravkoL / parseUrl.js
Created November 4, 2014 19:10
parseUrl.js
var a,
url = 'http://m.cg/';
a = document.createElement('a');
a.href = url;
console.log(a.protocol); // "http:"
console.log(a.hostname); // "m.cg"
console.log(a.pathname); // "/"
.thumbs-block {
position:relative; /**/
overflow: hidden;
background: #ccc;
margin: 0 5px;
width: 714px;
height:142px; /**/
}
.thumbs-block .thumbs {
white-space: nowrap;