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

    Hi there,

    I have created a category of articles, the only content of these articles is an image (inserted in the article). When I display the articles, the image appears before the title of my article.

    Is there a way the inverse that : having the title of the article and then the image?

    Otherwise, the best would be to display the title + a thumbnail of the image. Is it possible ? How?

    #83616

    Open up sentenceincludesformat-standard.php and replace:

    <?php if($slider->slidecount) echo $slider->display(); ?>

    <h1 class='post-title offset-by-one '>
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> <?php the_title(); ?>"><?php the_title(); ?>
    <span class='post-format-icon minor-meta'></span>
    </a>
    </h1>

    with:

    <?php if(!is_archive()){ ?>
    <?php if($slider->slidecount) echo $slider->display(); ?>

    <h1 class='post-title offset-by-one '>
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> <?php the_title(); ?>"><?php the_title(); ?>
    <span class='post-format-icon minor-meta'></span>
    </a>
    </h1>
    <?php }else{ ?>
    <h1 class='post-title offset-by-one '>
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> <?php the_title(); ?>"><?php the_title(); ?>
    <span class='post-format-icon minor-meta'></span>
    </a>
    </h1>
    <?php if($slider->slidecount) echo $slider->display(); ?>
    <?php } ?>

    #83617

    perfect!

    thank you a lot !

    #83618

    Glad Peter could help you! Let us know if you have any more questions.

    Regards,

    Mya

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

The topic ‘Article with format image : title before the image’ is closed to new replies.