• Resolved marcobutz

    (@marcobutz)


    Hi there,
    is there any way not to have a right sidebar for a single blogpost page?
    Would be nice to have a CSS or a code.
    BR Marco

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @marcobutz,

    Go to Appearance → Customize → Additional CSS (the menu labels might be different in your language) and add the code below:

    .single-post .content { 
        width: 100%;
        margin: 0;
    }
    
    .single-post .sidebar {
        display: none;
    }

    Let me know if that does it.

    — Anders

    Thread Starter marcobutz

    (@marcobutz)

    Hey Anders,
    this is aweseome. So great! Worked. Thnx and support for this can be closed!
    Best regards
    Marco

    Thread Starter marcobutz

    (@marcobutz)

    Just refined it a bit to:
    > have the block gallery not floating to the very right on mobile
    > have a bit smaler single post content on wider screens.

    /** Single Post keine Sidebar **/
    .single-post .content .wp-block-gallery {
        width: 100%;
        margin: 0;
    }
    
    .single-post .sidebar {
        display: none;
    }
    
    /** Gr??ere Monitore **/
    @media only screen and (min-width: 1140px) {
    	.single-post .content {
      	width: 100%;
        margin-left: 150px;
    		margin-right: 150px;
    	}
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No sidebar on single blog post page?’ is closed to new replies.