What's new
  • The default language of any content posted is English.
    Do not create multi-accounts, you will be blocked! For more information about rules, limits, and more, visit the Help page.
    Found a dead link? Use the report button!
CargoPress - WordPress Theme for Logistic, Warehouse & Transport Websites

NULLED CargoPress - WordPress Theme for Logistic, Warehouse & Transport Websites 1.13.0 NULLED

raz0r

owner
Staff member
Administrator
Moderator
Member
Messages
25,048
Files
6562
Reactions
93,550
raz0r submitted a new resource:

CargoPress - WordPress Theme for Logistic, Warehouse & Transport Websites - Download CargoPress WordPress Theme for Logistic, Warehouse & Transport Websites 11601531

View attachment 34654

Best wordpress theme and website template for logistic, transport and cargo companies. Build your own website for trucking, air transport services etc. CargoPress NULLED is easy to set up and use theme which enables you to establish a web site for business like: air cargo services, trucking services, different logistic services, air transportation services, logistic jobs and much more. It provides a simple roadmap to create a...

Read more about this resource...
 
raz0r 's signature
Reacted by:
About the version: 1.13.0
You can not customize the theme through Customizer because of a conflict with mustache.js

OPTION 1:
To fix it you must edit the functions.php of the parent theme and at the line 192 (inside function cargopress_admin_enqueue_scripts) insert the following code:
PHP:
if (is_customize_preview()) {
            wp_enqueue_script( 'cargopress-admin-utils', get_template_directory_uri() . '/assets/admin/js/admin.js', array( 'jquery', 'underscore', 'backbone', 'mustache.js' ) );
            wp_register_style( 'font-awesome', get_template_directory_uri() . '/bower_components/font-awesome/css/font-awesome.min.css', array(), '4.3.0' );
            return; // Do not register mustache.js in the Customizer
        }

OPTION 2:
For persistent changes, forget the previous code and instead use this on child's theme functions.php:
PHP:
// Add the customized cargopress_admin_enqueue_scripts function.
function child_cargopress_admin_enqueue_scripts() {
    // Skip loading 'mustache.js' in the Customizer.
    if ( is_customize_preview() ) {
        wp_enqueue_script(
            'cargopress-admin-utils',
            get_template_directory_uri() . '/assets/admin/js/admin.js',
            array( 'jquery', 'underscore', 'backbone' )
        );
        wp_register_style(
            'font-awesome',
            get_template_directory_uri() . '/bower_components/font-awesome/css/font-awesome.min.css',
            array(),
            '4.3.0'
        );
        return;
    }
    wp_register_script(
        'mustache.js',
        get_template_directory_uri() . '/bower_components/mustache/mustache.min.js'
    );
    wp_enqueue_script(
        'cargopress-admin-utils',
        get_template_directory_uri() . '/assets/admin/js/admin.js',
        array( 'jquery', 'underscore', 'backbone', 'mustache.js' )
    );
    wp_register_style(
        'font-awesome',
        get_template_directory_uri() . '/bower_components/font-awesome/css/font-awesome.min.css',
        array(),
        '4.3.0'
    );
}
add_action( 'admin_enqueue_scripts', 'child_cargopress_admin_enqueue_scripts' );
 
Last edited:
lagiosman 's signature
Reacted by:
Top