> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mylisting.club/llms.txt
> Use this file to discover all available pages before exploring further.

# Content Visibility

> Control what content your website shows based on a user’s role or their logged-in status.

The **Content Visibility** module lets you manage content visibility from one place—inside MyListing Pro. Turn it on, set your rules, or use shortcodes, and your site handles the rest. *No custom code or editing of theme files required.*

You can hide menu items, single listing blocks, and, well, anything really.

**Why Site Owners Love It**

* **Members-only areas** without heavy edits to your site or separate membership plugins
* **Role-specific messages** (welcome notes, upgrade prompts, admin notices)
* **Guest-friendly prompts** for people who have not signed in
* **Works anywhere** where you can add a CSS class or a shortcode

## Frequently Asked Questions

<AccordionGroup>
  <Accordion title="How do we set this up?">
    Once the module is enabled, it's super easy to create a **Hide Rule** or grab a **Hide Shortcode** to use throughout your site.
  </Accordion>

  <Accordion title="Can you walk us through an example using a Hide Rule?">
    Yes, let's look at how we would hide a menu item.

    1. MyListing Pro → Hide Rules → Add a class name to a rule
    2. Choose which role(s) the rule applies to
    3. Optionally add notes for future reference so you know why the rule was created and where you applied it
    4. WordPress Dashboard → Appearance Menus → Screen Options
    5. Advanced Menu Properties → Check the **CSS Classe**s box
    6. Expand a menu item you want to hide and add your class name from **Step 1**.
    7. Save menu
  </Accordion>

  <Accordion title="Can you walk us through an example using a Hide Shortcode?">
    Yes, let's look at how we would hide elements of a menu item from users who are not logged into your site.

    1. MyListing Pro → Shortcodes → Copy the **Members Only** shortcode to your clipboard
    2. Optionally add notes for future reference so you know where the shortcodes were added
    3. WordPress Dashboard → Appearance Menus → Expand a menu item you want to add your shortcode to
    4. Paste the shortcode into the **Navigation Label**
    5. Replace the **Members-Only Content** placeholder text with the elements you want to hide (text, icon, etc.) 
    6. Save menu
  </Accordion>

  <Accordion title="Do Hide Rules work with single listing blocks?">
    Yes, simply add your **Hide Rule** class name to the Custom Block Classes field within your single listing block.
  </Accordion>

  <Accordion title="Can we see this on a live MyListing website?">
    This is a back-end solution, so there’s nothing to see on the front end. Check out the [MyListing Pro YouTube playlist](https://www.youtube.com/playlist?list=PLggJJkpjrMUbtAzIDmgHpVnyP6DUxuILT) to learn more.
  </Accordion>
</AccordionGroup>
