Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter TomasJarvling

    (@tomasjarvling)

    Perfect. And thanks for your time:)

    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

    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

    Thread Starter TomasJarvling

    (@tomasjarvling)

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

    Thread Starter TomasJarvling

    (@tomasjarvling)

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

    Tomas

    Thread Starter TomasJarvling

    (@tomasjarvling)

    Hi. I tried this. But unfortunately it didn’t work.

    Any other suggestions?

    Tomas

Viewing 6 replies - 1 through 6 (of 6 total)