Okay
  Public Ticket #3547833
Custom post types
Closed

Comments

  •  7
    Florian started the conversation

    Hi,

    Could you help me to disable the sidebar from a CPT that I set up? (https://florianz20.sg-host.com/team/claire-2/). So no sidebar on this post type. 

    But I still would like to keep it on the default posts (https://florianz20.sg-host.com/totus-neurorehabilitation-transforming-lives-and-futures/).

    Edits to the child theme functions.php would do it I assume but I can't get it to work.

    Many thanks,

    Florian


  •  2,740
    Andrew replied

    Hello there,

    Thank you for reaching out to us.

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    .single-team #sidebar {
      display: none;
    }
    .single-team .span_9 {
      width: 100%;
    }
    

    Try this and let us know how it goes.

    Thanks,

  •  7
    Florian replied

    Sweet! Seems to work perfectly.

    Thanks for the quick response.

    Florian