• Home
  • Is MLW right for you?
    • Overview
    • What you get
    • Is it really as easy as it sounds?
    • What does it cost?
  • Sign Up!
  • Getting Started
    • Overview
    • Visual Templates
    • Logging in / Settings
    • Pages and Posts
    • Working with Menus
    • Backgrounds galore!
  • Support / FAQ
    • Support Overview
    • FAQ
    • How to…
      • Basic
      • Intermediate
      • Advanced
    • Open a Support Ticket
  • Demo
  • Contact Us
Browse: Home / 2012 / How to show a widget ONLY on your home page.

How to show a widget ONLY on your home page.

By Benjamin Barnett on February 8, 2012

One cool little plugin which some of you may enjoy gives you control of when a widget displays on your site. It’s more fine control than many users want, but if for instance you want an events listing on your home page only, it’s right up your alley. It’s called Widget Logic, and it adds a field at the bottom of each widget you’ve emplaced in any of your theme’s widget areas.

Navigate to ‘Appearance’ / ‘Widgets’, and click the little gray down arrow at the right edge of the widget you wish to constrain. For our demonstration, we’re going to force this widget to display ONLY on your home page (just like it says in the headline).

Now paste this text into that field at the bottom of your widget:

is_front_page()

Click ‘Save’ (bottom left of widget box) and you’re done. So easy!

There are many more controls you can assign to your widgets to create other display behaviors (only on blog posts, only on single pages, only on posts of a particular category). The FAQ documentation for Widget Logic is here for your further reference:

  • http://wordpress.org/extend/plugins/widget-logic/faq/
Print FriendlyPrint This

Posted in How-to Articles, Intermediate | Tagged widgets

« Previous Next »

Search

This thing comes with so many professional features rolled in, nothing else out there compares. What a great value!— H.M.

You guys totally understand the small business person. Thanks for making such a great service available.— L.B.

In today's business environment, having a website is crucial for credibility (not to mention additional exposure), especially for a sole practitioner like me. MightyLittleWebsites.com offered me an easy and reasonably priced entry into that environment.— Loren Sonkin, Esq.

I have used other content management systems in the past and MightyLittleWebsites.com offers more options and flexibility, making the communication of our brand so much easier.— J.F.

I was going to try to create my website myself without the benefit of easy-to-understand tools or templates like this. This just made my life so much better! It's DIY without the frustration. Thank you!— L.H.

After many years in business without a web presence, MightyLittleWebsites.com gave us a way to quickly and simply enter the online world with a variety of easy-to-use templates. Our website was up and running in no time.— G.S.

Tagcloud

backgrounds commerce content content management css forms links pages paypal plugins settings shortcodes styling themes widgets

  • Terms of Service
  • Acceptable Use Policy
  • DMCA Explanation
  • Domain Name Registration and Dispute Resolution Policy
  • Privacy Policy
  • Service Level Agreement (“SLA”)

Copyright © 2012 MightyLittleWebsites.com. Powered by WordPress and Hybrid.

Boxpulse WordPress Theme