Skip to content

Instantly share code, notes, and snippets.

<?php
function theme_slug_customize_register( $wp_customize ) {
$wp_customize->add_section( 'sample_section',
array(
'title' => 'Sample Section',
'panel' => 'nav_menus',
)
);
@wenthemes
wenthemes / show-logo-and-title-wen-corporate.php
Created May 4, 2015 07:01
show logo and title in WEN Corporate
function wen_corporate_implement_header_logo(){
$header_layout = wen_corporate_get_option( 'header_layout' );
if ( ! in_array( $header_layout, array('layout-1','layout-2') )) {
$header_layout = 'layout-1';
}
switch ($header_layout) {
case 'layout-1':
@wenthemes
wenthemes / centering-footer.php
Created April 22, 2015 03:44
centering footer in WEN Corporate
@wenthemes
wenthemes / banner-slider.php
Created April 17, 2015 11:31
Page slider in WEN Corporate (Quick fix)
<?php
$slider_category = wen_corporate_get_option( 'slider_category' );
$number_of_slides = wen_corporate_get_option( 'number_of_slides' );
$transition_effect = wen_corporate_get_option( 'transition_effect' );
$show_caption = wen_corporate_get_option( 'show_caption' );
$show_pager = wen_corporate_get_option( 'show_pager' );
$auto_play = wen_corporate_get_option( 'auto_play' );
$transition_delay = wen_corporate_get_option( 'transition_delay' );
$transition_length = wen_corporate_get_option( 'transition_length' );
@wenthemes
wenthemes / disable-slider-in-blog-page.php
Created April 5, 2015 11:09
disable slider in blog page in WEN Corporate
<?php
// Put this code in your child theme's functions.php file
add_filter( 'wen_corporate_filter_apply_banner', 'custom_slider_check', 20 );
function custom_slider_check( $input ){
if ( is_home() ) {
$input = false;
}
return $input;
@wenthemes
wenthemes / changing-copyright.php
Created April 5, 2015 08:20
changing copyright text in WEN Business