Subtitle
-
Hi, thanks for creating and maintaining this awesome theme.
I’m wondering about the post subtitle, which you mention briefly here. I was looking into modifying it so that it would be added to the post cover if you have that option turned on.
Then, when I opened the template-tags.php file (where the post cover code is), I realized that there’s already something that looks like it trying to call the subtitle, right under the post title.
<h1 class="entry-title p-name" itemprop="name"> <?php echo get_the_title(); ?> </h1> <?php $subtitle = get_post_meta( get_the_id(), 'independent_publisher_post_cover_subtitle', true ); ?> <?php if ( $subtitle ): ?> <h2 class="entry-subtitle"> <?php echo $subtitle; ?> </h2> <?php endif; ?>
However, if I add a subtitle in the way you describe, to a page with a post cover, it still just shows up as an h2 at the top of the post content. Any thoughts? Is this supposed to work, but I’m doing something wrong?
Thanks,
James
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Subtitle’ is closed to new replies.