Hide HTML in Mobile Devices For Blogspot without using 'Display:none' - [1]





34
comments





PLEASE NOTE:



We have Zero Tolerance to Spam.

Chessy Comments and Comments with
'Links'
will be deleted immediately upon our review.



(function() {
var items = ['id': '4882242131742025454', 'body': 'But i donx26#39;t get this coding x26lt;b:if condx3dx26#39;data:blog.isMobileRequest x3dx3d x26quot;falsex26quot;x26gt; in my blog.', 'timestamp': '1436556118346', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1436556118346#c4882242131742025454', 'author': 'name': 'Adil Muhammad Yousuf', 'avatarUrl': '//lh5.googleusercontent.com/-upqdRXNAgp4/AAAAAAAAAAI/AAAAAAAAH1E/pEjdK86mzqE/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11859119924724048421', 'displayTime': 'Jul 11, 2015, 12:21:00 AM', 'deleteclass': 'item-control blog-admin pid-301840063', 'id': '1878912638388897517', 'body': 'Mine User Experience in 98%, please check my pagespeed graph and kindly let me know what are the changes should be done to get good rating..x3cbr /x3ex3cbr /x3eLink: https://developers.google.com/speed/pagespeed/insights/?urlx3dhttp%3A%2F%2Fwww.cineringtones.com%2Fx26amp;tabx3dmobile', 'timestamp': '1436609298636', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1436609298636#c1878912638388897517', 'author': 'name': 'Hari Annu', 'avatarUrl': '//lh6.googleusercontent.com/-KEgNKDEm-do/AAAAAAAAAAI/AAAAAAAAAuk/coJDRaIMjJ8/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/07507908234613341051', 'displayTime': 'Jul 11, 2015, 3:08:00 PM', 'deleteclass': 'item-control blog-admin pid-663821702', 'id': '3975035320917650237', 'body': 'Where can I read lists of blogger tag conditional and the explanation bro?', 'timestamp': '1436656384226', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1436656384226#c3975035320917650237', 'author': 'name': 'Atok Fakhrudin', 'avatarUrl': '//lh4.googleusercontent.com/--ra3fN9LNw8/AAAAAAAAAAI/AAAAAAAAAwg/Pi7TJOjdQJc/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/04936010705790753291', 'displayTime': 'Jul 12, 2015, 4:13:00 AM', 'deleteclass': 'item-control blog-admin pid-1079125680', 'id': '6651118452381021302', 'body': 'Aoa Bro I hide some of my website parts for different mobile devices using css media queries and css tag display:none; , this trick is good but I have a question can we use it within media queries in the place of display:none; ?', 'timestamp': '1436690617192', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1436690617192#c6651118452381021302', 'author': 'name': 'Ayesha Batool', 'avatarUrl': '//lh6.googleusercontent.com/-8ia9-RPeaqU/AAAAAAAAAAI/AAAAAAAAABY/J0pG3eTofTA/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/06251379993995262114', 'displayTime': 'Jul 12, 2015, 1:43:00 PM', 'deleteclass': 'item-control blog-admin pid-233031396', 'id': '5816074124764034854', 'body': 'This was really informative. Actually, I was looking for these codes exactly! x3cbr /x3ex3cbr /x3eOnce again...thanks. :)', 'timestamp': '1436697696871', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1436697696871#c5816074124764034854', 'author': 'name': 'Shivansh Verma Skv', 'avatarUrl': '//lh6.googleusercontent.com/-1NeQGMyg1xQ/AAAAAAAAAAI/AAAAAAAAABM/hq4qclTclck/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/03061852825912514166', 'displayTime': 'Jul 12, 2015, 3:41:00 PM', 'deleteclass': 'item-control blog-admin pid-1506271771', 'id': '8935907172169288234', 'body': 'thanks for this insightful post on mobile device. x3cbr /x3ereally need to optimize our site for better performance.x3cbr /x3ecanx26#39;t wait for MBT further mobile tips!', 'timestamp': '1436725865596', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1436725865596#c8935907172169288234', 'author': 'name': 'Melaka Shop', 'avatarUrl': '//lh4.googleusercontent.com/-vqDtqg-bjko/AAAAAAAAAAI/AAAAAAAAIHI/_oOlUTE6MUQ/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/13374444056988208802', 'displayTime': 'Jul 12, 2015, 11:31:00 PM', 'deleteclass': 'item-control blog-admin pid-903893071', 'id': '4752156030311901637', 'body': 'Thanks for this information, awesome tricks :)x3cbr /x3eJust for fix the code above because that code error in edit html blogger, should writte like this:x3cbr /x3ex3cix3ex26lt;b:if condx3dx26#39;data:blog.isMobileRequest x3dx3d x26amp;quot;falsex26amp;quot;x26#39;x26gt;x3c/ix3ex3cbr /x3e', 'timestamp': '1436741184584', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1436741184584#c4752156030311901637', 'author': 'name': 'Adhy Suryadi', 'avatarUrl': '//lh3.googleusercontent.com/-Q55pKJrgnXs/AAAAAAAAAAI/AAAAAAAAd6Q/TX1RU6Iv6ec/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/06846144400647921085', 'displayTime': 'Jul 13, 2015, 3:46:00 AM', 'deleteclass': 'item-control blog-admin pid-1170656019', 'id': '3808020019552553256', 'body': 'I dont fine in blogger template ', 'timestamp': '1436782265273', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1436782265273#c3808020019552553256', 'author': 'name': 'Yunus Khan', 'avatarUrl': '//lh6.googleusercontent.com/-QhxinlIhNxs/AAAAAAAAAAI/AAAAAAAAAWo/qnaatjAFCw0/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/00547384743808815715', 'displayTime': 'Jul 13, 2015, 3:11:00 PM', 'deleteclass': 'item-control blog-admin pid-1079530684', 'id': '3374092920944813161', 'body': 'Well I also get 100/100 user experience but the speed is very slow. it is 63/100', 'timestamp': '1436857917337', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1436857917337#c3374092920944813161', 'author': 'name': 'Hassan Tahir', 'avatarUrl': '//lh4.googleusercontent.com/-Rvl65hwzUp4/AAAAAAAAAAI/AAAAAAAAATE/pNCWdTn1rAY/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/08024859576178685553', 'displayTime': 'Jul 14, 2015, 12:11:00 PM', 'deleteclass': 'item-control blog-admin pid-1001839206', 'id': '1084648936634636086', 'parentId': '4882242131742025454', 'body': 'you need to add it. It is not present by default. Read part [2] of this tutorial', 'timestamp': '1437819830550', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1437819830550#c1084648936634636086', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAJZA/Yfbvp1almlI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 25, 2015, 3:23:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '8042933869131759258', 'parentId': '1878912638388897517', 'body': 'For pagespeed you need to block and disable scripts in mobile devices. Read x3ca hrefx3dx22http://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.htmlx22 relx3dx22nofollowx22x3epart [2]x3c/ax3e', 'timestamp': '1437819999055', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1437819999055#c8042933869131759258', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAJZA/Yfbvp1almlI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 25, 2015, 3:26:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '2236674825055334786', 'parentId': '6651118452381021302', 'body': 'w.salam sis, x3cbr /x3ex3cbr /x3eyes you can surely enclose your CSS media queries inside these tags. You can apply different mobile styles using this tags for sure.x3cbr /x3ex3cbr /x3eJust write down your complete CSS code and then enclose it inside these tags. Add that code just above closing head tag', 'timestamp': '1437820122858', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1437820122858#c2236674825055334786', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAJZA/Yfbvp1almlI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 25, 2015, 3:28:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '2031406337712331019', 'parentId': '5816074124764034854', 'body': 'always a pleasure buddy! :)', 'timestamp': '1437820148851', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1437820148851#c2031406337712331019', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAJZA/Yfbvp1almlI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 25, 2015, 3:29:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '603408756551384161', 'parentId': '8935907172169288234', 'body': 'Waiting to share all as soon as possible. :)', 'timestamp': '1437820176064', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1437820176064#c603408756551384161', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAJZA/Yfbvp1almlI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 25, 2015, 3:29:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '2197241758016415328', 'parentId': '4752156030311901637', 'body': 'thank you for the reminder adhy just fixed that :)', 'timestamp': '1437820266113', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1437820266113#c2197241758016415328', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAJZA/Yfbvp1almlI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 25, 2015, 3:31:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '3352886183827380486', 'parentId': '3374092920944813161', 'body': 'For Blog speed you need toidisable scripts in mobile devices. Read x3ca hrefx3dx22http://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.htmlx22 relx3dx22nofollowx22x3epart [2]x3c/ax3e', 'timestamp': '1437820296878', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1437820296878#c3352886183827380486', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAJZA/Yfbvp1almlI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 25, 2015, 3:31:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '6303493605074965804', 'parentId': '3374092920944813161', 'body': 'Page Speed can not be optimized if you are running too many ads like MBT does because after all we can not sacrifice revenue too much for page speed :)', 'timestamp': '1437820345612', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1437820345612#c6303493605074965804', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAJZA/Yfbvp1almlI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 25, 2015, 3:32:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '3631436098531436118', 'body': 'Can we use it with Javascripts?', 'timestamp': '1438282038126', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1438282038126#c3631436098531436118', 'author': 'name': 'Nafees Khan', 'avatarUrl': '//lh5.googleusercontent.com/-f-0aiNHw2s0/AAAAAAAAAAI/AAAAAAAAAH4/0CxD17ZoYCA/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/02849107974106842670', 'displayTime': 'Jul 30, 2015, 11:47:00 PM', 'deleteclass': 'item-control blog-admin pid-1112137174', 'id': '6830414608149136631', 'parentId': '3631436098531436118', 'body': 'yes sure you can, we have discussed it in part#2 please x3ca hrefx3dx22http://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.htmlx22 relx3dx22nofollowx22x3eclick herex3c/ax3e', 'timestamp': '1438286047897', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1438286047897#c6830414608149136631', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAJZA/Yfbvp1almlI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 31, 2015, 12:54:00 AM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '5602657762031271726', 'body': 'And how not display on mobile and desktop?x3cbr /x3eIt is only possible with [ display:none] ?', 'timestamp': '1438740547282', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1438740547282#c5602657762031271726', 'author': 'name': 'Claudinei Felipe', 'avatarUrl': '//lh3.googleusercontent.com/-tqiDij7kld8/AAAAAAAAAAI/AAAAAAAAB0s/qrgh8YqHKAM/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/00766736636847830073', 'displayTime': 'Aug 5, 2015, 7:09:00 AM', 'deleteclass': 'item-control blog-admin pid-1605284401', 'id': '6556980620768087333', 'body': 'where do i add this codes can you show me an examplex3cbr /x3ethanks', 'timestamp': '1439977029368', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1439977029368#c6556980620768087333', 'author': 'name': 'mohamad shami', 'avatarUrl': '//lh6.googleusercontent.com/-0YGFO-ZQmME/AAAAAAAAAAI/AAAAAAAABww/YQFogVwPLyo/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11630677177403558710', 'displayTime': 'Aug 19, 2015, 2:37:00 PM', 'deleteclass': 'item-control blog-admin pid-1216785394', 'id': '6027605044386615819', 'body': 'Please where do I input this code', 'timestamp': '1442268686878', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1442268686878#c6027605044386615819', 'author': 'name': 'babagbemi ayomide samuel', 'avatarUrl': '//lh6.googleusercontent.com/-RNF4mAiSYsI/AAAAAAAAAAI/AAAAAAAACM0/yJuph45z1bU/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/06242443240781102237', 'displayTime': 'Sep 15, 2015, 3:11:00 AM', 'deleteclass': 'item-control blog-admin pid-1704886078', 'id': '3704366282691519543', 'body': 'Amazing, Its working and the method used in html version is help to increase adsense revenue also. ', 'timestamp': '1450241703373', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1450241703373#c3704366282691519543', 'author': 'name': 'Sumit Kumar Gogawat', 'avatarUrl': '//lh5.googleusercontent.com/-4snKfA_34yU/AAAAAAAAAAI/AAAAAAAABsQ/AFXUkFz4S6U/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/17138058195183452291', 'displayTime': 'Dec 16, 2015, 9:55:00 AM', 'deleteclass': 'item-control blog-admin pid-805245956', 'id': '3779736880434620127', 'body': 'this thing ruin my whole blog, that my custom widget I store my css is gone in which the blog template mess up..., second, after I put the code inside the cond, all I see in mobile is complete blank... this is so painful ', 'timestamp': '1451486330295', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1451486330295#c3779736880434620127', 'author': 'name': 'okezumi stuff', 'avatarUrl': '//lh6.googleusercontent.com/-tG-Gr0VQiN4/AAAAAAAAAAI/AAAAAAAAAcU/J7y-vwdlPbQ/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/16482175810440790679', 'displayTime': 'Dec 30, 2015, 7:38:00 PM', 'deleteclass': 'item-control blog-admin pid-515579795', 'id': '660036000272950615', 'parentId': '3779736880434620127', 'body': 'Hi okezumi,x3cbr /x3ex3cbr /x3eThe above code is a simple condition, how can it ruin your whole blog buddy? Let me help you. Simply remove the codes and you are back to where you were. That simple! Why painful? ', 'timestamp': '1451565322884', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1451565322884#c660036000272950615', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAJZA/Yfbvp1almlI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Dec 31, 2015, 5:35:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '7972697862053929352', 'body': 'Hi Mohammed sir, this code doesnx26#39;t seem to work for me...i have mobile template disabled and using it to display a image conditionally on mobile devices...if u can take a look at it (hope u dont consider it spam : blog url http://engineersevanigam.blogspot.com)', 'timestamp': '1455445889234', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1455445889234#c7972697862053929352', 'author': 'name': 'Chahit Kumar', 'avatarUrl': '//lh5.googleusercontent.com/-gts70aggd7c/AAAAAAAAAAI/AAAAAAAAAXQ/sTNLMUOmRP8/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/09553974895098811053', 'displayTime': 'Feb 14, 2016, 3:31:00 PM', 'deleteclass': 'item-control blog-admin pid-566057152', 'id': '954720029913080070', 'body': 'Mohammad Mustafa Ahmedzai,x3cbr /x3ex3cbr /x3emb you can chage your x26quot;In Short Display:none is a Front end approach we need one that hides the content at Server Side.x26quot; abovex3cbr /x3ex3cbr /x3eto a better and clearer x26quot;In Short Display:none is a Front end approach. We need a better one that hides the content at Server Side.x26quot;x3cbr /x3ex3cbr /x3e', 'timestamp': '1457158842966', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1457158842966#c954720029913080070', 'author': 'name': 'Mississauga Electrician', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/03250096593998685352', 'displayTime': 'Mar 5, 2016, 11:20:00 AM', 'deleteclass': 'item-control blog-admin pid-197679325', 'id': '7146944599402738325', 'body': 'Hi Mohammed,x3cbr /x3ex3cbr /x3ethis is an extremely important and informative post! Thx.x3cbr /x3ex3cbr /x3eIn your part #2 you gave examples with real codes inserted inside the conditional expressions. That is very helpful. Actual real examples always make everything visual, crystal clear and simpler to understand.x3cbr /x3ex3cbr /x3eCould you pls do the same here? Pls give two or three examples. By replacing your text x26quot;HTML To Show Only in Desktop Devicesx26quot; x26amp; x26quot;HTML To Show Only in Mobile Devicesx26quot; with the actual codes. x3cbr /x3ex3cbr /x3eThx.x3cbr /x3e', 'timestamp': '1457168533029', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1457168533029#c7146944599402738325', 'author': 'name': 'Mississauga Electrician', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/03250096593998685352', 'displayTime': 'Mar 5, 2016, 2:02:00 PM', 'deleteclass': 'item-control blog-admin pid-197679325', 'id': '1029326498783504128', 'body': 'Hello. There, i just got penalize by google of sneaky redirect, but it only redirect to mobile versions, what is the problem, this google kept rejecting my reconsideration? Any idea', 'timestamp': '1471140458331', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1471140458331#c1029326498783504128', 'author': 'name': 'Nestor Demoni', 'avatarUrl': '//lh3.googleusercontent.com/-m6OpxFABXOo/AAAAAAAAAAI/AAAAAAAAALE/-uKiQU4_Mu0/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/14151235976311174098', 'displayTime': 'Aug 14, 2016, 7:07:00 AM', 'deleteclass': 'item-control blog-admin pid-157994304', 'id': '3464142150987403526', 'body': 'thanks for the trick sir. You are my inspiration for blogging. Keep share more trics..x3cbr /x3eNow my blog www.jakbelajar.com can hide a menu in mobile view.', 'timestamp': '1474282836869', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1474282836869#c3464142150987403526', 'author': 'name': 'Hendra Yulisman', 'avatarUrl': '//lh4.googleusercontent.com/-zYgHQ6wSGWo/AAAAAAAAAAI/AAAAAAAAHyo/51QS4dQ38Ts/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/08697633679451656274', 'displayTime': 'Sep 19, 2016, 4:00:00 PM', 'deleteclass': 'item-control blog-admin pid-200453950', 'id': '2342334545019027053', 'body': 'Code is working but what about table(7inchs) x26amp; other devices, i use x3cbr /x3e......x3cbr /x3eCode is working but it hiding content from desktop/laptop too, only this one the last constrain...hope you help me....my blog address is https://maxtalent-jobs.blogspot.in/x3cbr /x3e', 'timestamp': '1475347583396', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1475347583396#c2342334545019027053', 'author': 'name': 'Maxtalent Jobs', 'avatarUrl': '//lh5.googleusercontent.com/-9xspVRmppEo/AAAAAAAAAAI/AAAAAAAADQo/ivDSnwhNvh8/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/15908821709580005576', 'displayTime': 'Oct 1, 2016, 11:46:00 PM', 'deleteclass': 'item-control blog-admin pid-1138245886', 'id': '5054408299686240911', 'body': 'This code hides page title on desktop only:x3cbr /x3ex3cbr /x3ex3cbr /x3ex3cbr /x3eh3.post-title display:none;x3cbr /x3ex3cbr /x3ex3cbr /x3ex3cbr /x3eWhatx26#39;s the code to hide this page title on the phone only?x3cbr /x3ex3cbr /x3eandx3cbr /x3ex3cbr /x3eWhatx26#39;s the code to hide page title on both desktops and phones pls?x3cbr /x3ex3cbr /x3eThxx3cbr /x3ex3cbr /x3ePS. This comment app does not allow some tags, so I used with a space on purpose', 'timestamp': '1479472536983', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1479472536983#c5054408299686240911', 'author': 'name': 'electrician windsor', 'avatarUrl': '//lh3.googleusercontent.com/-uadAUgKS660/AAAAAAAAAAI/AAAAAAAAAA4/_CId6u8wDW8/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/16121600184372350415', 'displayTime': 'Nov 18, 2016, 5:35:00 PM', 'deleteclass': 'item-control blog-admin pid-998820588', 'id': '6235394600513803263', 'body': 'The mobile parameter works on a Boolean logic i.e. 0 or 1. If you visit mbt on a mobile device, you will see ?mx3d1 being appended to the URL in your address bar.', 'timestamp': '1486916373626', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1486916373626#c6235394600513803263', 'author': 'name': 'Steph Stephanie', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/00632323158938443769', 'displayTime': 'Feb 12, 2017, 9:19:00 PM', 'deleteclass': 'item-control blog-admin pid-327091589', 'id': '5673396099008582092', 'body': 'Awesome! How about if you want it to show up both in mobile and desktop?', 'timestamp': '1499838830620', 'permalink': 'https://www.mybloggertricks.com/2015/07/Blogger-Mobile-Conditional-Expressions.html?showCommentx3d1499838830620#c5673396099008582092', 'author': 'name': 'Remalin Ramones', 'avatarUrl': '//lh5.googleusercontent.com/-k9re_5YKtNE/AAAAAAAAAAI/AAAAAAAAAgM/JvIcbs_Z5_w/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/17235337361440903011', 'displayTime': 'Jul 12, 2017, 10:53:00 AM', 'deleteclass': 'item-control blog-admin pid-963381277'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '3252843051521186122', 'feed': 'https://www.mybloggertricks.com/feeds/3252843051521186122/comments/default', 'authorName': 'M. Mustafa Ahmedzai', 'authorUrl': 'https://www.blogger.com/profile/11681339458447132019', 'baseUri': 'https://www.blogger.com', 'maxThreadDepth': 2;
// 0)
cursor = parseInt(items[items.length - 1].timestamp) + 1;

var bodyFromEntry = function(entry)
if (entry.gd$extendedProperty)
for (var k in entry.gd$extendedProperty)
if (entry.gd$extendedProperty[k].name == 'blogger.contentRemoved')
return '' + entry.content.$t + '';



return entry.content.$t;

var parse = function(data)
cursor = null;
var comments = ;
if (data && data.feed && data.feed.entry)
for (var i = 0, entry; entry = data.feed.entry[i]; i++)
var comment = ;
// comment ID, parsed out of the original id format
var id = /blog-(d+).post-(d+)/.exec(entry.id.$t);
comment.id = id ? id[2] : null;
comment.body = bodyFromEntry(entry);
comment.timestamp = Date.parse(entry.published.$t) + '';
if (entry.author && entry.author.constructor === Array)
var auth = entry.author[0];
if (auth)
comment.author =
name: (auth.name ? auth.name.$t : undefined),
profileUrl: (auth.uri ? auth.uri.$t : undefined),
avatarUrl: (auth.gd$image ? auth.gd$image.src : undefined)
;


if (entry.link)
if (entry.link[2])
comment.link = comment.permalink = entry.link[2].href;

if (entry.link[3])
var pid = /.*comments/default/(d+)?.*/.exec(entry.link[3].href);
if (pid && pid[1])
comment.parentId = pid[1];



comment.deleteclass = 'item-control blog-admin';
if (entry.gd$extendedProperty)
for (var k in entry.gd$extendedProperty)
if (entry.gd$extendedProperty[k].name == 'blogger.itemClass')
comment.deleteclass += ' ' + entry.gd$extendedProperty[k].value;
else if (entry.gd$extendedProperty[k].name == 'blogger.displayTime')
comment.displayTime = entry.gd$extendedProperty[k].value;



comments.push(comment);


return comments;
;
var paginator = function(callback) {
if (hasMore()) {
var url = config.feed + '?alt=json&v=2&orderby=published&reverse=false&max-results=50';
if (cursor)
url += '&published-min=' + new Date(cursor).toISOString();

window.bloggercomments = function(data) {
var parsed = parse(data);
cursor = parsed.length






  1. Adil Muhammad YousufJul 11, 2015, 12:21:00 AM

    But i don't get this coding <b:if cond='data:blog.isMobileRequest == "false"> in my blog.


    ReplyDelete


    Replies




    1. Mohammad Mustafa AhmedzaiJul 25, 2015, 3:23:00 PM

      you need to add it. It is not present by default. Read part [2] of this tutorial


      Delete




    2. Reply









  2. Hari AnnuJul 11, 2015, 3:08:00 PM

    Mine User Experience in 98%, please check my pagespeed graph and kindly let me know what are the changes should be done to get good rating..

    Link: https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.cineringtones.com%2F&tab=mobile


    ReplyDelete


    Replies




    1. Mohammad Mustafa AhmedzaiJul 25, 2015, 3:26:00 PM

      For pagespeed you need to block and disable scripts in mobile devices. Read part [2]


      Delete




    2. Reply









  3. Atok FakhrudinJul 12, 2015, 4:13:00 AM

    Where can I read lists of blogger tag conditional and the explanation bro?


    ReplyDelete








  4. Ayesha BatoolJul 12, 2015, 1:43:00 PM

    Aoa Bro I hide some of my website parts for different mobile devices using css media queries and css tag display:none; , this trick is good but I have a question can we use it within media queries in the place of display:none; ?


    ReplyDelete


    Replies




    1. Mohammad Mustafa AhmedzaiJul 25, 2015, 3:28:00 PM

      w.salam sis,

      yes you can surely enclose your CSS media queries inside these tags. You can apply different mobile styles using this tags for sure.

      Just write down your complete CSS code and then enclose it inside these tags. Add that code just above closing head tag


      Delete




    2. Reply









  5. Shivansh Verma SkvJul 12, 2015, 3:41:00 PM

    This was really informative. Actually, I was looking for these codes exactly!

    Once again...thanks. :)


    ReplyDelete


    Replies




    1. Mohammad Mustafa AhmedzaiJul 25, 2015, 3:29:00 PM

      always a pleasure buddy! :)


      Delete




    2. Reply









  6. Melaka ShopJul 12, 2015, 11:31:00 PM

    thanks for this insightful post on mobile device.
    really need to optimize our site for better performance.
    can't wait for MBT further mobile tips!


    ReplyDelete


    Replies




    1. Mohammad Mustafa AhmedzaiJul 25, 2015, 3:29:00 PM

      Waiting to share all as soon as possible. :)


      Delete




    2. Reply









  7. Adhy SuryadiJul 13, 2015, 3:46:00 AM

    Thanks for this information, awesome tricks :)
    Just for fix the code above because that code error in edit html blogger, should writte like this:
    <b:if cond='data:blog.isMobileRequest == &quot;false&quot;'>


    ReplyDelete


    Replies




    1. Mohammad Mustafa AhmedzaiJul 25, 2015, 3:31:00 PM

      thank you for the reminder adhy just fixed that :)


      Delete




    2. Reply









  8. Yunus KhanJul 13, 2015, 3:11:00 PM

    I dont fine in blogger template


    ReplyDelete








  9. Hassan TahirJul 14, 2015, 12:11:00 PM

    Well I also get 100/100 user experience but the speed is very slow. it is 63/100


    ReplyDelete


    Replies





    1. Mohammad Mustafa AhmedzaiJul 25, 2015, 3:31:00 PM

      For Blog speed you need toidisable scripts in mobile devices. Read part [2]


      Delete








    2. Mohammad Mustafa AhmedzaiJul 25, 2015, 3:32:00 PM

      Page Speed can not be optimized if you are running too many ads like MBT does because after all we can not sacrifice revenue too much for page speed :)


      Delete





    3. Reply









  10. Nafees KhanJul 30, 2015, 11:47:00 PM

    Can we use it with Javascripts?


    ReplyDelete


    Replies




    1. Mohammad Mustafa AhmedzaiJul 31, 2015, 12:54:00 AM

      yes sure you can, we have discussed it in part#2 please click here


      Delete




    2. Reply









  11. Claudinei FelipeAug 5, 2015, 7:09:00 AM

    And how not display on mobile and desktop?
    It is only possible with [ display:none] ?


    ReplyDelete








  12. mohamad shamiAug 19, 2015, 2:37:00 PM

    where do i add this codes can you show me an example
    thanks


    ReplyDelete








  13. babagbemi ayomide samuelSep 15, 2015, 3:11:00 AM

    Please where do I input this code


    ReplyDelete








  14. Sumit Kumar GogawatDec 16, 2015, 9:55:00 AM

    Amazing, Its working and the method used in html version is help to increase adsense revenue also.


    ReplyDelete








  15. okezumi stuffDec 30, 2015, 7:38:00 PM

    this thing ruin my whole blog, that my custom widget I store my css is gone in which the blog template mess up..., second, after I put the code inside the cond, all I see in mobile is complete blank... this is so painful


    ReplyDelete


    Replies




    1. Mohammad Mustafa AhmedzaiDec 31, 2015, 5:35:00 PM

      Hi okezumi,

      The above code is a simple condition, how can it ruin your whole blog buddy? Let me help you. Simply remove the codes and you are back to where you were. That simple! Why painful?


      Delete




    2. Reply









  16. Chahit KumarFeb 14, 2016, 3:31:00 PM

    Hi Mohammed sir, this code doesn't seem to work for me...i have mobile template disabled and using it to display a image conditionally on mobile devices...if u can take a look at it (hope u dont consider it spam : blog url http://engineersevanigam.blogspot.com)


    ReplyDelete








  17. Mississauga ElectricianMar 5, 2016, 11:20:00 AM

    Mohammad Mustafa Ahmedzai,

    mb you can chage your "In Short Display:none is a Front end approach we need one that hides the content at Server Side." above

    to a better and clearer "In Short Display:none is a Front end approach. We need a better one that hides the content at Server Side."


    ReplyDelete








  18. Mississauga ElectricianMar 5, 2016, 2:02:00 PM

    Hi Mohammed,

    this is an extremely important and informative post! Thx.

    In your part #2 you gave examples with real codes inserted inside the conditional expressions. That is very helpful. Actual real examples always make everything visual, crystal clear and simpler to understand.

    Could you pls do the same here? Pls give two or three examples. By replacing your text "HTML To Show Only in Desktop Devices" & "HTML To Show Only in Mobile Devices" with the actual codes.

    Thx.


    ReplyDelete








  19. Nestor DemoniAug 14, 2016, 7:07:00 AM

    Hello. There, i just got penalize by google of sneaky redirect, but it only redirect to mobile versions, what is the problem, this google kept rejecting my reconsideration? Any idea


    ReplyDelete








  20. Hendra YulismanSep 19, 2016, 4:00:00 PM

    thanks for the trick sir. You are my inspiration for blogging. Keep share more trics..
    Now my blog www.jakbelajar.com can hide a menu in mobile view.


    ReplyDelete








  21. Maxtalent JobsOct 1, 2016, 11:46:00 PM

    Code is working but what about table(7inchs) & other devices, i use
    ......
    Code is working but it hiding content from desktop/laptop too, only this one the last constrain...hope you help me....my blog address is https://maxtalent-jobs.blogspot.in/


    ReplyDelete








  22. electrician windsorNov 18, 2016, 5:35:00 PM

    This code hides page title on desktop only:



    h3.post-title display:none;



    What's the code to hide this page title on the phone only?

    and

    What's the code to hide page title on both desktops and phones pls?

    Thx

    PS. This comment app does not allow some tags, so I used with a space on purpose


    ReplyDelete








  23. Steph StephanieFeb 12, 2017, 9:19:00 PM

    The mobile parameter works on a Boolean logic i.e. 0 or 1. If you visit mbt on a mobile device, you will see ?m=1 being appended to the URL in your address bar.


    ReplyDelete








  24. Remalin RamonesJul 12, 2017, 10:53:00 AM

    Awesome! How about if you want it to show up both in mobile and desktop?


    ReplyDelete




Add comment


Load more...












BLOG_CMT_createIframe('https://www.blogger.com/rpc_relay.html');







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

Museum of Modern and Contemporary Art of Trento and Rovereto