How to show blogger widget in home page in mobile only

Awesome Tips
0
How to show special widget above content area in home page in mobile view only


Answer:::::

Add the conditions at your custom widget like so..


<b:widget cond='data:view.isHomepage and data:blog.isMobileRequest' ...... >


Hide widget on mobile view

Answer:::::

You need to add the Blogger conditional tags directly to b:widget tags like so (example below on an HTML/Javascript)...

<b:widget cond='!data:view.isMobile' id='HTML1' locked='false' title='Cart' type='HTML' version='1'>

OR...

<b:widget cond='!data:blog.isMobileRequest' id='HTML1' locked='false' title='Cart' type='HTML' version='1'>



The above depends on which Blogger theme version you are using. Try either one and see which ones works for you. 

Post a Comment

0 Comments
Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
To Top