-
AuthorPosts
-
March 2, 2015 at 5:11 pm #404577
Hi,
I want to add an iframe url (link) on the header area.
I have already created a thread here for that but since the last few updates came, the code seems not to be working anymore.I added this code on the line 108 from the code includes/helper-main-menu.php.
<iframe src="http://domussapiens.com.br/sourcelab/auth.php"><p>Your browser don't support iframe</p></iframe>
How can I make it work?
March 2, 2015 at 5:14 pm #404579Ok… Sorry for the inconvenience… Since the code changed I had to make some changes.
The updated version that worked is:
echo '<iframe src="http://domussapiens.com.br/sourcelab/auth.php"><p>Your browser don't support iframe</p></iframe>';
March 2, 2015 at 5:35 pm #404607How do I limit the code to be only on Web?
Do you have support to mobile specification?
like… if($phone == ‘ios’) do (something);
???
March 3, 2015 at 9:19 am #405006Hi!
You can use media queries to target different screen sizes:
/* Smaller than standard 960 (devices and browsers) */ @media only screen and (max-width: 959px) { CODE GOES HERE } /* Tablet Portrait size to standard 960 (devices and browsers) */ @media only screen and (min-width: 768px) and (max-width: 959px) { CODE GOES HERE } /* All Mobile Sizes (devices and browser) */ @media only screen and (max-width: 767px) { CODE GOES HERE } /* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ @media only screen and (min-width: 480px) and (max-width: 767px) { CODE GOES HERE } /* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */ @media only screen and (max-width: 479px) { CODE GOES HERE }
Best regards,
RikardMarch 3, 2015 at 9:27 am #405016Hi!
Thank you for using Enfold.
You mean, you don’t want it to show on mobile devices? Maybe, something like this will help:
if(!preg_match('/iPhone|iPod|iPad/', $_SERVER['HTTP_USER_AGENT'])) { echo '<iframe src="http://domussapiens.com.br/sourcelab/auth.php"><p>Your browser don't support iframe</p></iframe>'; }
Refer to this link for more info: http://stackoverflow.com/questions/15228937/php-check-if-the-page-run-on-mobile-or-desktop-browser
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.