[Resolved] placing images below title on category pages

Home Forums Support [Resolved] placing images below title on category pages

Home Forums Support placing images below title on category pages

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1127191
    simit

    hello,

    here is an example of my category pages: https://cfdtrading.com/category/forex/

    i’d like to modify it so that the sequence of items pertaining to each post is as follows:

    title
    date, author
    excerpt
    image

    the current sequence places the image above everything else, including the title.

    i have the wp show posts plugin installed, which allowed me to tailor things as i prefer for the home page. but how can i modify category pages?

    #1127274
    Leo
    Staff
    Customer Support

    Hi there,

    Set the featured image location to below title in the customizer:
    https://docs.generatepress.com/article/adjusting-the-featured-images/

    Then add this PHP snippet:

    add_action( 'after_setup_theme', function() {
        remove_action( 'generate_after_entry_header', 'generate_post_image' );
        add_action( 'generate_after_content', 'generate_post_image' );
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Let me know if this helps ๐Ÿ™‚

    #1127804
    simit

    that worked perfectly — thank you so much, leo!

    #1128043
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.