Need to add a function to [login to view URL] that replaces a variable in a script and replaces it with one from the URL string. Then I need a shortcode to utilize that fucntion in building a page.
The URL format would be http://mydomain.com/landingpage?wistia_id=12345678
I have a start on the function here, but it needs a few more additions, and proper syntax at the start (needs function name, etc).
I want to add to the function an input that lets me put a fallback ID in the shortcode in case there is no custom ID found in the URL query (so the video embed does not come back empty).
/* This function dynamically replaces wistia_id with variable from URL*/
var $wistia_id = htmlspecialchars($_GET["wistia_id"]);
echo ' <script src="https://fast.wistia.com/embed/medias/'.$wistia_id.'.jsonp" async></script><script src="https://fast.wistia.com/assets/external/E-v1.js" async></script><div class="wistia_responsive_padding" style="padding:56.25% 0 0 0;position:relative;"><div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;"><div class="wistia_embed wistia_async_'.$wistia_id.' videoFoam=true" style="height:100%;position:relative;width:100%"><div class="wistia_swatch" style="height:100%;left:0;opacity:0;overflow:hidden;position:absolute;top:0;transition:opacity 200ms;width:100%;"><img src="https://fast.wistia.com/embed/medias/'.$wistia_id.'/swatch" style="filter:blur(5px);height:100%;object-fit:contain;width:100%;" alt="" onload="this.parentNode.style.opacity=1;" /></div></div></div></div>';
Hi there, I am expert with wordpress code level customization. I can easily build shortcode that you are looking for. Some of my recent successful projects:- [login to view URL] ( Stress Reduction ) http:// Plus
23 freelance font une offre moyenne de $36 pour ce travail
"Custom Wordpress PHP function and shortcode" Please check the work below :-- Wordpress: [login to view URL] [login to view URL] [login to view URL] [login to view URL] | [login to view URL] Plus
Hello, Greetings of the day!! I have read your job description and I am available to work on this assignment. I'm proficient in Wordpress, Html, Css and Php and can do this job efficiently. Lets discuss in d Plus
Greetings of the day, I have a Web development expert with over 5 years experience in setup and customization of WordPress, wooCommerce, and other platforms. Till date, I have created over 300+ websites, most of whi Plus
Hi, It is my great honor to work on your project. I have all skills and experience for which you are looking for. Yes, I can do it. Expert in Wordpress and its plugins. My relevant skills for the project and Plus
Hi, I have read your project description this will be done in your required time spam with 100% Satisfaction. Kindly message me so we can discuss in detail over chat...... Some of my skills are mentioned below: HTML5 Plus
reetings, Thank you for posting a Job. I WILL DO THIS AS PER YOUR REQUIREMENT AND EXPECTATIONS. With the experience of over 300+web development projects including ANDROID, IOS, WEBSITES, WEB APPLICATIONS AND SOFTWARE Plus
Hello, i have read your requirement and i am interested in your job. I will create a function which will get value from the URL and pass to the function. I will also create a shortcode of that function. I have 5+ ye Plus
Dear Hiring Manager, I had a look at your given job post and came to know that you are looking for a Website developer to build a unique website as per your requirement. I have 5 years of experience in especiall Plus
Hello sir we have a good technical team. we have 7yr experience in laravel, wodpress, wodpress plugin deveopment, core php, . we work so less cost as per client wish. just you hire and test us thanks
Look, I dont understand anything but I can do it :D perhaps, it seems something I understood but I really not sure what you really want. Can you tell me detailed, please? Best regards, Ivan N. P.S. Just finished Plus
I am enthusiastically writing in response to your advertisement for the position of a Web Designer and developer. As a creative-minded designer/developer with over five years of functional web designing experience, I a Plus
Hi There ! I have read your description and can work on your project with in this budget and time frame. To see my previous Work and Reviews please visit my profile You can text me here to discuss more abou Plus
It is undeniable that a website/ mobile application is indispensable in this day and age. The emergence of the Internet era you with the opportunity to expand its reach to its target audience as well as serve its exist Plus
Hello there! I am interested to work on your [login to view URL] file. Please explain more in details. I am Vrajesh. I have total 4 years of experience in wordpress. You can have a look my works : https://www.s Plus
I strive to offer WordPress solutions that are compatible with all business models and industry verticals. I provides WordPress CMS development, plugin development, theme customization and maintenance services, backed Plus