This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
not to show the mobile version
« on: December 07, 2016, 01:20:44 PM »
The header.php file
I put in function for the output h1 tag

The regular version all OK

I want to hide  h1 in the mobile version

tell me how to do it

print Screen http://prntscr.com/dgfcrq
« Last Edit: April 21, 2017, 03:18:17 PM by Виталий Василенко »

Re: not to show the mobile version
« Reply #1 on: December 07, 2016, 02:14:50 PM »
Sorry for my bad english

*

MB Themes

Re: not to show the mobile version
« Reply #2 on: December 07, 2016, 02:28:31 PM »
You can use different tools that help you customize mobile view of website, like:
http://responsivetest.net/#u=http://zara.mb-themes.com/|320|480|1
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: not to show the mobile version
« Reply #3 on: December 07, 2016, 02:54:46 PM »
How to view the mobile version I know
I want to hide  h1 in the mobile version

print Screen


*

MB Themes

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on December 07, 2016, 07:57:27 PM
*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: not to show the mobile version
« Reply #5 on: December 07, 2016, 05:56:43 PM »
Hi,  resolve this using css

put this code at the end of your style.css


   .mobileHide { display: inline;}
   /* Smartphone Portrait and Landscape */
   @media only screen
   and (min-device-width : 320px)
   and (max-device-width : 480px){  .mobileHide { display: none;}}


A go to your header and replace add this

<h1 class="mobileHide">
TEXT OR IMAGE NOT FOR MOBILE HERE
</h1>

This is the tutorial that I follow

https://blog.hubspot.com/marketing/site-content-only-mobile-viewers-can-see-ht#sm.0001mb01u3izif0htag2o89athefz
LaKompra.com

Re: not to show the mobile version
« Reply #6 on: December 08, 2016, 09:02:32 AM »
Many thanks.

I did everything you said.

Does not work :-(

Please tell me why so

Re: not to show the mobile version
« Reply #7 on: December 08, 2016, 09:05:31 AM »
even print screen

Re: not to show the mobile version
« Reply #8 on: December 08, 2016, 09:06:21 AM »
and

*

MB Themes

Re: not to show the mobile version
« Reply #9 on: December 08, 2016, 09:44:36 AM »
I think you should increase range of min and max width.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: not to show the mobile version
« Reply #10 on: December 08, 2016, 09:47:56 AM »
.mobileHide { display: inline;}
   /* Smartphone Portrait and Landscape */
   @media only screen
   and (min-device-width : 10px)
   and (max-device-width : 490px){  .mobileHide { display: none;}}

no effect

*

Carlos Carcamo

  • ****
  • 105 posts
  • LaKompra.com
Re: not to show the mobile version
« Reply #11 on: December 08, 2016, 01:33:14 PM »
Try with this:

<div class="mobileHide"><h1>text here</h1></div>

Remember to test with different types of codes, for example

 <center class="mobileHide"><h1>text here</h1></center>
 <ul class="mobileHide"><h1>text here</h1></ul>
« Last Edit: December 08, 2016, 01:35:45 PM by Carlos Carcamo »
LaKompra.com