[Resolved] Add image to the latest posts Blog page

Home Forums Support [Resolved] Add image to the latest posts Blog page

Home Forums Support Add image to the latest posts Blog page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #425032
    jdaco

    Hello, in the page where I want to show my latest posts I want to include an image to be displayed at the very top of container with the latest posts. When editing th Blog page there is no place for adding some content?

    When editing that page, I see the post ID is 34, then I went to GP Hooks and tried something like this:

    <?php if(is_page( ’34’ )) {?>

    <?php } ?>

    I tried various sections but I don´t see the image.

    What I am missing?

    Thank you!
    Jorge

    #425073
    Leo
    Staff
    Customer Support

    Hi there,

    Try is_front_page() && is_home()

    More info here: https://codex.wordpress.org/Conditional_Tags#The_Blog_Page

    #425146
    jdaco

    Hi Leo, thanks for your fast response.. in my case I used is_home() and yes it worked!

    For the record I placed the php code in GP Hooks – Inside Content Container

    Thank you!

    #425228
    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.