Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #8213

    How can I display the title of the post above the featured image in a single post? For example, displaying the title above the photo here:

    It’s okay if the title is also display below the featured image as well (like it is by default).


    Open up includes/loop-index.php and insert following code:

    <h1 class='post-title'>
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> <?php the_title(); ?>"><?php the_title(); ?></a>

    before the slider code:

    $slider = new avia_slideshow(get_the_ID());
    echo $slider->display_small($img_size);

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Displaying post title above featured image, in single post view.’ is closed to new replies.