New Landing How can we help? Themeforest Theme Support Dante Problem with shortcodes

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #53030
    robart76
    Member
    Post count: 23

    Dear all I can’t insert any shortcode, please see the attached screenshot.

    #53128
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    We are very sorry for any problem with theme . Please open to edit config.php at /wp-content/themes/dante/swift-framework/sf-shortcodes/ and put replace current code with given below code .

    <?php 
    	if (!function_exists('sf_wp_path')) {
    		function sf_wp_path() {
    			$wp_path = "";
    			if (strstr($_SERVER["SCRIPT_FILENAME"], "/wp-content/")) {
    				$wp_path = preg_replace("/\/wp-content\/.*/", "", $_SERVER["SCRIPT_FILENAME"]);
    			} else {
    				$wp_path = preg_replace("/\/[^\/]+?\/themes\/.*/", "", $_SERVER["SCRIPT_FILENAME"]);
    			}
    			
    			if (strpos($wp_path, 'interface.php') !== FALSE) {
    				$absolute_path = __FILE__;
    				$file_path = explode( 'wp-content', $absolute_path );
    				$wp_path = $file_path[0];
    			}
    			
    			return $wp_path;	
    		}
    	}
    	
    	$wp_path = sf_wp_path();
    	
    	if (strpos($wp_path, '/') !== false) {
    		require_once( $wp_path . '/wp-load.php' );
    	} else {
    		require_once( $wp_path . '\wp-load.php' );
    	}
    ?>
    
    

    Note -: Please take a backup of file before making any changes .

    With Best Regards
    Swift Ideas

    #53156
    robart76
    Member
    Post count: 23

    Dear Mohammad,

    Many thanks for your prompt response, but I’m afraid it didn’t work.
    The problem still persist.
    Could you take another look?

    #53157
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please share website URL with wordpress admin login detail so i can check and fix the issue very soon .

    #53160
    robart76
    Member
    Post count: 23
    This reply has been marked as private.
    #53164
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    HI,
    I have fixed it so please check it now and let me know your feedback.
    CHEERS!
    With Best Regards
    Swift Ideas

    #53165
    robart76
    Member
    Post count: 23

    Great.
    It works perfectly.
    Many, many thanks!

    #53170
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome and let me know if you need more help .
    Thanks
    With Best Regards
    Swift Ideas

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register