• Plugin has a 503 error issue in LiquidWeb Cloudsites test site. File default.css is loaded with actual URL while the site itself still using test site URL.

    My quick solution for you who have same issue is by changing a an URL inside function genesis_author_pro_load_default_styles(). Here’s the complete function that I’m using now:

    /**
     * Loads the default style sheets.
     *
     * @access public
     * @return void
     */
    function genesis_author_pro_load_default_styles() {
    
    	if( apply_filters( 'genesis_author_pro_load_default_styles', true ) ) {
    
    		wp_register_style( 'genesis_author_pro',
    			plugins_url( '../resources/', __FILE__ ) . 'css/default.css',
    			false,
    			'1.0.0'
    		);
    		wp_enqueue_style( 'genesis_author_pro' );
    
    	}
    
    }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Nick C

    (@modernnerd)

    Thanks for sharing your experience with Genesis Author Pro and LiquidWeb, Ken.

    I wasn’t able to reproduce this in other test environments so far — the GENESIS_AUTHOR_PRO_RESOURCES_URL constant you’ve replaced here is returning the test URL in my test environments.

    It’s possible this is specific to LiquidWeb, but thank you for documenting your solution here.

    • This reply was modified 6 years ago by Nick C.
Viewing 1 replies (of 1 total)
  • The topic ‘Issue with loading default.css in LiquidWeb Cloudsites Test Site’ is closed to new replies.