WordPress.org

Forums

Radiate
[resolved] Front Page Featured Section (4 posts)

  1. digiprom
    Member
    Posted 1 year ago #

    Hi there

    We have to pro version of this theme.

    Is there anyway of adding an external link to the featured homepage section?

    featured image + title go to an external site?

    heres the site

    http://www.stokevets.co.nz

    thanks in advance

  2. digiprom
    Member
    Posted 1 year ago #

    Found a fix

    Cheers

  3. rob4236
    Member
    Posted 7 months ago #

    Could you share your fix please? I have same query

  4. digiprom
    Member
    Posted 7 months ago #

    @rob4236

    Hi there,

    We created a custom field for the featured image... Added this to front-page.php

    <div class="page_text_container">
    					<?php if( get_field('url_for_featured_image') ): ?>
    				<a href="<?php the_field('url_for_featured_image'); ?>"><?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?></a><?php endif; ?>
    					<h1 class="entry-title"><a title="<?php the_title_attribute(); ?>" href="<?php the_field('url_for_featured_image'); ?>"><?php the_title(); ?></a></h1>
    					<?php the_excerpt(); ?><a class="more-link" title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>"><?php _e( 'Read more','radiate' ); ?></a>
    				</div>

    Hope this helps

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic