• 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

Dorian Speed

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 20 posts - 1 through 20 (of 140 total)
1 2 3 … 5 6 7 →
  • Author
    Posts
  • January 25, 2014 at 2:51 pm in reply to: Grid loop (Bill Erickson version) – content limit for features #86997
    Dorian Speed
    Member

    I realized I never came back to this thread to post the solution. Credit goes to Bill Erickson and Brandon Kraft for assistance with this. Here's the entirety of the front-page.php file I used (site is http://hisrocketman.com) to implement a grid loop with one limit for features and a different limit for teasers.

    <?php
    /**
     * Front Page
     *
     * @author       Bill Erickson <[email protected]>
     * @copyright    Copyright (c) 2011, Bill Erickson
     * @license      http://opensource.org/licenses/gpl-2.0.php GNU Public License
     *
     */
    
    function custom_excerpt_length( $length ) {
    	return 500;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999);
    
    /**
     * Grid Content
     * Change the number of words in excerpt if in the grid loop
     */
    function be_grid_content() {
     
    	// First, we make sure we're in the grid loop.
    	if( ! apply_filters( 'is_genesis_grid_loop', false ) )
    		return;
     
    	// Change length if teaser
    	if( in_array( 'one-half teaser', get_post_class() ) ) {
    		$length = 40;
    		}
    	else {
    		$length = 200;
    		 //print_r(get_post_class());
    }
     
    	echo '<p>' . wp_trim_words( get_the_excerpt(), $length ) . '<a class="more-link" href="' . get_permalink() . '" rel="nofollow">[Continue Reading]</a>' . '</p>';
    	// Remove default content so we don't get both
    	 remove_action( 'genesis_post_content', 'genesis_do_post_content' );
    }
    
    add_action( 'genesis_post_content', 'be_grid_content', 9 );
    
    /**
     * Remove Post Meta on Teasers
      */
    function be_archive_post_meta( $post_meta ) {
    	if( in_array( 'one-half teaser', get_post_class() ) )
    		remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
    		remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    }
    
    add_action('genesis_before_post', 'be_archive_post_meta');
    
    genesis();
    ?>

    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    January 25, 2014 at 1:21 pm in reply to: How to show excerpt on homepage if it exists #86988
    Dorian Speed
    Member

    Find the following code in front-page.php

    //* Genesis grid loop
    function minimum_grid_loop_helper() {
    
    	if ( function_exists( 'genesis_grid_loop' ) ) {
    		genesis_grid_loop( array(
    			'features'              => 0,
    			'feature_image_size'    => 0,
    			'feature_content_limit' => 0,
    			'grid_image_size'       => 0,
    			'grid_content_limit'    => 250,
    			'more'                  => __( '[Read more]', 'minimum' ),
    		) );
    	} else {
    
    		genesis_standard_loop();
    
    	}
    
    }

    Replace it with this (changing the grid content limit to zero):

    //* Genesis grid loop
    function minimum_grid_loop_helper() {
    
    	if ( function_exists( 'genesis_grid_loop' ) ) {
    		genesis_grid_loop( array(
    			'features'              => 0,
    			'feature_image_size'    => 0,
    			'feature_content_limit' => 0,
    			'grid_image_size'       => 0,
    			'grid_content_limit'    => 0,
    			'more'                  => __( '[Read more]', 'minimum' ),
    		) );
    	} else {
    
    		genesis_standard_loop();
    
    	}
    
    }

    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    January 12, 2014 at 4:35 pm in reply to: custom sidebar to use in a new page template #84834
    Dorian Speed
    Member

    Try this instead:

    //Use a different sidebar on this page template
    add_action('get_header','ds_change_genesis_sidebar');
    function ds_change_genesis_sidebar() {
            remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); //remove the default genesis sidebar
            add_action( 'genesis_sidebar', 'ds_do_sidebar' ); //add an action hook to call the function for my custom sidebar
    }
    
    //Function to output my custom sidebar
    function ds_do_sidebar() {
    	dynamic_sidebar( 'my-new-sidebar' );
    }

    Here's a related tutorial from Carrie Dils:
    http://www.carriedils.com/sidebar-custom-post-type/


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    October 22, 2013 at 12:14 pm in reply to: Number of posts to show on Home Page #68245
    Dorian Speed
    Member
    This reply has been marked as private.
    October 22, 2013 at 12:07 pm in reply to: Number of posts to show on Home Page #68243
    Dorian Speed
    Member
    This reply has been marked as private.
    October 22, 2013 at 11:26 am in reply to: Number of posts to show on Home Page #68227
    Dorian Speed
    Member

    Are you talking about changing the number of featured posts displayed in that widgeted area?

    Are you using the Genesis Featured Posts widget, or did you install the Genesis Featured Widget Amplified plugin?


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    October 22, 2013 at 11:21 am in reply to: little CSS question on the Genesis menu #68225
    Dorian Speed
    Member

    Hi, Rob - can you post a link to your site?

    When you say that they're the same in the CSS, I assume you mean that the primary and the secondary navigation are the same? There should be a section in the sample theme specific to the primary navigation and one for the secondary. So, for the primary, it would be something like:

    .nav-primary a:hover,
    .nav-primary .current-menu-item > a {
    color: #fff;
    }

    And for the secondary, it will be .nav-secondary instead.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    October 22, 2013 at 11:16 am in reply to: Metro Pro – Code for 2-column Category Layout? #68224
    Dorian Speed
    Member

    Hi there - I believe you could modify this using Bill Erickson's Genesis Grid Loop plugin:
    http://wordpress.org/plugins/genesis-grid-loop/

    That would let you set up two-column layouts on specific sections of the site.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    October 19, 2013 at 11:11 pm in reply to: How to create wintersong author widget in another theme #67754
    Dorian Speed
    Member

    Hi, Bazil - in Wintersong, that's actually a modification of the header, but you can accomplish something similar using a Genesis Author widget and modifying your style.css file.

    I highly recommend using Firebug to find the CSS that controls different elements on your site. We have a tutorial for using Firebug here: http://www.studiopress.com/tips/using-firebug.htm. I'd take a look at the Wintersong demo and go from there, using Firebug to suss out how that section is formatted.

    The round avatar is achieved with the border-radius property in CSS. In Wintersong, the code is:

    .site-header .avatar,
    .site-header .site-avatar img {
    border-radius: 50%;
    display: block;
    float: none;
    height: 112px;
    margin: 0 auto 30px;
    margin: 0 auto 3rem;
    width: 112px;
    }


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    October 19, 2013 at 10:54 pm in reply to: Genesis Agency Theme Width #67751
    Dorian Speed
    Member

    Hi - can you post a link to your site? Generally, you can use the Firebug extension for Firefox to inspect the layout and CSS for your site. Each of those elements is going to have specific properties you can alter.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    October 19, 2013 at 10:52 pm in reply to: add image to header in Eleven40 Pro #67750
    Dorian Speed
    Member

    Hi, Heidi - can you elaborate on what you mean? I see that you have a logo in place on your site on the left. Are you wanting to add a section above the header that could include an image?


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    July 22, 2013 at 5:19 pm in reply to: My structural wraps are neither structured nor wrapping #51950
    Dorian Speed
    Member

    Yes! Gary Jones, WordPress super genius, helped me out. I needed a min-width.

    .wrap {
    margin: 0 auto;
    width: 1152px;
    }

    #wrap {
    background: url(images/bg.png) repeat-x transparent;
    margin: 0 auto;
    min-width: 1152px;
    }

    Thanks for everyone's assistance!


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    July 22, 2013 at 2:07 pm in reply to: My structural wraps are neither structured nor wrapping #51902
    Dorian Speed
    Member

    Oh, forgot to add that - yeah, I tried it with AND without the viewport tag. No difference. Sad trombone.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    July 22, 2013 at 1:56 pm in reply to: My structural wraps are neither structured nor wrapping #51898
    Dorian Speed
    Member

    Thanks - yeah, I tried those suggestions and the Internet still hates me, so I'm not sure what else to do. It feels like what happens is that the site sets the width of these elements as the same as the viewport, so if you zoom back out, it's cut those off at that point.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    July 11, 2013 at 11:05 pm in reply to: Disabling responsive design, for phones, on an individual page #50329
    Dorian Speed
    Member

    So - what's the deal? You want people to be able to see all five sections at once without a whole bunch of scrolling? Is that the menu you're talking about, or am I missing something?

    What about if you...

    Create a class that ONLY displays on mobile devices.
    Create a bulleted list in the intro paragraph about "check out all of these amazing answers" and wrap it in said class.
    Each item on the list links to that section on the page. Here's a tutorial on how to do so.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    July 11, 2013 at 9:19 pm in reply to: Disabling responsive design, for phones, on an individual page #50320
    Dorian Speed
    Member

    I'm sure there are a few ways to do this. What I'd do, I think, is assign a body class to that page. Then, in the media queries (the part of style.css that makes the theme responsive), you could specify that for that body class, use the original settings. Are you familiar with body classes? This is a good overview.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    July 11, 2013 at 9:16 pm in reply to: How to get an author box below posts? #50318
    Dorian Speed
    Member

    It's a setting you'd choose for each individual author - on the person's profile, you can click "Show Author box below this person's posts."


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    July 10, 2013 at 4:12 pm in reply to: Genesis Grid Loop – Education Theme? #50143
    Dorian Speed
    Member

    Well, I think you should be able to do that - if you edit the home.php file to remove some of the widgets (not sure I am following when you refer to inner and outer widgets), you can then have the grid loop. I know I've used the grid loop on a site that had a widgeted area at the top. The client ended up ditching the slider on her homepage so we axed the widgeted area but at one point, it was working.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    July 10, 2013 at 2:43 pm in reply to: Genesis Grid Loop – Education Theme? #50135
    Dorian Speed
    Member

    I haven't done it (although I've used the grid loop and have worked with that particular theme), but I would think it should work. This post by Bill Erickson (who wrote the plugin for the grid loop) is an excellent overview of how to implement it.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    July 8, 2013 at 1:35 pm in reply to: SEO Title Tags & Meta Description Tags #49834
    Dorian Speed
    Member

    Did you try disabling all of your plugins?

    I've mentioned this issue on Twitter and hopefully another user can chime in with other suggestions. You should also try going through the StudioPress help desk.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 140 total)
1 2 3 … 5 6 7 →

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 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