[Resolved] Edit Rumor Template

Home Forums Support Edit Rumor Template

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1448146
    Ray

    Hi,

    I’m using the rumor template on my site, but I can’t figure out how to edit this section below the featured images – here is a screenshot https://snipboard.io/kfxaip.jpg – and my site URL is householdair.com

    Let me know if you can help

    #1448352
    David
    Staff
    Customer Support

    Hi there,

    go to Appearance > Elements there you will find a Header Element named Home Hero.
    Edit that to change the text within. It looks like this:

    [wp_show_posts name="Home Hero"]
    <div class="home-hero-description">
    	<h2>Rumour</h2>
    	<p class="narrow-container">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ornare quam viverra orci sagittis. Sodales ut eu sem integer vitae. In hac habitasse platea dictumst quisque.</p>
    </div>

    Don’t remove the [wp_show_posts name="Home Hero"] shortcode as this is displaying your 2 posts.

    More info on header elements:

    https://docs.generatepress.com/article/header-element-overview/

    If you want to change the 2 posts being displayed edit the Home heros list in WP Show Posts.

    #1451103
    Ray

    Thanks, I was able to edit it

    What about dates – I don’t want them to appear in both single and archive posts…but they still appear even if I change from theme layout.

    #1451189
    Leo
    Staff
    Customer Support

    Go to Appearance > Elements and edit the Entry Meta element and replace the whole code with this:

    <?php
    printf( ' <span class="byline">%1$s</span>',
    	sprintf( '<span class="author vcard" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="author">%4$s<a href="%1$s" title="%2$s" rel="author"><span class="author-name" itemprop="name">%3$s</span></a></span>',
    		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    		esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ), get_the_author() ) ),
    		esc_html( get_the_author() ),
    		get_avatar( get_the_author_meta( 'ID' ) )
    	)
    );
    
    if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
    	echo '<span class="comments-link">';
    		comments_popup_link( __( 'Comments', 'generatepress' ), __( '1 Comment', 'generatepress' ), __( '% Comments', 'generatepress' ) );
    	echo '</span>';
    }
    ?>
    #1451804
    Ray

    Thanks Leo

    #1452513
    Leo
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.