Genesis Tutorials

Tips, Tricks, and How-tos for the Genesis Theme Framework

  • The Genesis Developer’s HandbookVisual Hook Guide
  • code, settings & options oh my!Resources
    • Collection Of CodeSnippets
    • Under ConstructionGenesis Functions
    • Coming Soon…Utilizing Genesis SEO Options
  • Extend GenesisPlug-ins
    • Genesis Post Teasers
    • Genesis Favicon Uploader
  • Genesis Child ThemesThemes
  • What is genesistutorials.com?About
    • Genesis Tutorials Roadmap
You are here: Home / Theming / How to Filter the Genesis Post Navigation Text

Theming, Tutorial

How to Filter the Genesis Post Navigation Text

May 14, 2011 by Christopher

Facebook0
Google+0
Twitter0

Sometimes your site may focus on reviews of Academy award winning films, or great recipes from around the world and the word “post” is no longer relevant to your site. What you are writing and your viewers reading aren’t posts, but reviews or recipes, and the post navigation at the bottom of an index page may be a little misleading. To change this text is simple, in the latest release of Genesis (v1.6) the older/newer and next/previous text in the post navigation are now filterable.

Older / Newer Post Navigation Filter

This filter runs when in Genesis Theme Settings, under Content Archives, “Select Post Navigation Technique:” is set Older / Newer. The default output Is “« Older Posts” and “Newer Posts »” to filter this simply add the code below to your child theme’s functions.php. In this example we change it to read Older and Newer Reviews.

add_filter( 'genesis_older_link_text', 'gt_review_older_link_text' );
function gt_review_older_link_text() {
        $olderlink = '« Older Reviews';
        return $olderlink;
}
add_filter( 'genesis_newer_link_text', 'gt_review_newer_link_text' );
function gt_review_newer_link_text() {
        $newerlink = 'Newer Reviews »';
        return $newerlink;
}

Previous / Next Post Navigation Filter

This filter runs when in Genesis Theme Settings, under Content Archives, “Select Post Navigation Technique:” is set Previous / Next. The default output is “« Previous Posts” and “Next Posts »” to filter this simply add the code below to your child theme’s functions.php. In this example we change it to read Previous and Next Reviews.

add_filter( 'genesis_prev_link_text', 'gt_review_prev_link_text' );
function gt_review_prev_link_text() {
        $prevlink = '« Previous Reviews';
        return $prevlink;
}
add_filter( 'genesis_next_link_text', 'gt_review_next_link_text' );
function gt_review_next_link_text() {
        $nextlink = 'Next Reviews »';
        return $nextlink;
}

Attention to detail is very important when building a site for a client or yourself. Taking the extra time to polish up a product is really what makes a great site or theme. This is minor customization, but when you take the time to add little touches like this to a site is really what starts separating yours from the others.

About Christopher

Dabbler of anything web/tech/design/music. Independent web designer & developer.

Follow me on twitter @tweetsfromchris

Comments

  1. SPURS FAN says

    May 18, 2011 at 8:35 pm

    Hello, Chris. I read your tutorial, I’m still having trouble adding an “older post” option at the bottom of my site.

    As of now, nothing is appearing. I included my e-mail address, if you have time, some help would be greatly appreciated.

    Thanks.

  2. Andre says

    February 13, 2012 at 1:08 pm

    Hi,
    great tutorial, but how to change prev/next post link text when numeric pagination is selected?

    • Christopher says

      February 18, 2012 at 9:28 pm

      It’s the same as “Previous / Next Post Navigation Filter” however this is only available in the latest ersion of Genesis. 1.8 for the numeric pagination.

  3. Irfan says

    February 14, 2012 at 10:53 pm

    Is there a way – when someone’s entered into content part i.e. post. Only post part displays and header including logo get removed?

    Regards,
    Irfan

    • Christopher says

      February 18, 2012 at 9:25 pm

      Let me know if this helps http://www.briangardner.com/create-landing-page/ sounds like what you need.

      • Irfan says

        February 19, 2012 at 12:02 pm

        This is not what i’m looking for check this out – quickonlinetips. If you can see the homepage i.e where all content shows has header + logo but when you enter to any of it’s post you will find header become invisible so that content can be easily readable.

        Regards,
        Irfan

Genesis Framework for WordPress

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Genesis Guide for Absolute Beginners

Click to download the Genesis Guide for Absolute Beginners

Follow me on Twitter

Follow @tweetsfromchris

Recent tutorials

Genesis 3.0.0 Removed Deprecated Functions

How to Add a Logo to the Header

Say Hello to the Genesis Visual Hook Guide v2.5

Genesis Tutorials • Built on the Genesis Theme Framework

Genesis Tutorials is not affiliated with StudioPress, and is maintained and operated by Christopher Cochran.