• Resolved rahulkapoordelhi86

    (@rahulkapoordelhi86)


    Hi Team,

    First, thanks for the amazing theme.

    I have couple of issues:

    1. How to move heading below featured images in blog/archive/search (everywhere)?
    2. How to move heading above featured image on single posts?
    3. How to remove excerpt from blog/archive/search (everywhere)?

    I will prefer filters rather than modifying the theme files.

    Thanks again!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    Our pro version has options in the Customizer for all of this, but you can use actions as well.

    1.

    remove_action( 'generate_after_entry_header', 'generate_post_image' );
    add_action( 'generate_before_content', 'generate_post_image' );

    2.

    remove_action( 'generate_before_content', 'generate_featured_page_header_inside_single' );
    add_action( 'generate_after_entry_header', 'generate_featured_page_header_inside_single', 10 );

    3.

    add_filter( 'excerpt_length', '__return_null' );

    Hope this helps ??

    Thread Starter rahulkapoordelhi86

    (@rahulkapoordelhi86)

    Hi Tom,

    Thanks, it worked perfectly!

    I have another question regarding layout only:

    • How to make posts in blog/archive/search in a two-column layout?

    Thanks again!

    It requires the columns option in the premium plugin:
    https://docs.generatepress.com/article/using-columns-in-the-blog/

    Thread Starter rahulkapoordelhi86

    (@rahulkapoordelhi86)

    Hi Leo,

    Can’t we do this with just css or using any filters??

    Unfortunately that is a premium option.

    Thread Starter rahulkapoordelhi86

    (@rahulkapoordelhi86)

    I understand that plugin may make the things easier… But it’s strange that for just making a single design change, I need a separate plugin.

    Though I can make that in two columns with css, with some research, I thought there might be some better option, you can suggest me rather than promoting the premium add-on.

    I will wait for @edge22 Tom’s reply.

    Theme Author Tom

    (@edge22)

    Anything can be done with CSS, but there is no filter for that one.

    You would want to apply display: flex to the posts container, then add a width property to the posts themselves.

    Something like this:

    .archive .site-main, 
    .blog .site-main {
        display: flex;
        flex-wrap: wrap;
    }
    
    .archive article, 
    .blog article {
        width: 50%;
    }
    Thread Starter rahulkapoordelhi86

    (@rahulkapoordelhi86)

    Thanks Tom, it worked, great.
    That’s something called expertise ??

    Theme Author Tom

    (@edge22)

    Glad I could help! ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Blog/archive/search layout’ is closed to new replies.