• Resolved azanimex

    (@azanimex)


    Hi, I was using the following code to get the grid style and it was working until I upgraded to version 3.0 which now shows me the title above the featured image.

    .blog #main,
    .archive #main {
        display: flex;
        flex-wrap: wrap;
        margin-left: -20px;
    }
    
    .blog .site-main article,
    .archive .site-main article {
        width: calc(50% - 20px);
        margin-left: 20px;
    }
    
    .blog .inside-article,
    .archive .inside-article {
        height: 100%;
        box-sizing: border-box;
    }

    Code provided by Tom himself in this topic: https://www.ads-software.com/support/topic/why-grid-layout-is-premium/

    Could you help me make it like the previous version, featured image above and title below?

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

    (@edge22)

    Hi there,

    Any chance you can link us to your site? Happy to take a look.

    Let me know ??

    Thread Starter azanimex

    (@azanimex)

    This is the site: https://www.az-animex.com/

    Theme Author Tom

    (@edge22)

    How were you moving the featured image before? That shouldn’t have changed in the update.

    Try this:

    add_action( 'wp', function() {
        remove_action( 'generate_after_entry_header', 'generate_post_image' );
        add_action( 'generate_before_content', 'generate_post_image' );
    } );
    Thread Starter azanimex

    (@azanimex)

    That solved the problem but the truth is I did not remember if I touched any file of the theme, maybe something related to the content.php but I do not remember it.

    Now with that problem solved, it remains to fix the css that looks different than it was before.

    Thank you very much for your help!

    Theme Author Tom

    (@edge22)

    What did it look like before? No featured image top margin? If so, try this:

    .post-image:not(:first-child) {
        margin-top: 0;
    }
    Thread Starter azanimex

    (@azanimex)

    Yes that’s the line I removed from the additional CSS.

    Thank you!

    Theme Author Tom

    (@edge22)

    No problem!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Grid style issue in GP 3.0 (FREE)’ is closed to new replies.