Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author Joe Dolson

    (@joedolson)

    Huh. How interesting! I’m preparing an update to Universal right now, so I’ll take care of this in the upcoming release.

    The problem is that the class ‘post-content’ isn’t wrapping page content, so those pages aren’t getting the font-size adjustment that the main pages are getting.

    Thread Starter themort

    (@themort)

    Hi

    Any idea when this will be put right? I have just done an update and it still has different text sizes

    sorry to nag
    JC

    Theme Author Joe Dolson

    (@joedolson)

    Update timing is kind of unpredictable, since everything has to go through a theme review process for every update. I’ll check on that.

    Thread Starter themort

    (@themort)

    Is there something that I can edit in the theme myself to put this right, the site looks odd as it is but it is the only problem so I don’t want to go looking for a different template.

    I don’t have the knowhow to put it right myself but I can easily edit code with directions.

    Thanks
    JC

    Theme Author Joe Dolson

    (@joedolson)

    It’s a missing class in the page template; the class ‘post-content’ should be passed into the function <?php post_class(); ?>, and it’s missing in a couple places.

    Since you’re mostly using the full width template, you’d only have to look at that one file. If you’re using other templates elsewhere, you’d need to look at those. They’ll each contain an instance of the function post_class, and should be changed to

    post_class( 'post-content' )

    Thread Starter themort

    (@themort)

    That does the job – Thanks 🙂

    The News page now has larger text than anywhere else, it might have always done – I not sure. Is there an easy fix for that too?

    JC

    Theme Author Joe Dolson

    (@joedolson)

    Did you add the class to that template? It could be that’s a page that didn’t need it; it should have only been the special Page templates that required it.

    Thread Starter themort

    (@themort)

    I altered the full-width, checked through the site and noticed the post page seemed larger so I added it to single.php but it didn’t make any difference so I took it back out. This is my single.php file now

    <?php get_header(); ?>

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div <?php post_class(); ?>>
    <?php
    $format = get_post_format();
    if ( $format === false ) {
    $format = ‘format’;
    }
    get_template_part( ‘format’, $format );
    ?>
    <div class=”comments”>
    <?php
    $args = array(
    ‘before’=>'<p class=”paginated”>’,
    ‘next_or_number’ => ‘next’,
    ‘nextpagelink’ => ‘Next Page<span class=”dashicon nextpage” aria-hidden=”true”></span>’,
    ‘previouspagelink’ => ‘<span class=”dashicon prevpage” aria-hidden=”true”></span>Previous Page’
    );
    wp_link_pages( $args );
    ?>
    <?php comments_popup_link( __( ‘Comments (0)’, ‘universal’ ), __( ‘Comments (1)’, ‘universal’ ), __( ‘Comments (%)’, ‘universal’ ) ); ?>

    </div>
    </div>
    <?php endwhile; ?>

    <?php comments_template(); ?>

    <?php else :

    get_template_part( ‘no-posts’ );

    endif; ?>

    <div class=”prev_next”>
    <?php posts_nav_link( ‘ <span aria-hidden=”true”>•</span> ‘, sprintf( __( ‘%s Previous Post’,’universal’ ), ‘<span aria-hidden=”true”>←</span>’ ), sprintf( __( ‘Next Post %s’,’universal’ ), ‘<span aria-hidden=”true”>→</span>’ ) ); ?>
    </div>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thanks
    JC

    Theme Author Joe Dolson

    (@joedolson)

    Are you saying that you’ve already tried

    <div <?php post_class( 'post-content' ); ?>>

    I’m not quite sure from your post.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Text size’ is closed to new replies.