• Is there a way to modify the default font size of the body text of posts in this theme? I see vary font codes in the CSS, but don’t want to go messing around in there without knowing what I’m doing. The font now is small and thin enough that I have some difficulty reading it on a white background, and I’ve still got decent vision.

    Thanks.

    My site is PathsUnwritten.com

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter archaeis

    (@archaeis)

    Or just to change the font in general?

    i have the same question.

    only i was wondering how to change the category font size on my static front page?

    expound is a fabulous theme. i love it!

    https://www.ivykennedy.com

    @archaeis

    Try this:

    div {
        font-size: 102%;
    }

    Adjust the percentage to your liking.

    there’s no div anywhere on expound.css so i doubt that would work.

    i’m using WEN’s Responsive Column Layout Shortcodes

    i entered this in expound.css it didn’t work.

    .entry-content .one_half p{
    font-size:27px;
    }

    @blondieblue227
    First, you should not edit the expound syle.css, it will be erased if the theme is updated. Edits should be made in a child-theme or with a custom css plugin.

    Second, in the output html file you will see <div ; that means the css I posted will effect all of those.

    Paste it into a custom css plugin and see what happens.

    To elaborate on your code @blondieblue227

    That will only effect paragraphs p within the .one_half element, within the .entry-content element.

    What you want to target are the links, so the correct code would be

    .one_half a, .one_half_last a {
        font-size: 27px;
    }

    .one_half would effect the left side and .one_half_last would effect the right.

    I hope this helps clarify things.

    EDIT
    And 27px is probably too big, I would try 18 or 20.

    27 is extreme, but i’ll be able to tell if it’s working. i’ll edit it to a lower number of course.

    i’m not too good at child themes. i tried one with a loop and couldn’t figure out if i had it placed right or if i was calling it right. get_template etc.

    so you make a child folder in the expound folder:

    <?php
    /*
     * Template Name: My Custom Page
     * Description: A Page Template with a darker design.
     */
    
    get_header(); ?>
    
    	<div id="primary" class="content-area">
    		<div id="content" class="site-content" role="main">
    
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php get_template_part( 'loop', 'page' ); ?>
    
    				<?php
    					// If comments are open or we have at least one comment, load up the comment template
    					if ( comments_open() || '0' != get_comments_number() )
    						comments_template();
    				?>
    
    			<?php endwhile; // end of the loop. ?>
    
    		</div><!-- #content -->
    	</div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    here’s the loop code i had in that child folder too. (expound-child/loop.php)

    /*
     Theme Name:   Expound Child
     Theme URI:    https://ivykennedy.com/home2/expound-child/
     Description:  Expound Theme
     Author:       Ivy Kennedy
     Author URI:   https://ivykennedy.com/home2/
     Template:     expound
     Version:      1.0.0
     Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
     Text Domain:  expound-child
    */
    
    @import url(“../expound/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */
    <?php $args = array(
    'posts_per_page' =>4,
    'cat' => 4,
    'order' => 'DESC',
    'orderby' => 'date'
    );
    $loop = new WP_Query( $args );
    if( $loop->have_posts() ) :
    single_cat_title();
    while( $loop->have_posts() ) : $loop->the_post();
    the_title();
    endwhile;
    endif;
    wp_reset_postdata(); ?><?php $args = array(
    'posts_per_page' =>4,
    'cat' => 4,
    'order' => 'DESC',
    'orderby' => 'date'
    );
    $loop = new WP_Query( $args );
    if( $loop->have_posts() ) :
    single_cat_title();
    while( $loop->have_posts() ) : $loop->the_post();
    the_title();
    endwhile;
    endif;
    wp_reset_postdata(); ?>

    never mind the /home2 this is when i was editing my site and i didn’t want people to see.

    EDIT
    The child folder should be in the themes folder not the expound folder.
    What you just posted is the childs style.css file with the loop in it.
    php loops don’t go in the style.css that might be your problem.
    You should have loop.php with just the loop & style.css that starts with the following

    /*
     Theme Name:   Expound Child
     Theme URI:    https://ivykennedy.com/home2/expound-child/
     Description:  Expound Theme
     Author:       Ivy Kennedy
     Author URI:   https://ivykennedy.com/home2/
     Template:     expound
     Version:      1.0.0
     Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
     Text Domain:  expound-child
    */
    
    @import url(“../expound/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */

    then add this to the style.css

    .one_half a, .one_half_last a {
        font-size: 27px;
    }

    image of theme folder

    Thread Starter archaeis

    (@archaeis)

    Is there a way to do all this in the online dashboard (AKA /wp-admin) or do I need the downloadable program?

    Since you use the Jetpack plugin you can go into the Jetpack options and activate the custom css module. You should then have a new area under appearance for adding custom css.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Change Font Size?’ is closed to new replies.