• Resolved kexter2015

    (@kexter2015)


    hi , i need to import this script but when i finished typing in post , a lot of content is missing . this is what i need to import :
    <script type=”application/javascript”>
    var testVideo = fluidPlayer(
    “my-video”,
    {
    layoutControls: {
    posterImage: ‘{image[1]}’
    }
    vastOptions: {
    “adList”: [
    {
    “roll”: “preRoll”,
    “vastTag”: “ads”
    },
    {
    “roll”: “midRoll”,
    “vastTag”: “ads”,
    “timer”: 8
    },
    {
    “roll”: “midRoll”,
    “vastTag”: “ads”,
    “timer”: 10
    },
    {
    “roll”: “postRoll”,
    “vastTag”: “ads”
    }
    ]
    }
    }
    );
    </script>
    here is the content after import :
    <script type=”application/javascript”>
    var testVideo = fluidPlayer(
    “my-video”,

    }
    vastOptions: ,
    ,
    ,

    ]
    }
    }
    );
    </script>

    please help me .

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @kexter2015,

    You have to escape the curly braces (that aren’t part of import elements) and opening square brackets with backslashes for it to import correctly. Please try this code:

    <script type="application/javascript">
        var testVideo = fluidPlayer(
        "my-video",
        \{
            layoutControls: \{
                posterImage: '{image[1]}'
            }
            vastOptions: \{
                "adList": \[
                \{
                    "roll": "preRoll",
                    "vastTag": "ads"
                \},
                \{
                    "roll": "midRoll",
                    "vastTag": "ads",
                    "timer": 8
                \},
                \{
                    "roll": "midRoll",
                    "vastTag": "ads",
                    "timer": 10
                \},
                \{
                    "roll": "postRoll",
                    "vastTag": "ads"
                \}
                ]
            \}
        \}
        );
    </script>
    Plugin Author WP All Import

    (@wpallimport)

    Hey @kexter2015,

    Since this has been inactive for a while, I am going to mark it as resolved. You can open a new topic if you still have any questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing content when importing’ is closed to new replies.