• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Brian Dusablon

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 12 posts - 21 through 32 (of 32 total)
← 1 2
  • Author
    Posts
  • December 23, 2013 at 12:43 pm in reply to: Exclude category from home.php Genesis 2.0 – help? #80928
    Brian Dusablon
    Participant

    mydivorcepal.com


    Blog · Duce Enterprises · Twitter

    December 23, 2013 at 12:35 pm in reply to: WooCommerce and Stretch Theme #80923
    Brian Dusablon
    Participant

    Thanks, Lynne, but that didn't help any.

    I'm using GCW and it's configured properly, but I still can't get all my products on one page, nor can I get the "add to cart" button to show up on the variation products.


    Blog · Duce Enterprises · Twitter

    December 23, 2013 at 12:34 pm in reply to: How do I had links to the next and previous post at then end of my single posts? #80922
    Brian Dusablon
    Participant

    I'm having another issue. This code isn't working for me.

    Here's entire functions.php:

    <?php
    //* Start the engine
    include_once( get_template_directory() . '/lib/init.php' );
    
    //* Set Localization (do not remove)
    load_child_theme_textdomain( 'eleven40', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'eleven40' ) );
    
    //* Child theme (do not remove)
    define( 'CHILD_THEME_NAME', __( 'eleven40 Pro Theme', 'eleven40' ) );
    define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/eleven40/' );
    define( 'CHILD_THEME_VERSION', '2.0' );
    
    //* Add HTML5 markup structure
    add_theme_support( 'html5' );
    
    //* Add viewport meta tag for mobile browsers
    add_theme_support( 'genesis-responsive-viewport' );
    
    //* Load Lora and Oswald Google fonts
    add_action( 'wp_enqueue_scripts', 'eleven40_google_fonts' );
    function eleven40_google_fonts() {
    	wp_enqueue_style( 'google-font', '//fonts.googleapis.com/css?family=Lora:400,700|Oswald:400', array(), PARENT_THEME_VERSION );
    }
    
    //* Add new featured image size
    add_image_size( 'grid-featured', 270, 100, TRUE );
    
    //* Add support for custom header
    add_theme_support( 'custom-header', array(
    	'width'			=> 320,
    	'height'		=> 65,
    	'header-selector'	=> '.site-header .title-area',
    	'header-text'		=> false
    ) );
    
    //* Add support for structural wraps
    add_theme_support( 'genesis-structural-wraps', array(
    	'header',
    	'nav',
    	'subnav',
    	'site-inner',
    	'footer-widgets',
    	'footer'
    ) );
    
    //* Add support for additional color styles
    add_theme_support( 'genesis-style-selector', array(
    	'eleven40-pro-blue'	=> __( 'eleven40 Pro Blue', 'eleven40' ),
    	'eleven40-pro-green'	=> __( 'eleven40 Pro Green', 'eleven40' ),
    	'eleven40-pro-red'	=> __( 'eleven40 Pro Red', 'eleven40' )
    ) );
    
    //* Reposition the site description
    remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
    //* add_action( 'genesis_before_content_sidebar_wrap', 'genesis_seo_site_description' );
    
    //* 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_before_content_sidebar_wrap', 'genesis_do_subnav' );
    
    //* Add support for 3-column footer widgets
    add_theme_support( 'genesis-footer-widgets', 3 );
    
    // Home Category Removal
    add_filter('genesis_grid_loop_args', 'exclude_category_from_home');
    function exclude_category_from_home($args){
       $args['cat'] = '-7'; //Please add your category id
      return $args;
    }
    
    // AG ADDED
    
    // Register Genesis Menus
    add_theme_support ( 'genesis-menus' , array ( 'primary' => 'Primary Navigation Menu' , 'secondary' => 'Secondary Navigation Menu' ,'mobile' => 'Mobile Navigation Menu' ) );
    
    // Add Support for Structural Wraps
    add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'menu-mobile', 'subnav', 'site-inner', 'footer-widgets', 'footer') );
    
    add_action( 'genesis_before_header', 'gst_do_mobilenav' );
    /**
     * Create the Mobile Navigation Menu.
     *
     * @author Brad Potter
     * 
     * @link http://www.bradpotter.com
     *
     * Based on code from the StudioPress Genesis Framework 2.0
     */
    function gst_do_mobilenav() {
    
    	//* Do nothing if menu not supported
    	if ( ! genesis_nav_menu_supported( 'mobile' ) )
    		return;
    
    	//* If menu is assigned to theme location, output
    	if ( has_nav_menu( 'mobile' ) ) {
    
    		$class = 'menu genesis-nav-menu menu-mobile';
    		if ( genesis_superfish_enabled() )
    			$class .= ' js-superfish';
    
    		$args = array(
    			'theme_location' => 'mobile',
    			'container'      => '',
    			'menu_class'     => $class,
    			'echo'           => 0,
    		);
    
    		$mobilenav = wp_nav_menu( $args );
    
    		//* Do nothing if there is nothing to show
    		if ( ! $mobilenav )
    			return;
    
    		$mobilenav_markup_open = genesis_markup( array(
    			'html5'   => '<nav %s>',
    			'xhtml'   => '<div id="mobilenav">',
    			'context' => 'nav-mobile',
    			'echo'    => false,
    		) );
    		
    		$mobilenav_markup_open .= genesis_structural_wrap( 'menu-mobile', 'open', 0 );
    
    		$mobilenav_markup_close  = genesis_structural_wrap( 'menu-mobile', 'close', 0 );
    		$mobilenav_markup_close .= genesis_html5() ? '</nav>' : '</div>';
    
    		$mobilenav_output = $mobilenav_markup_open . $mobilenav . $mobilenav_markup_close;
    
    		echo apply_filters( 'gst_do_mobilenav', $mobilenav_output, $mobilenav, $args );
    
    	}
    
    }
    
    add_filter( 'genesis_attr_nav-mobile', 'gst_attributes_nav_mobile' );
    /**
     * Add Attributes for Mobile Navigation Menu.
     * 
     * @author Brad Potter
     * 
     * @link http://www.bradpotter.com
     *
     * Based on code from the StudioPress Genesis Framework 2.0
     */
    function gst_attributes_nav_mobile( $attributes ) {
    
    	$attributes['role']      = 'navigation';
    	$attributes['itemscope'] = 'itemscope';
    	$attributes['itemtype']  = 'http://schema.org/SiteNavigationElement';
    
    	return $attributes;
    }
    
    /**
     * Register and Enqueue Mobile Navigation Menu script
     * 
     * @author Brad Potter
     * 
     * @link http://www.bradpotter.com
     */
    function gst_mobilemenu_script() {
      	
    	wp_register_script( 'mobile-menu', get_stylesheet_directory_uri() . '/js/mobilemenu.js', array('jquery'), '1.0.0', false );
    	wp_enqueue_script( 'mobile-menu' );
    
     }
    add_action('wp_enqueue_scripts', 'gst_mobilemenu_script');
    
    /**Register Widgets*/
    
    genesis_register_sidebar( array(
        'id' => 'home-featured',
        'name' => __( 'Home Featured', 'eleven40' ),
        'description' => __( 'This is the home featured section.', 'eleven40' ),
    ) );
    
    // Next and Previous Post Links
    function wpsites_npp_navigation_links() {
    if ( is_single ( ) ) { ?>
    <?php previous_post('&laquo; &laquo; %', 'Previous', 'yes'); ?>
     | <?php next_post('% &raquo; &raquo; ', 'Next', 'yes'); ?>
    <?php
    } }
    /**
    * @author Brad Dalton
    * @learn more http://wp.me/p1lTu0-9z2
    */
    add_action('genesis_after_post_content', 'wpsites_npp_navigation_links', 5 );

    Blog · Duce Enterprises · Twitter

    December 23, 2013 at 12:33 pm in reply to: How do I had links to the next and previous post at then end of my single posts? #80921
    Brian Dusablon
    Participant

    Rick, it has instructions for turning the title on. (change no to yes in the page links code).


    Blog · Duce Enterprises · Twitter

    December 23, 2013 at 12:27 pm in reply to: Exclude category from home.php Genesis 2.0 – help? #80920
    Brian Dusablon
    Participant

    That didn't work for me. Here's my entire functions.php file.

    <?php
    //* Start the engine
    include_once( get_template_directory() . '/lib/init.php' );
    
    //* Set Localization (do not remove)
    load_child_theme_textdomain( 'eleven40', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'eleven40' ) );
    
    //* Child theme (do not remove)
    define( 'CHILD_THEME_NAME', __( 'eleven40 Pro Theme', 'eleven40' ) );
    define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/eleven40/' );
    define( 'CHILD_THEME_VERSION', '2.0' );
    
    //* Add HTML5 markup structure
    add_theme_support( 'html5' );
    
    //* Add viewport meta tag for mobile browsers
    add_theme_support( 'genesis-responsive-viewport' );
    
    //* Load Lora and Oswald Google fonts
    add_action( 'wp_enqueue_scripts', 'eleven40_google_fonts' );
    function eleven40_google_fonts() {
    	wp_enqueue_style( 'google-font', '//fonts.googleapis.com/css?family=Lora:400,700|Oswald:400', array(), PARENT_THEME_VERSION );
    }
    
    //* Add new featured image size
    add_image_size( 'grid-featured', 270, 100, TRUE );
    
    //* Add support for custom header
    add_theme_support( 'custom-header', array(
    	'width'			=> 320,
    	'height'		=> 65,
    	'header-selector'	=> '.site-header .title-area',
    	'header-text'		=> false
    ) );
    
    //* Add support for structural wraps
    add_theme_support( 'genesis-structural-wraps', array(
    	'header',
    	'nav',
    	'subnav',
    	'site-inner',
    	'footer-widgets',
    	'footer'
    ) );
    
    //* Add support for additional color styles
    add_theme_support( 'genesis-style-selector', array(
    	'eleven40-pro-blue'	=> __( 'eleven40 Pro Blue', 'eleven40' ),
    	'eleven40-pro-green'	=> __( 'eleven40 Pro Green', 'eleven40' ),
    	'eleven40-pro-red'	=> __( 'eleven40 Pro Red', 'eleven40' )
    ) );
    
    //* Reposition the site description
    remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
    //* add_action( 'genesis_before_content_sidebar_wrap', 'genesis_seo_site_description' );
    
    //* 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_before_content_sidebar_wrap', 'genesis_do_subnav' );
    
    //* Add support for 3-column footer widgets
    add_theme_support( 'genesis-footer-widgets', 3 );
    
    // Home Category Removal
    add_filter('genesis_grid_loop_args', 'exclude_category_from_home');
    function exclude_category_from_home($args){
       $args['cat'] = '-7'; //Please add your category id
      return $args;
    }
    
    // AG ADDED
    
    // Register Genesis Menus
    add_theme_support ( 'genesis-menus' , array ( 'primary' => 'Primary Navigation Menu' , 'secondary' => 'Secondary Navigation Menu' ,'mobile' => 'Mobile Navigation Menu' ) );
    
    // Add Support for Structural Wraps
    add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'menu-mobile', 'subnav', 'site-inner', 'footer-widgets', 'footer') );
    
    add_action( 'genesis_before_header', 'gst_do_mobilenav' );
    /**
     * Create the Mobile Navigation Menu.
     *
     * @author Brad Potter
     * 
     * @link http://www.bradpotter.com
     *
     * Based on code from the StudioPress Genesis Framework 2.0
     */
    function gst_do_mobilenav() {
    
    	//* Do nothing if menu not supported
    	if ( ! genesis_nav_menu_supported( 'mobile' ) )
    		return;
    
    	//* If menu is assigned to theme location, output
    	if ( has_nav_menu( 'mobile' ) ) {
    
    		$class = 'menu genesis-nav-menu menu-mobile';
    		if ( genesis_superfish_enabled() )
    			$class .= ' js-superfish';
    
    		$args = array(
    			'theme_location' => 'mobile',
    			'container'      => '',
    			'menu_class'     => $class,
    			'echo'           => 0,
    		);
    
    		$mobilenav = wp_nav_menu( $args );
    
    		//* Do nothing if there is nothing to show
    		if ( ! $mobilenav )
    			return;
    
    		$mobilenav_markup_open = genesis_markup( array(
    			'html5'   => '<nav %s>',
    			'xhtml'   => '<div id="mobilenav">',
    			'context' => 'nav-mobile',
    			'echo'    => false,
    		) );
    		
    		$mobilenav_markup_open .= genesis_structural_wrap( 'menu-mobile', 'open', 0 );
    
    		$mobilenav_markup_close  = genesis_structural_wrap( 'menu-mobile', 'close', 0 );
    		$mobilenav_markup_close .= genesis_html5() ? '</nav>' : '</div>';
    
    		$mobilenav_output = $mobilenav_markup_open . $mobilenav . $mobilenav_markup_close;
    
    		echo apply_filters( 'gst_do_mobilenav', $mobilenav_output, $mobilenav, $args );
    
    	}
    
    }
    
    add_filter( 'genesis_attr_nav-mobile', 'gst_attributes_nav_mobile' );
    /**
     * Add Attributes for Mobile Navigation Menu.
     * 
     * @author Brad Potter
     * 
     * @link http://www.bradpotter.com
     *
     * Based on code from the StudioPress Genesis Framework 2.0
     */
    function gst_attributes_nav_mobile( $attributes ) {
    
    	$attributes['role']      = 'navigation';
    	$attributes['itemscope'] = 'itemscope';
    	$attributes['itemtype']  = 'http://schema.org/SiteNavigationElement';
    
    	return $attributes;
    }
    
    /**
     * Register and Enqueue Mobile Navigation Menu script
     * 
     * @author Brad Potter
     * 
     * @link http://www.bradpotter.com
     */
    function gst_mobilemenu_script() {
      	
    	wp_register_script( 'mobile-menu', get_stylesheet_directory_uri() . '/js/mobilemenu.js', array('jquery'), '1.0.0', false );
    	wp_enqueue_script( 'mobile-menu' );
    
     }
    add_action('wp_enqueue_scripts', 'gst_mobilemenu_script');
    
    /**Register Widgets*/
    
    genesis_register_sidebar( array(
        'id' => 'home-featured',
        'name' => __( 'Home Featured', 'eleven40' ),
        'description' => __( 'This is the home featured section.', 'eleven40' ),
    ) );

    Blog · Duce Enterprises · Twitter

    December 23, 2013 at 11:58 am in reply to: Exclude category from home.php Genesis 2.0 – help? #80915
    Brian Dusablon
    Participant

    merlene, did you ever find a solution? I had it working on a site a while back, I think with some code from Brad Dalton. But now it's not working.


    Blog · Duce Enterprises · Twitter

    December 23, 2013 at 10:31 am in reply to: WooCommerce and Stretch Theme #80903
    Brian Dusablon
    Participant

    Second issue is with selecting sizes. The add-to-cart button does not appear.
    http://drfc.wpengine.com/product/shorts/


    Blog · Duce Enterprises · Twitter

    October 4, 2013 at 9:32 am in reply to: Eleven40 Pro Banner #65353
    Brian Dusablon
    Participant

    Jen,

    What did your full code solution for this end up being? I'm trying to do the same thing on Eleven40 Pro - have just a banner image on the home page only. Where did you put the code? In home.php or the functions.php file?

    Thanks!


    Blog · Duce Enterprises · Twitter

    October 1, 2013 at 8:54 am in reply to: Eleven40 Pro Questions #64937
    Brian Dusablon
    Participant

    I need this as well - trying to add a banner/call to action in place of the site description.

    Still want to use the site description for SEO purposes.

    Best option for this?


    Blog · Duce Enterprises · Twitter

    September 21, 2013 at 6:48 am in reply to: Genesis child themes are cool enough? #63643
    Brian Dusablon
    Participant

    @thedarkmist - how is the Minimum theme touch menu not usable? It seems to work well for me on touch devices. How would you improve it?


    Blog · Duce Enterprises · Twitter

    August 3, 2013 at 7:15 am in reply to: Add Portfolio to Eleven40 #53927
    Brian Dusablon
    Participant

    Thanks Brad, but that tutorial didn't seem to work for me.

    Maybe I missed something.

    Also, does that portfolio page follow the rest of the theme and behave responsively on smaller screens?

    http://gamesczar.wpengine.com/portfolio/


    Blog · Duce Enterprises · Twitter

    December 8, 2012 at 1:49 pm in reply to: Responsive page with video #3872
    Brian Dusablon
    Participant

    Excellent. That worked great. Thanks!

    Here's a good tutorial on the plugin as well: http://kevindees.cc/2011/09/using-fitvids-js-with-wordpress-for-responsive-videos/


    Blog · Duce Enterprises · Twitter

  • Author
    Posts
Viewing 12 posts - 21 through 32 (of 32 total)
← 1 2
« Previous Page

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble