Change Post title default size, and featured image spacing

Hello. I would like to be able to change the default Heading used for a blog post. It seems to be using H1 right now and I’d like it to be any other one but that, H2, H3, H4, etc. I don’t want to change the size of H1 as that is that size for another part of the website.

Secondly because of the overly large title of a post it then puts certain text down and under the featured image underneath. Is there a way to create more spacing between the post title and the featured image.
Would also like more spacing on the ‘blog’ roll page.
Thank you,
here’s a link to take a look

Hi Lindsay,

Thank you for writing in, to adjust the font-size of the posts title, please add this to Theme Options > CSS

.single .entry-title {
	font-size: 200%;
}

Feel free to adjust the 200% where you see it fits.

To give room between title and featured image, please add this to Theme Options > CSS as well.

.blog .entry-featured,
.single .entry-featured {
	    margin-top: 2em;
}

You can find the proper CSS code selector using the Chrome browser Developer Toolbar
For the CSS code itself, I suggest that you get started with this tutorial

Hope it helps,
Cheers!

Thank you I shall give that a try soon. Is there a way to make each posts title be a different Heading altogether as opposed to changing the font size? For the current heading font it is using (H1), I went in and changed all the spacing relationships between the letters of H1, I don’t want that on each post, which I’m assuming will stay but be shrunk if I only change the font size, correct?

Hi There,

All the post content comes in a single template, that is not possible to change the heading for every post. That needs custom development work, which is out of our theme support scope.

I don’t want that on each post, which I’m assuming will stay but be shrunk if I only change the font size, correct?

I am not pretty sure about this question, can you please clarify a bit so that we can help you.

Thanks

I shall attempt to clarify.
H1 I have altered and use it solely on the home page to create one specific heading.
It would seem that the default heading choice for ALL posts is H1. I want to change it to anything else for EVERY post that exists now and in the future, not individual posts (that is way too much work and sounds crazy I agree).
So what would I do,for example, to change the default posts headline font to H2?
Thanks again

Hi,

To achieve that, create file _content-post-header.php in x-child/framework/views/icon/
Then add the code below into that file.

<?php
// =============================================================================
// VIEWS/ICON/_CONTENT-POST-HEADER.PHP
// -----------------------------------------------------------------------------
// Standard <header> output for various posts.
// =============================================================================
?>

<header class="entry-header">
  <?php if ( is_single() ) : ?>
    <h2 class="entry-title"><?php the_title(); ?></h2>
  <?php else : ?>
    <h2 class="entry-title">
      <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a>
    </h2>
  <?php endif; ?>
  <?php x_icon_entry_meta(); ?>
  <?php if ( get_post_format() == 'quote' ) : ?>
    <p class="entry-title-sub"><?php echo get_post_meta( get_the_ID(), '_x_quote_quote', true ); ?></p>
  <?php endif; ?>
</header>

Hope that helps

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.