[resolved] supress page title / reduce nav text size? (4 posts)

  1. anthonymobile
    Posted 2 years ago #

    hi, not a CSS whiz here - but want to do two things to get more of my content up on the first screenful

    a. surpress page title display
    b. reduce size of nav menu text


  2. Hey. Before making any change's to a theme's template files, you must first create a child theme. Information about child themes and instructions on how to create one can be found here: codex.wordpress.org/Child_Themes.

    a. surpress page title display

    Once you've created your child theme, upload a content-page.php file to it. Copy and paste the code from your parent theme's content-page.php into your child theme's.

    Finally, in your child theme's content-page.php file, find and delete the following code in the file:

    <header class="entry-header">
    		<h1 class="entry-title"><?php the_title(); ?></h1>
    	</header><!-- .entry-header -->

    b. reduce size of nav menu text

    In your child theme's style.css file, add the following snippet:

    .main-navigation a {
    font-size: 0.8em;

    Change the value of font-size as you wish. Note, this need only be by increments of 0.1 for you to see a difference, e.g. 0.9em, 1em, 1.1em etc.

    Let me know if these give you the result you were looking for or if I've missed anything out.

  3. anthonymobile
    Posted 2 years ago #

    smashing. thanks.

  4. You're welcome. :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.