• 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

Translate text

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 › Translate text

This topic is: not resolved
  • This topic has 5 replies, 3 voices, and was last updated 8 years, 8 months ago by JesusMPerezC.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 3, 2017 at 7:10 pm #202422
    JesusMPerezC
    Member

    Hello.

    I need translate two parts of my web:
    1) Text "Next Page >>" & "<< Previous Page". Where can I found this texts?

    2) The URLS "/category" or "/author". I need "/categoria" & "/autor". Where can I found this texts?

    Thank you!

    March 3, 2017 at 7:32 pm #202425
    Victor Font
    Moderator

    1. You can change the text with filters:

    add_filter( 'genesis_prev_link_text', 'prev_link_text' )
    function prev_link_text() {
        return '« ' . __( 'Previous Page', 'genesis' );
    }
    
    add_filter( 'genesis_next_link_text', 'next_link_text' )
    function next_link_text() {
        return __( 'Next Page', 'genesis' ) . ' »';
    }

    2. Categories are in the taxonomy area. If you are not talking about taxonomies, but sitemap page headings, then this should help: https://victorfont.com/genesis_sitemap_output-filter/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 3, 2017 at 8:06 pm #202428
    JesusMPerezC
    Member

    Thanks Victor.

    1) My web doesn´t run ok:

    Parse error: syntax error, unexpected 'function' (T_FUNCTION)

    2) Where is the taxonomy area?

    Thank you!

    March 16, 2017 at 11:55 am #203197
    tahir
    Member

    do this code works or shows error ???

    March 16, 2017 at 4:20 pm #203213
    Victor Font
    Moderator

    Sorry, my bad. I left the semi-colons off at the end of the line. Here's the corrected code:

    add_filter( 'genesis_prev_link_text', 'prev_link_text' );
    function prev_link_text() {
        return '« ' . __( 'Previous Page', 'genesis' );
    }
    
    add_filter( 'genesis_next_link_text', 'next_link_text' );
    function next_link_text() {
        return __( 'Next Page', 'genesis' ) . ' »';
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 20, 2017 at 11:03 am #203480
    JesusMPerezC
    Member

    Thank you Victor but doesn´t run in my theme (Magazine Pro).

    This code, runs in .functions?

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

© 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