Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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: http://worlddailyphoto.com/turkey/roman-library-of-celsus-ephesus

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

    #60686

    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>
    </h1>

    before the slider code:

    <?php
    if($img_size)
    {
    $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.