• Hi.
    I am looking for a solution to change the text “read more” in posts into something else (Swedish).
    I have found a lot of php coding examples but am not very good in these things.
    Is there any easier way to change this?

    Tomas

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello Tomas,

    You can modify the “Read More” text using a function found on https://codex.www.ads-software.com/Customizing_the_Read_More#Modify_The_Read_More_Link_Text — good luck!

    Thread Starter TomasJarvling

    (@tomasjarvling)

    Hi.
    Thanks. Should I add this function in functions.php? If so – where should I put it?

    Tomas

    Correct. Placing the code at the bottom would be fine.

    Thread Starter TomasJarvling

    (@tomasjarvling)

    So at the bottom of wp-includes/functions.php?

    No. Your active theme’s functions.php file.

    Each theme has its own functions file, but only the functions.php in the active Theme affects how your site publicly displays. If your theme already has a functions file, you can add code to it. If not, you can create a plain-text file named functions.php to add to your theme’s directory.

    A Child Theme can have its own functions.php. This child functions file can be used to augment or replace the parent theme’s functions.

    https://codex.www.ads-software.com/Functions_File_Explained

    Thread Starter TomasJarvling

    (@tomasjarvling)

    Ok. So if the themes functions.php look like this:

    <?php
    
    // =============================================================================
    
    // FUNCTIONS.PHP
    
    // -----------------------------------------------------------------------------
    
    // Theme functions for X.
    
    // =============================================================================
    
    // =============================================================================
    
    // TABLE OF CONTENTS
    
    // -----------------------------------------------------------------------------
    
    //   01. Set Paths
    
    //   02. Require Files
    
    // =============================================================================
    
    // Set Paths
    
    // =============================================================================
    
    $func_path = 'framework/functions';
    
    $glob_path = 'framework/functions/global';
    
    $admn_path = 'framework/functions/global/admin';
    
    $tmgp_path = 'framework/functions/global/admin/tmg';
    
    $eque_path = 'framework/functions/global/enqueue';
    
    $plgn_path = 'framework/functions/global/plugins';
    
    // Require Files
    
    // =============================================================================
    
    //
    
    // Helpers, conditionals, and stack data.
    
    //
    
    require_once( $glob_path . '/debug.php' );
    
    require_once( $glob_path . '/helper.php' );
    
    require_once( $glob_path . '/conditionals.php' );
    
    require_once( $glob_path . '/stack-data.php' );
    
    //
    
    // Admin.
    
    //
    
    require_once( $admn_path . '/thumbnails/setup.php' );
    
    require_once( $admn_path . '/setup.php' );
    
    require_once( $admn_path . '/migration.php' );
    
    require_once( $admn_path . '/meta/setup.php' );
    
    require_once( $admn_path . '/sidebars.php' );
    
    require_once( $admn_path . '/widgets.php' );
    
    require_once( $admn_path . '/custom-post-types.php' );
    
    require_once( $admn_path . '/customizer/setup.php' );
    
    require_once( $admn_path . '/addons/setup.php' );
    
    //
    
    // TMG plugin activation.
    
    //
    
    require_once( $tmgp_path . '/activation.php' );
    
    require_once( $tmgp_path . '/registration.php' );
    
    require_once( $tmgp_path . '/updates.php' );
    
    //
    
    // Enqueue styles and scripts.
    
    //
    
    require_once( $eque_path . '/styles.php' );
    
    require_once( $eque_path . '/scripts.php' );
    
    //
    
    // Global functions.
    
    //
    
    require_once( $glob_path . '/featured.php' );
    
    require_once( $glob_path . '/pagination.php' );
    
    require_once( $glob_path . '/navbar.php' );
    
    require_once( $glob_path . '/breadcrumbs.php' );
    
    require_once( $glob_path . '/classes.php' );
    
    require_once( $glob_path . '/portfolio.php' );
    
    require_once( $glob_path . '/social.php' );
    
    require_once( $glob_path . '/content.php' );
    
    require_once( $glob_path . '/remove.php' );
    
    //
    
    // Stack specific functions.
    
    //
    
    require_once( $func_path . '/integrity.php' );
    
    require_once( $func_path . '/renew.php' );
    
    require_once( $func_path . '/icon.php' );
    
    require_once( $func_path . '/ethos.php' );
    
    //
    
    // Integrated plugins.
    
    //
    
    if ( X_BBPRESS_IS_ACTIVE ) {
    
      require_once( $plgn_path . '/bbpress.php' );
    
    }
    
    if ( X_BUDDYPRESS_IS_ACTIVE ) {
    
      require_once( $plgn_path . '/buddypress.php' );
    
    }
    
    if ( X_REVOLUTION_SLIDER_IS_ACTIVE ) {
    
      require_once( $plgn_path . '/revolution-slider.php' );
    
    }
    
    if ( X_SOLILOQUY_IS_ACTIVE ) {
    
      require_once( $plgn_path . '/soliloquy.php' );
    
    }
    
    if ( X_VISUAL_COMOPSER_IS_ACTIVE && get_option( 'x_pre_v4', false ) ) {
    
      require_once( $plgn_path . '/visual-composer.php' );
    
    }
    
    if ( X_WOOCOMMERCE_IS_ACTIVE ) {
    
      require_once( $plgn_path . '/woocommerce.php' );
    
    }
    
    if ( X_WPML_IS_ACTIVE ) {
    
      require_once( $plgn_path . '/wpml.php' );
    
    }

    I should place the code at the bottom?

    Tomas

    Yes. Give it a whirl.

    Thread Starter TomasJarvling

    (@tomasjarvling)

    Hmm, i uploaded the theme file but didn’t get any reaction.
    Take a look at: https://dccommunication.se/nyheter/
    I want it to say “L?s mer” instead of “Read more”

    Tomas

    Is your theme from https://theme.co/x/ ?

    If so, I recommend asking your question at the official support channel for X | The Theme, so the developers and support community can help you with your issue.

    You will want to remove the functions.php addition I suggested and then check out the forum at https://theme.co/community/forums/group/support-center/ — sorry to redirect you, but they are better equipped to handle your theme’s questions.

    Thread Starter TomasJarvling

    (@tomasjarvling)

    Perfect. And thanks for your time:)

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Change "read more" into another text’ is closed to new replies.