• So the Hueman theme is great and I absolutely love it. I am learning a lot, and need help with the 1 versus 2 column layout. For my ‘home page’ I would like blog posts shown in a 1 column layout which I have done by editing the child theme CSS. However, for the recipes page, which shows posts based on the ‘recipes and eats’ category to be in the 2 column layout. Currently it is in the 1 column layout like the ‘home page’. Any thoughts? The website is https://www.barbellsandcurls.com (and is still being developed).

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Try changing your child theme css to specify just the home page:

    .home .post-list .post {
    width: 100%;
    }

    Thread Starter BarbellsCurls

    (@barbellscurls)

    Thanks for the response. Unfortunately this did not change the recipes tab either. I replace my current css child mod ‘.post-list .post, .post-list .page { width: 100%; }’ with yours and it remained 1 column on all pages. Any other suggestions to try?

    Thread Starter BarbellsCurls

    (@barbellscurls)

    What is even more strange, I removed my code and your entirely from the child theme css, and updated the file. When I refreshed the page it remained as 1 column and did not revert to the standard 2 column.

    Thread Starter BarbellsCurls

    (@barbellscurls)

    Okay – apologies for the responses, but your edits did work perfect! For some reason just refreshing the page would not update the changes, but when I closed the browser and restarted it worked great! Thank you bdbrown. I do have another question. I am only showing three posts on the ‘home’ page. The ‘recipes’ page only shows three as well. In a grid layout now this docent look that great. Is there anyway I can keep the home page at 3 and increase just the recipe page?

    I just looked at your site using the link in your original post. The code I suggested above is still there, the home page posts are in a single column and the recipes-eats page posts are in two columns.

    Thread Starter BarbellsCurls

    (@barbellscurls)

    I know and thanks! Apologies for the miscommunication, your advice worked great. There was an issue with my refresh and it wasn’t showing changes as I mad them. Thanks again. Do you have any thoughts on how to increase the post count (posts shown at one time) on just the recipes tab?

    Check the Settings – Reading – Blog pages show at most X posts. Is that set to 3?

    Thread Starter BarbellsCurls

    (@barbellscurls)

    Yes it is because I only want 3 or 4 at the most shown on the ‘home’ page. Because the ‘recipes’ page is grid now (thanks again) I would like that page to show 8 or 10.

    Couple of options:
    1. Add this to your child theme functions.php

    function posts_on_homepage( $query ) {
        if ( $query->is_home() && $query->is_main_query() ) {
            $query->set( 'posts_per_page', 3 );
        }
    }
    add_action( 'pre_get_posts', 'posts_on_homepage' );

    2. Use a plugin like this one.

    Then change the “Blog pages show at most” to however many posts you want to display on the category pages.

    Thread Starter BarbellsCurls

    (@barbellscurls)

    You are absolutely brilliant. Thank you so much!

    You’re most welcome. Glad I could help.

    Yay! This worked for me too – I’ve been meaning to change the posts on homepage for ages!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Page Column Layout’ is closed to new replies.