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

Container

< 1 min read

Make Container Scrollable

Add this on the column’s custom CSS panel. Adjust the ‘max-height’ to your needs.

Read more

Header

< 1 min read

Header Padding: Conditional HTML

If you want to have conditional padding for your header, give your header the CSS class .mainheader and add an

Read more

Breakpoints

< 1 min read

Disable Zoom on Mobile Devices (native App Style)

Go to Dashboard > Elementor > Custom Code > Add New Code. This code will disable the abilty to zoom

Read more

PHP

< 1 min read

Maximize PHP Settings Manually on Plesk

Go to ‘File Manager’, edit .htaccess, and add this code after # END WordPress

Read more

See How It Works

Create better websites, faster.

Download the Entire Library

Adaptative, neutrally designed components.

Customer Service

Focus Website

Today, October 15

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.