Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #113769
    Frank
    Participant

    I’d like to have three columns on my homepage (https://blog.frank-muennich.net)
    but only two columns on the archives.
    Would that be possible? And how?
    Best regards,
    Frank

    [email protected]
    [email protected]

    #113776
    Mahesh
    Keymaster

    @wolpertinger: Which one(sidebar) do you want to remove from the archives page?

    Regards,
    Mahesh

    #113793
    Frank
    Participant

    I want to remove the left (“secondary”) sidebar from the archives page.
    Child theme is installed and activated.
    Regards,
    Frank

    #113832
    Mahesh
    Keymaster

    @wolpertinger: You can simply hide the third sidebar in archive pages with CSS. Go to Dashboard=> Appearance=> Customize=> Additional CSS box and add the following CSS:

    .archive #third-sidebar {
        display: none;
    }
    
    .archive.three-columns .content-sidebar-wrap {
        width: 100%;
        float: none;
    }
    
    .archive.three-columns #primary {
        width: 70%;
    }
    
    @media screen and (max-width: 1024px) {
        .archive.three-columns #primary {
            width: 100%;
        }
    }
    
    @media screen and (max-width: 1024px) and (min-width: 768px) {
        .two-columns #secondary .widget:nth-child(2n+1), .three-columns 	#secondary .widget:nth-child(2n+1) {
            clear: both;
        }
    
        .two-columns #secondary .widget, .three-columns #secondary .widget, .three-columns #third-sidebar .widget, .three-columns.equal #third-sidebar .widget {
            float: left;
            margin-left: 20px;
            width: 47.2%;
        }
        .widget {
            clear: none;
        }
    }

    If you want to remove it completely through code, I recommend you to hire a customizer.

    Regards,
    Mahesh

    #114002
    Frank
    Participant

    @Mahesh: works fine, thanks
    regards Frank

    #114049
    Mahesh
    Keymaster

    @wolpertinger: Thank you for your appreciation. Have a nice day!

    Regards,
    Mahesh

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘number of columns in archives’ is closed to new replies.