Skip to content

Instantly share code, notes, and snippets.

Thomas Weichselbaumer Netzberufler

Block or report user

Report or block Netzberufler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View scroll-to-top.js
/**
* Scroll to Top JS
*/
( function( $ ) {
$.fn.scrollToTop = function() {
var scrollButton = $( this );
@Netzberufler
Netzberufler / _mixins.scss
Last active Feb 15, 2019
Sass Mixins for Color Variables
View _mixins.scss
// Text Color Mixin.
@mixin color($colorVar) {
color: map-get($themeColors, $colorVar);
color: var($colorVar);
}
// Background Color mixin.
@mixin backgroundColor($colorVar) {
background-color: map-get($themeColors, $colorVar);
background-color: var($colorVar);
@Netzberufler
Netzberufler / style.css
Created Apr 12, 2017
Twenty Seventeen Full Width page template
View style.css
body.page-template-template-full-width #content #primary {
max-width: 100%;
}
body.page-template-template-full-width #content #primary .entry-header,
body.page-template-template-full-width #content #primary .entry-content {
float: none;
width: 100%;
}
@Netzberufler
Netzberufler / index.js
Created Nov 21, 2018
GT Theme Settings
View index.js
/**
* WordPress dependencies
*/
const { registerPlugin } = wp.plugins;
/**
* Internal dependencies
*/
import plugin from './plugin';
@Netzberufler
Netzberufler / functions-1.php
Last active Apr 24, 2018
WordPress Social Sharing Links
View functions-1.php
/**
* Return Social Sharing Links.
*/
function theme_slug_social_sharing() {
// Get current page URL.
$page_url = get_permalink();
// Get current page title.
$page_title = get_the_title();
@Netzberufler
Netzberufler / customizer.php
Last active Feb 26, 2018
Sidebar Layout Option im WordPress Customizer
View customizer.php
<?php
/**
* Adds Layout Options section and sidebar position setting.
*
* @param WP_Customize_Manager $wp_customize The Customizer object.
*/
function theme_slug_customize_register( $wp_customize ) {
// Add layout options section.
$wp_customize->add_section( 'theme_slug_layout_options', array(
@Netzberufler
Netzberufler / themezee-featured-content-cache-reset.php
Created Dec 14, 2017
Reset Featured Content Cache on WordPress.com
View themezee-featured-content-cache-reset.php
@Netzberufler
Netzberufler / footer.php
Created Dec 19, 2016
TwentySixteen Footer with Widgets
View footer.php
@Netzberufler
Netzberufler / content-portfolio.php
Created May 4, 2017
Portfolio Template using Static Child Pages
View content-portfolio.php
<?php
/**
* The template used for displaying portfolio items.
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a href="<?php the_permalink(); ?>" rel="bookmark">
<?php the_post_thumbnail( 'medium' ); ?>
@Netzberufler
Netzberufler / wp-plugin-boilerplate.php
Created Oct 19, 2016
WordPress Plugin Boilerplate
View wp-plugin-boilerplate.php
<?php
/*
Plugin Name: Plugin Boilerplate
Plugin URI: https://themecoder.de/
Description: My boilerplate for WordPress Plugins
Author: Thomas Weichselbaumer
Author URI: http://netzberufler.de
Version: 1.0
Text Domain: plugin-boilerplate
Domain Path: /languages/
You can’t perform that action at this time.