Perfecting WordPress Text Content Formatting

12 months 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

Image

< 1 min read

Crop Image To Ratio

To crop image based on ratio, on Elementor’s Image Widget add this CSS: 16:9 Landscape CSS 9:16 Portrait CSS

Read more

Video

3 min read

YotuWP Plugin: Custom CSS

Go to Dashboard > Appearance > Customize and add this custom CSS. LIGHT MODE CSS DARK MODE CSS

Read more

Breakpoints

< 1 min read

CSS Media Rule Based on Screen Sizes

This is very helpful for limiting custom CSS to certain breakpoints. Usage examples are Scrollbar, Offset Slides and Offset Carousel

Read more

Media Carousel

< 1 min read

Media Carousel Random Order

Add this code in HTML widget to randomize the ‘Media Carousel’ order.

Read more

See How It Works

Create better websites, faster.

Download the Entire Library

Adaptative, neutrally designed components.

Customer Service

Focus Website

Today, October 22

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.