• 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

Remove page navigation from archives

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 › General Discussion › Remove page navigation from archives

This topic is: not resolved
  • This topic has 7 replies, 3 voices, and was last updated 13 years, 6 months ago by Brad Dalton.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • April 11, 2013 at 12:25 pm #34797
    virginie
    Member

    Hi,

    Where can I find the function to remove page navigation from archives?

    I would like to install wp-pagenavi that seems to work with q-translate plugin  (see  topic http://www.studiopress.community/topic/previous-page-qtranslate-back-to-default-language/ )

    thank you

     

    April 11, 2013 at 5:15 pm #34874
    David Chu
    Participant

    Allo Virginie,
    Here's a function that will remove the Primary Navigation menu for archives. This would go into your functions.php.

    add_action( 'genesis_before', 'dc_pull_out_menu' );
    function dc_pull_out_menu () {
    	if ( is_archive() ) {
    		remove_action( 'genesis_after_header', 'genesis_do_nav' );
    	}
    }
    

    "is_archive" refers to a number of things, though, so you can check here to see.
    Ciao,
    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    April 12, 2013 at 8:39 am #34986
    virginie
    Member

    Thank you Dave but I'm looking for the Previous/Next page navigation at the bottom.

    April 12, 2013 at 9:00 am #35002
    David Chu
    Participant

    Virginie,
    Sorry, I misunderstood. I think this might help you. Same idea, this would go in functions.php. This should work unless the theme is heavily customized.

    remove_action('genesis_after_endwhile', 'genesis_posts_nav');
    

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    April 16, 2013 at 7:41 pm #35869
    virginie
    Member

    great thanks.

    Now i'm looking for the function or hook to replace the genesis_posts_nav by

    <?php wp_pagenavi(); ?> or
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
    not sure i'm doing right.

    April 16, 2013 at 10:52 pm #35894
    Brad Dalton
    Participant

    http://genesistutorials.com/visual-hook-guide/ There's a few you can choose from.

    Here's some sample code you can modify which i tested on single posts:

    You can easily change the conditional tag. http://codex.wordpress.org/Conditional_Tags


    Tutorials for StudioPress Themes.

    April 17, 2013 at 9:56 pm #36068
    virginie
    Member

    Great! Thank you Brad.

    I modified the code with  is_archive  and  genesis_after_endwhile

    the code works perfectly but didn't fix my first archive page language problem 🙁

    Are you aware of the problem between qtranslate and genesis_post_nav? (first page back to default language even if the link on source code show the right one)

    thank you again

    April 17, 2013 at 11:10 pm #36079
    Brad Dalton
    Participant

    No sorry but you could use another translate plugin.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘General Discussion’ 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