How to Use ResellersPanel Theme Functions and CSS with non-RSP Theme

Step 1 – Upload the following folders and all files/folder in them, as-is, from your chosen RSP theme to non-RSP theme’s root folder.

  • css folder
  • js folder
  • images folder

IMPORTANT NOTE:  If non-RSP theme already has any of the folders above in the root folder, you’ll have to upload the contents for RSP folders to the already-existing folder making sure that no filenames are duplicates.  If they are, this whole method will fall apart.

Step 2 – rename RSP theme files

  • functions.php
  • colorbox.css
  • style.css

to

  • rsp-functions.php
  • rsp-colorbox.css
  • rsp-style.css.

Step 3 – upload the above 3 files to the non-RSP theme’s root folder.

Step 4 – Place the following block of code at the end of the NON-RSP functions.php file:

//**BEGIN RSP INTEGRATION**

//Run the rsp-functions file
require_once get_theme_file_path( '/rsp-functions.php' );

//Enqueue RSP stylesheet
function load_rsp_styles() {
    wp_enqueue_style( 'rsp-style', get_theme_file_uri( '/rsp-style.css' ), 
        array(), 
        '1.0.0' 
    );
}

add_action( 'wp_enqueue_scripts', 'load_rsp_styles' );

//Enqueue colorbox stylesheet

function load_rsp_colorbox() {
    wp_enqueue_style( 'rsp-colorbox', get_theme_file_uri( '/rsp-colorbox.css' ), 
        array(), 
        '1.0.0' 
    );
}

add_action( 'wp_enqueue_scripts', 'load_rsp_colorbox' );

//**END RSP INTEGRATION**

Some themes will be difficult. I am currently working with a theme called Blockchain Lite because it is already styled and very close to what I want.  But it’s being problematic and may have to ditch it.

There are other methods than the above but I haven’t yet tried them.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top