• Hello!

    I would like to know how to put the title of the post below the featured image but only on the home page (I’m not using a static front page)

    I imagine it has something to do with php and I’m comfortable changing those files if you give me the right instructions.

    Thanks for the great theme

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    To put the title below the featured image, first create a child theme for the Travel EYE theme you are using.

    To create a child theme you can use any easy to use WordPress plugins like
    https://www.ads-software.com/plugins/wp-child-theme-generator/

    Or you could create it manually.
    To know more about child theme please visit https://codex.www.ads-software.com/Child_Themes

    After creating the child theme and create a new folder in your child theme named template-parts like on the parent theme.

    Now, on the child themes template-parts folder that you have just made, copy the content.php file located on your parent-theme’s template-part folder.

    Finally, on the child theme’s new content.php file on line number 14 you can see this code <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>

    Move the code from that line and place it just above this code on line number 39 <?php if ( 'full' === $archive_layout ) : ?>.

    Line number may differ according to the text editor you use, so we suggest you to look for the code we provided and do not completely depend on the line number.

    If you follow the procedure correctly you will be able to get what you have requested on the theme.

    If you have any confusion do not hesitate to let us know, even better you could get a swift response on the theme’s official forum at https://themepalace.com/forum/travel-eye/

    Regards.

    Thread Starter MauroPedrosa

    (@mauropedrosa)

    Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Put title below featured image, home page’ is closed to new replies.