Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor webdorado

    (@webdorado)

    Dear Briesmi,

    Could you please tell us on what mobile devices you need to hide the widget? Please clarify the dimensions.
    Thank you.

    Thread Starter Briesmi

    (@briesmi)

    hey webdorado,

    the dimensions are: max-width: 767px and max-width: 599px

    Thank you!

    Plugin Contributor webdorado

    (@webdorado)

    Dear Briesmi,

    Please add the following code to wp-content\plugins\photo-gallery\frontend\views\BWGViewThumbnails.php file, after the line 152, right after <style>:

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    <?php if ($from) { ?>
      	@media screen and (max-width: 767px) {
        	#bwg_container1_<?php echo $bwg; ?> {
          	display: none;
        	}
      	}
      	<?php } ?>

    wp-content\plugins\photo-gallery\frontend\views\BWGViewSlideshow.php file, line 201, please add the following code after <style>:

    <?php if ($from) { ?>
      	@media screen and (max-width: 767px) {
        	#bwg_container1_<?php echo $bwg; ?> {
          	display: none;
        	}
      	}
      	<?php } ?>

    wp-content\plugins\photo-gallery\frontend\views\BWGViewWidget.php, line 46, after <style>:

    @media screen and (max-width: 767px) {
        	#bwg_container1_<?php echo $bwg; ?> {
          	display: none;
        	}
      	}

    wp-content\plugins\photo-gallery\frontend\views\BWGViewAlbum_compact_preview.php, line 239, after <style>:

    <?php if ($from === "widget") { ?>
      	@media screen and (max-width: 767px) {
        	#bwg_container1_<?php echo $bwg; ?> {
          	display: none;
        	}
      	}
      	<?php } ?>

    Thank you.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Sure there is a way to do this without modifying the plugin code that way? The reason I mention this is that when your plugin is updated then all of these changes will be lost.

    Perhaps a filter or action?

    Plugin Contributor webdorado

    (@webdorado)

    Unfortunately there is no less complex way to do this, and that is why we have suggested this code. Please note, that you can add the code mentioned above to the updated version as well.
    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable widget on mobile devices’ is closed to new replies.