• 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

Various issues with Balance theme

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

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Various issues with Balance theme

This topic is: not resolved

Tagged: balance theme

  • This topic has 10 replies, 3 voices, and was last updated 11 years, 3 months ago by webmonkey.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • February 28, 2014 at 5:46 pm #92891
    webmonkey
    Participant

    It's happened a few times with StudioPress themes, that there's apparent collisions going on between home.php, the Genesis Theme Settings etc.

    For whatever reason, I can't see "Continue Reading" appearing in Balance anywhere after the Excerpts. There appears to be a reference to it in functions.php, but it doesn't show up on the site.

    Changing the number of posts per page in both the theme functions and homepage makes no difference. I want 4, it says 4 everywhere, I get 5. Here's the code:

    functions.php reference:

    /** Customize 'Read More' text */
    add_filter( 'get_the_content_more_link', 'balance_read_more_link' );
    add_filter( 'the_content_more_link', 'balance_read_more_link' );
    function balance_read_more_link() {
    	return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow">' . __( 'Continue Reading' ) . '</a>';
    } 

    home.php reference:

    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'child_grid_loop_helper' );
    /** Add support for Genesis Grid Loop **/
    function child_grid_loop_helper() {
    
    	if ( function_exists( 'genesis_grid_loop' ) ) {
    	
    		genesis_grid_loop( array(
    			'features' => 0,
    			'feature_image_size' => 0,
    			'feature_image_class' => 'align none post-image',
    			'feature_content_limit' => 0,
    			'grid_image_size' => 'grid',
    			'grid_image_class' => 'align none post-image',
    			'grid_content_limit' => 0,
    			'more' => __( 'Continue reading...', 'genesis' ),
    			'posts_per_page' => 4,
    		) );
    
    	}
    
    	else {
    		genesis_standard_loop();
    	}
    
    }
    
    genesis();
    March 1, 2014 at 1:54 am #92913
    Brad Dalton
    Participant

    You will need to choose the content limit rather than excerpts under Content Archives in the Genesis > Theme Settings.


    Tutorials for StudioPress Themes.

    March 4, 2014 at 3:57 pm #93425
    webmonkey
    Participant

    Balance respects WordPress Excerpts. I won't use the More tag as that ends up in misery if you start articles with an image. It's a horrible feature. Is there a way to add Continue Reading text to Excerpts?

    I am trying to reduce the number of articles visible on the homepage from 5 to 4. That wasn't addressed in this response.

    Are you with StudioPress? They don't seem to monitor these forums at all.

    March 4, 2014 at 8:15 pm #93458
    AnitaC
    Keymaster

    The forum is run by volunteers. This is not official support so no they don't monitor the forum often. Please provide a link to your website so we can take a look. Thank you.


    Need help with customization or troubleshooting? Reach out to me.

    March 5, 2014 at 12:59 pm #93557
    webmonkey
    Participant

    Thanks.

    Here's the staging site:
    http://turbo20.qnop.net/~changing/

    There are 5 articles on homepage, I just want 4.

    At the end of Excerpts, I want a "Continue Reading" link.

    March 5, 2014 at 1:20 pm #93565
    AnitaC
    Keymaster

    Open up the home.php file and look for this:

    	if ( function_exists( 'genesis_grid_loop' ) ) {
    	
    		genesis_grid_loop( array(
    			'features' => 1,
    			'feature_image_size' => 0,
    			'feature_image_class' => 'align none post-image',
    			'feature_content_limit' => 0,
    			'grid_image_size' => 'grid',
    			'grid_image_class' => 'align none post-image',
    			'grid_content_limit' => 0,
    			'more' => __( 'Continue reading...', 'genesis' ),
    			'posts_per_page' => 5,
    		) );

    You can change both in that code and save it.


    Need help with customization or troubleshooting? Reach out to me.

    March 5, 2014 at 1:21 pm #93566
    AnitaC
    Keymaster

    Excerpts don't have "Continue Reading" - but where it says "content limit" you can change 0 to say 250 and it will show up for you.


    Need help with customization or troubleshooting? Reach out to me.

    March 5, 2014 at 1:26 pm #93568
    webmonkey
    Participant

    That code you suggested I look at is the code I posted originally. Changing it to 4 from 5 made no difference. This is how this post began.

    I get that Excerpts don't have "Continue Reading". I don't want to do the content limit thing, preferring the control of Excerpts. I just need a link/image link at the end of Excerpts. That's got to be doable.

    March 5, 2014 at 1:29 pm #93569
    AnitaC
    Keymaster

    Sorry, for some reason I am not getting notified of others who are commenting on here. I am just clicking the latest permalink in the email to respond here. The only other solution I can offer for the number of posts is to go to Genesis > Settings, scroll down to Archive Settings and check that. If that is set up correctly, then go to Settings > Reading and change that number in there.


    Need help with customization or troubleshooting? Reach out to me.

    March 5, 2014 at 3:44 pm #93592
    webmonkey
    Participant

    Yes, thank you. Changing the Readings settings worked. Not sure why a custom home page wouldn't override that though. 🙁

    I found this code for adding a Read More link to Excerpts, but it's not functioning sadly:

    add_filter( 'excerpt_more', 'child_read_more_link' );
    add_filter( 'get_the_content_more_link', 'child_read_more_link' );
    add_filter( 'the_content_more_link', 'child_read_more_link' );
    /**
     * Custom Read More link.
     *
     * @author Greg Rickaby
     * @since 1.0.0
     */
    function child_read_more_link() {
    	return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow">Continue Reading...</a>';
    }

    There has to be a way to hook a permalink at the end of the Excerpt.

    March 15, 2014 at 12:30 pm #95054
    webmonkey
    Participant

    Here's the solution for the adding a more link to manual Excerpts:

    Customising the_excerpt

    Thanks folks.

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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