- This topic has 1 reply, 2 voices, and was last updated 7 years, 8 months ago by Mahesh.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
August 11, 2016 at 8:25 am #97030Paul TParticipant
On a page, the title is displayed below the featured image. Some users suggest I move title above featured image so they know they are on the right page. Can I do that?
My site is franciscanfriars.org. Pages “Conventual Charism” or “Vietnam Mission” are examples of pages where title is currently below the page featured image. Thanks.August 11, 2016 at 12:01 pm #97041MaheshKeymaster@friarpaul:
Hi Paul,For this, you’ll need to create a child theme. You can find more details on creating child theme HERE. Then in your child theme create
content-page.php
file and add the following codes:<?php /** * The template used for displaying page content in page.php * * @package Catch Themes * @subpackage Catch Base Pro * @since Catch Base 1.0 */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-container"> <header class="entry-header"> <h1 class="entry-title"><?php the_title(); ?></h1> </header><!-- .entry-header --> <?php /** * catchbase_before_page_container hook * * @hooked catchbase_single_content_image - 10 */ do_action( 'catchbase_before_page_container' ); ?> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="pages">' . __( 'Pages:', 'catch-base-pro' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', ) ); ?> </div><!-- .entry-content --> <?php edit_post_link( __( 'Edit', 'catch-base-pro' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer>' ); ?> </div><!-- .entry-container --> </article><!-- #post-## -->
Regards,
Mahesh -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- The topic ‘Move page title above featured image’ is closed to new replies.