Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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?

    #404579

    Ok… 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>';

    #404607

    How do I limit the code to be only on Web?

    Do you have support to mobile specification?

    like… if($phone == ‘ios’) do (something);

    ???

    #405006

    Hi!

    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,
    Rikard

    #405016

    Hi!

    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

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