WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. anthonymobile
    Member
    Posted 9 months 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

    thanks

  2. Siobhan Bamber (siobhyb)
    Forum Mod.
    Posted 9 months ago #

    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
    Member
    Posted 9 months ago #

    smashing. thanks.

  4. Siobhan Bamber (siobhyb)
    Forum Mod.
    Posted 9 months ago #

    You're welcome. :)

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.