/blogger/community?hl=en
/blogger/community?hl=en
1/11/17
Original Poster
artgrrl_81

Mobile Homepage Conditional

Howdy -- Does anyone know the conditional tag/code for the mobile homepage? I want to add a widget to the mobile homepage....but JUST that page. Thanks, A

Is it? <b:include name='mobile-main'/>
Community content may not be verified or up-to-date. Learn more.
Recommended Answer
Was this answer helpful?
How can we improve it?
All Replies (7)
1/11/17
Expert - Gold
Krishna .M
HI artgrrl_81,

Welcome to the Blogger Help Forum.

Here's how you need to do it,
  1. Backup your template first of All.
  2. Go to blogger.com > Template
  3. Edit HTML
  4. Jump to Gadget > Choose the one which you want to show in mobile.
  5. Add the piece of code, "mobile='yes'" in the very first line of the gadget.
  6. Save Template.
Now this widget should start appearing in mobile website as well. I hope that helps. Kindly keep me posted.

Thank you.
1/11/17
Original Poster
artgrrl_81
Thanks but this isn't what I mean. I know this method, which puts the widget on every page of the mobile site....I'm asking for a conditional code that will allow me to place the widget and have it appear on a specific mobile page ....for me I'm asking for the mobile homepage only....sometimes referred to as the mobile index or mobile contents. Thx.
1/12/17
Expert - Gold
Krishna .M
OK. There isn't a direct condition for a widget to appear only on mobile index. However you could add multiple conditions like this(code highlighted in yellow),

<b:if cond='data:blog.pageTitle == data:blog.title and data:blog.isMobile'>
<!--Content Here-->
</b:if>

Read here for more details -> How to blog?: Gadget in mobile home page alone

Kindly let us know if that is what you're looking for. Thank you.
1/12/17
Original Poster
artgrrl_81
Yes! It did put the widget right on the mobile homepage...which is excellent....so round two is: how can I get it to be on the mobile homepage, just like you did PLUS on posts, static, archive, label? :) I tried to add in conditionals but they didn't work. THANKS! This helps a lot!
1/12/17
Expert - Gold
Krishna .M
Thanks for the update. Glad that it helped. I am super ready for round two. However in forum we follow one problem/one thread/one person policy which helps us keep diagnosis information related to only one issue in one place. This also helps other users find the right solution for the question without confusions. Hope you understand.

That said, it's a kind request from our side. Could you please create a separate thread for this so that we can help you out? Also please explain a little more detailed about your question.

Looking forward to your new thread. Thank you.
1/16/17
Expert - Gold
Krishna .M
Hi Alicia,

Thank you for creating a new thread. I have responded there.
 
This question is locked and replying has been disabled. Still have questions? Ask the Help Community.

Badges

Some community members might have badges that indicate their identity or level of participation in a community.

 
Expert - Google Employee — Googler guides and community managers
 
Expert - Community Specialist — Google partners who share their expertise
 
Expert - Gold — Trusted members who are knowledgeable and active contributors
 
Expert - Platinum — Seasoned members who contribute beyond providing help through mentoring, creating content, and more
 
Expert - Alumni — Past members who are no longer active, but were previously recognized for their helpfulness
 
Expert - Silver — New members who are developing their product knowledge
Community content may not be verified or up-to-date. Learn more.

Levels

Member levels indicate a user's level of participation in a forum. The greater the participation, the higher the level. Everyone starts at level 1 and can rise to level 10. These activities can increase your level in a forum:

  • Post an answer.
  • Having your answer selected as the best answer.
  • Having your post rated as helpful.
  • Vote up a post.
  • Correctly mark a topic or post as abuse.

Having a post marked and removed as abuse will slow a user's advance in levels.

View profile in forum?

To view this member's profile, you need to leave the current Help page.

Report abuse in forum?

This comment originated in the Google Product Forum. To report abuse, you need to leave the current Help page.

Reply in forum?

This comment originated in the Google Product Forum. To reply, you need to leave the current Help page.