Community Forums › Forums › Archived Forums › Design Tips and Tricks › Extra responsive menu icon
Tagged: parralex pro, responsive menu icon
- This topic has 1 reply, 2 voices, and was last updated 7 years, 6 months ago by emasai.
-
AuthorPosts
-
October 3, 2016 at 7:30 am #194150alysiamacMember
I've got an extra responsive menu icon (hamburger) showing and I can't find any code. I think I've been looking at this too long.
Here is my functions.php
=====
<?php
//* Start the engine
include_once( get_template_directory() . '/lib/init.php' );//* Setup Theme
include_once( get_stylesheet_directory() . '/lib/theme-defaults.php' );//* Set Localization (do not remove)
load_child_theme_textdomain( 'parallax', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'parallax' ) );//* Add Image upload to WordPress Theme Customizer
add_action( 'customize_register', 'parallax_customizer' );
function parallax_customizer(){require_once( get_stylesheet_directory() . '/lib/customize.php' );
}
//* Include Section Image CSS
include_once( get_stylesheet_directory() . '/lib/output.php' );//* Child theme (do not remove)
define( 'CHILD_THEME_NAME', 'Pro Package' );
define( 'CHILD_THEME_URL', 'http://westcountrywebsitecompany.co.uk/' );
define( 'CHILD_THEME_VERSION', '1.0' );//* Enqueue scripts and styles
add_action( 'wp_enqueue_scripts', 'parallax_enqueue_scripts_styles' );
function parallax_enqueue_scripts_styles() {wp_enqueue_script( 'parallax-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
wp_enqueue_style( 'parallax-google-fonts', '//fonts.googleapis.com/css?family=Montserrat|Sorts+Mill+Goudy', array(), CHILD_THEME_VERSION );
wp_enqueue_style( 'prefix-font-awesome', 'http://netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css', array(), '4.2.0' );}
//* Add HTML5 markup structure
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) );//* Add viewport meta tag for mobile browsers
add_theme_support( 'genesis-responsive-viewport' );//* Reposition the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_nav' );//* Reposition the secondary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_footer', 'genesis_do_subnav', 7 );//* Reduce the secondary navigation menu to one level depth
add_filter( 'wp_nav_menu_args', 'parallax_secondary_menu_args' );
function parallax_secondary_menu_args( $args ){if( 'secondary' != $args['theme_location'] )
return $args;$args['depth'] = 1;
return $args;}
//* Unregister layout settings
genesis_unregister_layout( 'content-sidebar-sidebar' );
genesis_unregister_layout( 'sidebar-content-sidebar' );
genesis_unregister_layout( 'sidebar-sidebar-content' );//* Add support for additional color styles
add_theme_support( 'genesis-style-selector', array(
'parallax-pro-blue' => __( 'Parallax Pro Blue', 'parallax' ),
'parallax-pro-green' => __( 'Parallax Pro Green', 'parallax' ),
'parallax-pro-orange' => __( 'Parallax Pro Orange', 'parallax' ),
'parallax-pro-pink' => __( 'Parallax Pro Pink', 'parallax' ),
) );//* Unregister secondary sidebar
unregister_sidebar( 'sidebar-alt' );//* Add support for custom header
add_theme_support( 'custom-header', array(
'width' => 360,
'height' => 70,
'header-selector' => '.site-title a',
'header-text' => false,
) );//* Add support for structural wraps
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
'footer-widgets',
'footer',
) );//* Modify the size of the Gravatar in the author box
add_filter( 'genesis_author_box_gravatar_size', 'parallax_author_box_gravatar' );
function parallax_author_box_gravatar( $size ) {return 176;
}
//* Modify the size of the Gravatar in the entry comments
add_filter( 'genesis_comment_list_args', 'parallax_comments_gravatar' );
function parallax_comments_gravatar( $args ) {$args['avatar_size'] = 120;
return $args;
}
//* Add support for 3-column footer widgets
add_theme_support( 'genesis-footer-widgets', 1 );//* Add support for after entry widget
add_theme_support( 'genesis-after-entry-widget-area' );//* Relocate after entry widget
remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );
add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 5 );//* Register widget areas
genesis_register_sidebar( array(
'id' => 'home-section-1',
'name' => __( 'Home Section 1', 'parallax' ),
'description' => __( 'This is the home section 1 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'home-section-2',
'name' => __( 'Home Section 2', 'parallax' ),
'description' => __( 'This is the home section 2 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'home-section-3',
'name' => __( 'Home Section 3', 'parallax' ),
'description' => __( 'This is the home section 3 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'home-section-4',
'name' => __( 'Home Section 4', 'parallax' ),
'description' => __( 'This is the home section 4 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'home-section-5',
'name' => __( 'Home Section 5', 'parallax' ),
'description' => __( 'This is the home section 5 section.', 'parallax' ),
) );//* Remove breadcrumb from a single page (Blog)
//* https://codex.wordpress.org/Function_Reference/is_page
function b3m_remove_genesis_breadcrumb() {
if ( is_page( 'news' ) ) {
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
}
}
add_action( 'genesis_before', 'b3m_remove_genesis_breadcrumb' );//* View columns in visual editor
add_editor_style( 'editor-style.css' );//*Lightbox
// Enqueue Scripts/Styles for our Lightbox
function child_theme_add_lightbox() {
wp_enqueue_script( 'fancybox', get_bloginfo( 'stylesheet_directory' ) . '/js/jquery.fancybox.pack.js', array( 'jquery' ), false, true );
wp_enqueue_script( 'lightbox', get_bloginfo( 'stylesheet_directory' ) . '/js/lightbox.js', array( 'fancybox' ), false, true );
wp_enqueue_style( 'lightbox-style', get_bloginfo( 'stylesheet_directory' ) . '/css/jquery.fancybox.css' );
}add_action( 'wp_enqueue_scripts', 'child_theme_add_lightbox' );
/** Customize the credits */
add_filter( 'genesis_footer_creds_text', 'custom_footer_creds_text' );
function custom_footer_creds_text() {
echo '<div class="creds"><p>';
echo 'Copyright © ';
echo date('Y ');
echo get_bloginfo('name');
echo ' · Terms & Conditions';
echo ' · Privacy Policy & Cookies';
echo ' · Built by West Country Website Co.';
echo '</p></div>';
}add_filter('widget_text', 'do_shortcode');
/* HTML in Widgets*/
// Allow HTML tags in Widget title
function html_widget_title( $var) {
$var = (str_replace( '[', '<', $var ));
$var = (str_replace( ']', '>', $var ));
return $var ;}
add_filter( 'widget_title', 'html_widget_title' );
// Usage : Use Forum type BB code styling just replace < & > with [ and ]
// If you wanna give class to tag , Apply without Quote.
// See Example Below.
/*Title with[span class=class_without_quote ]span Tag[/span]*//* Extra Widgets*/
genesis_register_sidebar( array(
'id' => 'home-section-6',
'name' => __( 'Home Section 6', 'parallax' ),
'description' => __( 'This is the home section 6 section.', 'parallax' ),
) );genesis_register_sidebar( array(
'id' => 'home-section-7',
'name' => __( 'Home Section 7', 'parallax' ),
'description' => __( 'This is the home section 7 section.', 'parallax' ),
) );//* Register header widget areas
genesis_register_sidebar( array(
'id' => 'header-left-widget',
'name' => __( 'Header Left', 'wpsites' ),
'description' => __( 'This is the header left section.', 'wpsites' ),
) );
genesis_register_sidebar( array(
'id' => 'header-middle-widget',
'name' => __( 'Header Middle', 'wpsites' ),
'description' => __( 'This is the header middle section.', 'wpsites' ),
) );
genesis_register_sidebar( array(
'id' => 'header-right-widget',
'name' => __( 'Header Right', 'wpsites' ),
'description' => __( 'This is the header right section.', 'wpsites' ),
) );/* Register before header widget area
genesis_register_sidebar( array(
'id' => 'before-header',
'name' => __( 'Before Header', 'parallax' ),
'description' => __( 'This is the before header widget area.', 'parallax' ),
) );*/unregister_sidebar( 'header-right' );
remove_action( 'genesis_header', 'genesis_do_header' );
add_action( 'genesis_header', 'three_header_widgets' );function three_header_widgets() {
if ( is_active_sidebar( 'header-left-widget' ) || is_active_sidebar( 'header-middle-widget' ) || is_active_sidebar( 'header-right-widget' ) ) {
genesis_widget_area( 'header-left-widget', array(
'before' => '<div class="one-third first genesis-nav-menu">',
'after' => '</div>',
) );genesis_widget_area( 'header-middle-widget', array(
'before' => '<div class="one-third">',
'after' => '</div>',
) );genesis_widget_area( 'header-right-widget', array(
'before' => '<div class="one-third">',
'after' => '</div>',
) );}
}//* Add custom body class to the head
add_filter( 'body_class', 'sp_body_class' );
function sp_body_class( $classes ) {
if ( is_page( 'kudos-plus', 'delivery-and-installation' ) )
$classes[] = 'range';
return $classes;
}/* Hook before header widget area before site header
add_action( 'genesis_before_header', 'bg_before_header_widget_area' );
function bg_before_header_widget_area() {
genesis_widget_area( 'before-header', array(
'before' => '<div class="before-header widget-area"><div class="wrap">',
'after' => '</div></div>',
) );
}*///* Activate the use of Dashicons
add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' );
function load_dashicons_front_end() {
wp_enqueue_style( 'dashicons' );
}
/* Enqueue scripts for Responsive menu
add_action( 'wp_enqueue_scripts', 'enqueue_responsive_menu_script' );
function enqueue_responsive_menu_script() {wp_enqueue_script( 'my-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
}/*
=======
Any help most appreciated
http://79.170.44.102/luxhottubs.com/October 3, 2016 at 10:48 am #194165emasaiParticipantI can only see one in Chrome, Safari and Firefox on a Mac
Need Website Customization or a Responsive CSS fix? Contact Me
Lynne emasai.com -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.