Skip to content

Instantly share code, notes, and snippets.

add_action('generate_inside_navigation','generate_add_nav_shadows');
function generate_add_nav_shadows() {
?>
<div style="left: 0; margin-top: -12px;max-width: 100%;position: absolute;text-align: center;top: 0;z-index: 2;"><img src="http://www.zahnarzt-lorenz.de/dropshadow2.png" ></div>
<div style=" bottom: -10px;left: 0;max-width: 100%;position: absolute;text-align: center;z-index: 2;"><img src="http://www.zahnarzt-lorenz.de/dropshadow2.png" ></div>
<?php
}
add_action('after_setup_theme','generate_copyright_remove_default_message');
function generate_copyright_remove_default_message()
{
remove_action( 'generate_credits', 'generate_add_footer_info' );
remove_action( 'generate_copyright_line','generate_add_login_attribution' );
}
/**
* Add the custom copyright
define('GENERATE_DISABLE_MOBILE');
add_action( 'wp_print_scripts', 'generate_remove_hoverintent', 100 );
function generate_remove_hoverintent()
{
wp_dequeue_script( 'hoverIntent' );
}
remove_filter( 'wp_nav_menu_args', 'generate_wp_nav_menu_args' );
remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 );
add_action( 'generate_after_header' , 'generate_ubermenu' , 5 );
function generate_ubermenu()
{ ?>
<div class="grid-container">
<?php ubermenu( 'main' , array( 'theme_location' => 'primary' ) ); ?>
</div>
<?php
}
add_action('generate_before_content','generate_add_breadcrumbs');
function generate_add_breadcrumbs()
{
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb('<p id="breadcrumbs">','</p>');
}
}
<!-- Requires Spacing 0.9 or GeneratePress 1.1.10 -->
<style>
.inside-left-sidebar,
.inside-right-sidebar {
background: #FFF;
}
</style>
<script type="text/javascript">
(function($) {
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package Generate
<?php
require_once( '../../wp-load.php' );
if ( $_POST['generate_action'] == 'get_email' ) :
$args = array(
'post_type' => 'edd_license',
'showposts' => -1,
's' => $_POST['email']
<?php
/***********************************************
* Include the verification functions
* These functions are the same throughout all addons
***********************************************/
if ( file_exists( get_template_directory() . '/inc/addons/verification.php' ) ) :
require get_template_directory() . '/inc/addons/verification.php';
else :
require plugin_dir_path( __FILE__ ) . 'verification.php';
endif;