MyListing Club

Hide Account Section on MyListing Submit Form

Building better MyListing websites. One code snippet at a time.

Overview

The Hide Account Section on MyListing Submit Form code snippet came about as MyListing website owners were asking to show a cleaner Submit Form for their users.

Implementation

  1. Grab the code snippet.
  2. Follow the provided instructions.
  3. Save your changes.
				
					//// INSTRUCTIONS: 
//// Copy and paste the code snippet below into Theme Tools > Theme Options > Custom Code > CSS.

//// NOTES:
//// When non-logged in users go to submit a Listing, they are presented with a sign-in/register box.
//// There is also a corresponding side navigation item.
//// This snippet removes both.

--------------------------- CODE SNIPPET IS BELOW THIS LINE --------------------------- 

/* ML - HIDE ACCOUNT SECTION ON MYLISTING SUBMIT FORM */
body:not(.logged-in) form.c27-submit-listing-form #form-section-auth {
    display: none;
}

/* ML- HIDE THE SIDE NAVIGATION ITEM FOR THE ACCOUNT SECTION
li#form-section-auth-nav {
    display: none;
}