• Resolved anthonymobile

    (@anthonymobile)


    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

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter anthonymobile

    (@anthonymobile)

    smashing. thanks.

    You’re welcome. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘supress page title / reduce nav text size?’ is closed to new replies.