WordPress Tricks

Twenty Twenty Theme: Modifications of Header, Titles, Links, Widget Section and More

Twenty Twenty  now arrived and become the new WordPress default theme. Mainly it is designed with the flexibility of the block editor at its core but you can use Visual Composer or Elementor too. You can use it for your organization or business and also for your traditional blog, the centered content column and considered typography makes it perfect for that as well. Here I am sharing some CSS Modifications which you can use

Download Twenty Twenty Child Theme

Download Twenty Twenty Parent Theme from wordpress.com

twenty twenty theme widget modifications

To change Widget title font size, font color, font family and space below the widget title

.widget .widget-title {
    margin-bottom: 3rem;
    font-size: 2rem !important;
    color: darkred !important;
    font-family: cursive !important;
}

To remove gap between widgets

.footer-widgets .widget {
     margin-top: 2rem !important;
}

To change font size, color and font family of footer widget links and also to remove underline on hover

.footer-widgets a {
    font-size: 15px !important;
    color: blue !important;
    text-decoration: none !important;
    font-family: cursive !important;
}

To change page title font size, color and font family in twenty twenty theme

h1.entry-title {
    font-size: 29px !important;
    color: darkred !important;
    font-family: cursive !important;
}

To reduce or remove gap from top and bottom of the title in twenty twenty theme

.singular .entry-header {
    padding-top: 2rem !important;
    padding-bottom: 4rem !important;
}

To change site title font color, font family, font size and text decoration

.site-title a {
    font-size: 23px !important;
    text-decoration: none;
    color: darkred !important;
    font-family: cursive !important;
}

To change Site Description or Tagline font size, font family , color and to make it bold

.site-description {
    font-size: 23px !important;
    color: darkred !important;
    font-family: cursive !important;
    font-weight: bold !important;
}

To change parent menu items font size, color , font family and font weight

ul.primary-menu.reset-list-style > li > a {
    color: red !important;
    font-size: 15px !important;
    font-family: cursive !important;
    font-weight: bold;
}

To change drop down or child menu black background color to a different one

ul.sub-menu {
    background: red !important;
}
body:not(.overlay-header) .primary-menu > li > ul:after {
    border-bottom-color: red !important;
}

To change dropdown/child menus font size, color and font family

ul.sub-menu a {
    font-size: 16px;
    color: white !IMPORTANT;
    font-family: cursive !important;
    font-weight: bold;
}

To change font size, color and font family of Leave A Reply in twenty twenty theme

.comment-reply-title {
    font-size: 2.6rem !important;
    line-height: 1.2;
    margin-bottom: 6rem;
    color: darkred !important;
    font-family: cursive !IMPORTANT;
}

To change “Post Comment” button font size, background color, Alignment and button size

input#submit {
    font-size: 12px !important;
    color: white !important;
    background: darkred;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

To change font color, size and font family of these Post metas ( author, date, comments etc)

ul.post-meta * {
    font-size: 12px;
    color: black !important;
    font-family: cursive !important;
}

To change Footer Copyright information check the screenshot above, here i showed how to do it by editing the footer.php . I have not used any plugins for this. Use the Child Theme of Twenty Twenty to modify theme files.

To Change Footer copyright text font size, color, font family and font weight

.footer-credits * {
    color: darkred !important;
    font-size: 14px !important;
    font-family: cursive;
    font-weight: bold;
   }

Twenty Twenty Theme with Gutenberg Editor

If you have any issue feel free to ask me question here in comments section
OR
Contact me in Skype: om2000_cuet

64 thoughts on “Twenty Twenty Theme: Modifications of Header, Titles, Links, Widget Section and More”

  1. Thank you so much for this post! I have used several of these to help customize a couple of sites. This is such a great resource! I’m trying to add a top bar (above the nav menu) with a phone number and a book now button sitewide on wordpress twenty twenty. Can you point me in the right direction for help with this? Thanks!

    Like

  2. For a topbar in the twenty twenty theme, what line of code do I need to put in the header.php file. For Beginners this is hard 🙂

    Best from Germany!
    Regards
    Daniel

    Like

  3. Thanks for this tutorial! really good and with useful tips.
    A question: is there a way to change the text in the “Leave a Reply” area? eg instead of “Leave a Reply” change to “What are your thoughts?”

    Like

      1. hi! yes. It’s hosted in a local provider and WordPress.com is installed. I am running the “ˇwenty Twenty” theme

        Like

  4. I am trying to use this CSS to not display the header name in 2020 theme;
    .h1.entry-title {
    display: none;
    }
    Which theme file should it go in? style.css, header.php? If I can get it to work I will put it in a child thesem

    Like

  5. glass500.com
    1. How to limit the cover header height or make it responsive? There is currently too much white space between background image and Entry Title.
    2. How to make the background image responsive? I would like max image width 400px.
    Thanks I’ve found your WP theme customization pages excellent over the years.

    Like

      1. Thanks for the reply. I have a background image that looks like text: “Up to $500 for solving the crime.”
        Here’s a screenshot: ttps://drive.google.com/file/d/10BlX9TCVsj1WoLHypsKKdn1n4cqphPdn/view?usp=sharing
        THank you!

        Like

  6. Namaskaram !

    Can you please help me with changing the width of a paragraph H2 in twenty twenty?
    I need it to be full width like an image.

    Thanks a lot for your post!

    Like

      1. I work on local server, but i allready manage to change it.
        Can please show me how to shrink the header, is in a fix postion and on desktop version is covering a part of my menu(sliding menu, i use the mobile version in all widths)

        Like

      1. site is johnpdriscoll.com I did just remove the menu, but would love the code anyway. Also want to reduce the size of the hero text. Thanks again!

        Like

  7. How do I hide the entire header for a specific landing page? Just looking for the css code. I know the page ID already. Thanks!

    Like

  8. OM,yes, I have been having terrible loading problems with http://www.johnpdriscoll.com. Sometimes it looks like the screenshot you took, sometimes normal and sometimes it won’t load. It is making me so crazy. There must be some conflict somewhere. I am likely going to have to change themes! Any suggestions from you would be appreciated.

    Like

  9. Thank you for this post. I’ve got three issues I would greatly appreciate help with re: Twenty Twenty theme. 1) how can I change the default width of the content block to be wider? 2) how can I change the post tags location on a single post page after changing the size of the post content? and 3) how can I change the size of the video player to the maximum width of the content area?

    Like

  10. Thank you for this great post! I learned to do modifications to Twenty Twenty theme with the examples you gave. I have one question, how to change the desk top expanded menu’s title font size and color in additional CSS? With the expanded menu title I mean the text ‘menu’ which has three dots next to it. I would like this text to be little larger and to have same text color what rest of the menu text items have.

    Like

  11. Hello !

    Thank a lot for your help.
    To reduce or remove gap from top and bottom of the title in twenty twenty theme I use your CSS Modification :
    .singular .entry-header {
    padding-top: 2rem !important;
    padding-bottom: 4rem !important;
    }

    It works perfectly for PC media, but it doesn’t works for tablet and mobile size. Do you have a solution ? I want to reduce the gap particularly for the mobile version of my site where the title take 1/3 of my page… and the gap take the rest !!

    In addition, this CSSworks only in Pages and not in Articles. Is it normal ?

    thank for your help

    Like

    1. Please try these first
      you used some break
      in the post text…check by removing those

      .entry-categories {
      display: none;
      }
      .entry-title, .entry-title a {
      font-size: 1.8rem !important;
      }

      .entry-content, .entry-content p {
      max-width: 71% !important;
      margin-left: auto;
      margin-right: auto;
      }

      Regards
      Om

      Like

  12. this is so awesome – i love this tutorial – your site rocks and is one of the best site of its kind. keep up the awesome and outstanding page – it is so great

    Like

Leave a comment