• 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

Pagination without the word 'Pages:' – code for the child 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 › Pagination without the word 'Pages:' – code for the child theme?

This topic is: not resolved

Tagged: Pagination Pages child theme

  • This topic has 5 replies, 2 voices, and was last updated 12 years, 1 month ago by Tomas Risberg.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • August 16, 2014 at 7:14 am #119191
    Tomas Risberg
    Member

    I'm trying to make pagination look good on my static pages. I'm writing in two languages at the site. For the moment I don't find it necessary to install a special plug-in for that. Instead I try to remove all instances were I would have to choose either language.

    I have been able to remove the word 'Pages:' from this file in the Genesis Framework:

    themes/genesis/lib/structure/post.php

    This is how the code looks:

    
    function genesis_do_post_content_nav() {
    
    	wp_link_pages( array(
    		'before' => genesis_markup( array(
    				'html5'   => '<div %s>',
    				'xhtml'   => '<p class="pages">',
    				'context' => 'entry-pagination',
    				'echo'    => false,
    			) ) . __( 'Pages:', 'genesis' ),
    		'after'  => genesis_html5() ? '</div>' : '</p>',
    	) );
    
    }
    

    Since I know I shouldn't modify the Genesis Framework I wonder if anyone have the code that I can add to my child theme to remove the word 'Pages:' so that it doesn't show in my pagination?

    http://exp.silent.se/character
    August 16, 2014 at 10:41 am #119215
    Brad Dalton
    Participant

    Try this http://wpsites.net/web-design/genesis-modify-pagination-for-wp-link-pages-next-page-tag/


    Tutorials for StudioPress Themes.

    August 16, 2014 at 3:28 pm #119271
    Tomas Risberg
    Member

    Brad, thanks for taking your time, and excuse me: I have tried to add your php code to the functions.php and the css to style.css but now no pagination at all shows.

    I'm running the original Minimum theme, but it is html5 converted. Does it have anything to do with that?

    http://exp.silent.se/character

    August 17, 2014 at 3:47 am #119332
    Tomas Risberg
    Member

    Update: I have been able to make the pagination visible again by exchanging 'genesis_entry_header' with 'genesis_after_content' in your suggested php code, but except of this Genesis/WP doesn't seem to use neither your provided code for the functions.php nor the code for the style.css file.

    August 17, 2014 at 6:40 am #119349
    Brad Dalton
    Participant

    Only works on HTML 5 themes correct.

    Looks like you worked out the loop hook changes.

    Tomas, i don't publish code that doesn't work.

    The screen shots show exactly what it does and all code i publish is tested.


    Tutorials for StudioPress Themes.

    August 17, 2014 at 9:11 am #119361
    Tomas Risberg
    Member

    Brad, I'm sorry. I understand that the error must be mine. I know you are one of the most skilled Genesis experts.

    I can not find a way solve the problem. I tried to use the your code in the Minimum Pro, which should be true html5, but I can't make that work either.

    At this page:

    http://www.htpcbeginner.com/add-and-style-post-pagination-in-genesis-themes/

    they talk about replacing .pages with .entry-pagination.pagination for Genesis 2.0.2 (HTML5)

    Does that have something with my problem to do?

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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

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