We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Custom V3D on WordPress causing trouble

Home Forums General Questions Custom V3D on WordPress causing trouble

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #38939
    justin_blender
    Customer

    Hi,

    I am trying to run the V3D app on a wordpress site. I can not use the wordpress plugin for several reasons, so i doing it manually by binding the project to the theme:

        $Home_Path = 'http://localhost/wp_testseite/';
        $Installation_3D_Path = $Home_Path . 'wp-content/3D_Content/';
    
        echo '<script src="' . $Installation_3D_Path . 'v3d.js"></script>';
        echo '<script src="' . $Installation_3D_Path . 'Scroll_Demo.js"></script>';
        echo '<div id="v3d-container"></div>';

    I am getting the Console log Error:

    v3d.js:1 GET http://localhost/wp_testseite/product/beanie/visual_logic.js net::ERR_ABORTED 404 (Not Found)

    The reason is that the V3D Engine is obiously trying to load the visual_logic.js (and more?) always from the current path where the project is called from (the current site).
    I expected it would try to load it from the same folder where the V3D.js is located too. I cannot put the project files in the same folder of the Site URL because simply this filepath does not exist. And also I want to keep it more generic.

    product/beanie that is the virtual filepath which does not exist

    I need all the files to load from \wp-content\3D_Content

    #38940
    justin_blender
    Customer

    The console error I posted was maybe not complete. The v3d.js is trying to load “visual_logic.js” from the current url.

    There must me certainly a solution because the verge3d wordpress plugin needs a way to handle this too right?

    And of course thanks for the support in advance.

    #38941
    justin_blender
    Customer

    Ok I checked the WP plugin. It is apparently realized by using iFrame.

    That is unfortunately not an option for me :unsure:

    Edit now I found the edit option. Sorry for making 3 posts :unsure:
    Ok iframe might be an option but it should be the last. There are a couple of downsides.
    I want to understand if it is possible the way I want it

    #38948
    justin_blender
    Customer

    Ok I found a solution. You don’t need to make any effort to get into this. Thanks :good:

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.