Closed themechills closed 8 years ago
Hi Leo, you sure can. See this. You may need to make some adjustments to your theme, though, especially if the title output in your theme looks something like this:
the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' );
Cheers, Philip
Thanks Philip, appreciate the suggestion.
That being said, that still wraps a entry-title-primary
span tag as well as the primary title and subtitle being included within the <h1>
element. I was more so wondering if these could be separated in a way like I mentioned above?
This is the current output I'm getting:
<header class="entry-header">
<h1 class="entry-title">
<span class="entry-title-primary"> Sample Page</span>
<p class="entry-subtitle">I am the excerpt</p>
</h1>
</header>
Once again, thanks Philip!
Leo
Can you show me the actual code in your theme that's being used for titles? Thanks.
Sure thing, here it is:
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( sprintf( '<h1 class="entry-title">', '</h1>' )); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'bloom' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
</article><!-- #post-## -->
Thanks. In your case something like turning off automatic Subtitles entirely and then adding them back in manually would make the most sense here.
Thanks. In your case something like turning off automatic Subtitles entirely and then adding them back in manually would make the most sense here.
I'll try that out, thanks Philip!
Hi @philiparthurmoore,
Hope you can help...just wondering, is it possible to change this HTML output from:
..to be like this instead:
Appreciate your help, thanks!
Leo