Perfecting WordPress Text Content Formatting

1 year ago

2 min read

Posted by:

Focus

Subscribe to newsletter

By subscribing you agree to with our Privacy Policy.

Share

If you want to have slightly better but very satisfying content formatting for those who understand content formatting, use the code below and paste it to your text widget CSS on the ‘Blog Post’ template.


selector h1 {
  font-size: 30px;
}

@media only screen and (max-width: 480px) {
  selector h1 {
    font-size: 25px;
  }
}



selector h2, selector h3 {
    font-size: 25px;
}

selector h2 {
    padding-top: 40px;
    padding-bottom: 10px;
    font-weight: bold;
}

@media (max-width: 767px) {
    selector h2, selector h3 {
        font-size: 20px;
    }
}


selector figcaption {
  font-size: 14px;
  font-style: normal;
}


selector .wp-block-image img{
    padding-bottom: 15px;
    padding-top: 15px;
}

And you’ll get this (before):

To this (after):



Here’s another before & after:



After:

Read more

Troubleshoot

< 1 min read

How to Fix Critical Error when Adding a New Site on WordPress Multisite

If you have ‘Delete Duplicate Posts’ plugin, deadactivate it, and then see if that fixes the problem. Otherwise, try to

Read more

Text Widget

< 1 min read

Add Punctuation (…) at the End of Headings

Add this code to add three dots (…) at the end of your ‘Headings’. Replace the three dots between the

Read more

Global

< 1 min read

Additional CSS on WordPress Customization

To improve your site a bit, add this basic CSS to each one you create. Customizing the scroll bar, the

Read more

Global

2 min read

Disabling the Device’s Default ‘Dark Mode’ in WordPress

If you are trying to convert your WordPress website to APK / AAB, you may need to disable the device’s

Read more

See How It Works

Create better websites, faster.

Download the Entire Library

Adaptative, neutrally designed components.

Customer Service

Focus Website

Today, December 21

Hi, there 👋

How can I help you?

Start Chat with:

We use cookie to improve your experience on our site. By using our site you consent cookies.