Find Jobs
Hire Freelancers

Hide-shortcode based on iframes.

€30-250 EUR

Closed
Posted over 4 years ago

€30-250 EUR

Paid on delivery
Right now, i use this code to redirect user to google in this example case, if this site is not visited via a iframe and if he is not from those domains entered: <?php add_action( 'wp_head', function () { ?> <script> const allowedDomains = ['[login to view URL]', '[login to view URL]','[login to view URL]']; if ([login to view URL]([login to view URL]('/')[2]) === -1) { [login to view URL] = '[login to view URL]'; } </script> <?php } );?> But I would love to have a shortcode to load content (for example mycred-shortcodes) based on iframe parent. e.g.: Hello Only show [show_if_iframe domains="[login to view URL], [login to view URL], [login to view URL]"]CONTENT[/show_if_iframe] based on iframe. Please make sure, it's not a "display:none", but a function, to do not load those content. as i know from the [hide for="logged"] and the [mycred_show_if]-Shortcodes. Here content is not hidden. It's not loaded, wenn those conditions do not match. If user uses iframes and the domains, this shall be loaded based on example above: -Hello Only show CONTENT based on iframe. This shall be loaded, when user do not load this site via i frame -Hello Only show based on iframe. (CONTENT is missing in will not be loaded)
Project ID: 21823662

About the project

19 proposals
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
19 freelancers are bidding on average €150 EUR for this job
User Avatar
Hello, you have those example domains or no? If you own them, it's better to add some query vars and check with php.
€150 EUR in 2 days
5.0 (1099 reviews)
8.4
8.4
User Avatar
Hello, My name is Sergey. I am Freelancer from Saint Petersburg, Russia. I can help you as an experienced WordPress programmer to create "show_if_iframe" with "domains" parameter and make it working properly. 2000+ successfully completed projects, including 300+ WordPress projects, speak for me. Links and reviews from my past clients available in my profile. I am an individual, I am not a company in any meaning. I need FTP or SSH access to start right now. And login/password into "wp-admin" Dashboard. I can communicate via Freelancer.com. -- Sergey aka Takereal
€100 EUR in 1 day
5.0 (1967 reviews)
8.2
8.2
User Avatar
Ready to work with you, could you please send me some more details about your project so we will estimate it accordingly....
€120 EUR in 3 days
4.8 (495 reviews)
8.2
8.2
User Avatar
Let me develop this shortcode for you as I have experience modifying WordPress plugins & themes via jobs here at freelancer.com. I'll make sure said shortcode will deliver the following (quoting your words) : If user uses iframes and the domains, this shall be loaded based on example above: -Hello Only show CONTENT based on iframe. This shall be loaded, when user do not load this site via i frame -Hello Only show based on iframe. (CONTENT is missing in will not be loaded)
€99 EUR in 3 days
5.0 (231 reviews)
7.5
7.5
User Avatar
Hi, I can help you in project. To show the content when called using iframe only. Please let me know when we can discuss in more details so that we could proceed further. I do work on following skillsets: php, mysql, codeigniter, laravel, wordpress, jquery, google map, angular. Looking forward for your response. Thanks. Kind Regards.
€90 EUR in 2 days
5.0 (170 reviews)
6.8
6.8
User Avatar
Hi, Greetings of day! Thank's for providing with an opportunity to bid on your project. After reading your description carefully, I understood your needs exactly. I am an experienced developer. My skills are  : - Backend Development Laravel, CodeIgniter, Yii, ASP.NET, NodeJS - Frontend Development Javascript, CSS, JQuery, Bootstrap, ReactJS - Database MySQL, MongoDB - SEO Expert - Payment Integration Paypal, Stripe, etc... - Other API Integration Google Map API, Google Translate API, Ebay API, Alibaba API, etc. If you hire me, I will do my best for you. Looking forward to your reply. Best Regards.
€80 EUR in 3 days
5.0 (14 reviews)
5.4
5.4
User Avatar
Hello sir, Hope you are doing well. i have 6+ years of experience in WordPress php codeigniter woocommrece html css mysql javascript bootstrap graphic design website design etc. these job suitable for me Kind Regards, purvi
€140 EUR in 7 days
4.7 (29 reviews)
4.9
4.9
User Avatar
Hi! My name is Jin Shan. I have been developing IT projects for 7 years and have rich experience in all fields of mobile and website such as E-commerce, Social, Media, Travel, Doctor & Patient. I have read and understood the project. I want to talk about more requirements by chat. Contact me to discuss your project. Thank you for your deep attention!
€250 EUR in 3 days
5.0 (5 reviews)
3.4
3.4

About the client

Flag of GERMANY
Geilenkirchen, Germany
5.0
7
Payment method verified
Member since Jun 9, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.