Adding custom CSS to your WordPress site

Are you interested in transforming the look and feel of your website with the help of custom Cascading Style Sheets (CSS)? The inclusion of custom CSS to your site can completely change its appearance and layout, something you simply can’t do via default options.

Beginners may struggle with adding custom CSS using FTP, but thankfully, there are other ways to do it. This article will cover three alternative ways to add custom CSS to your WordPress site, all without editing your site’s theme files directly.

illustration of css

Reasons to add custom CSS to your WordPress site

CSS is the language you use to add styles to your WordPress site, and it’s what goes together with HTML to let you control your site’s colors, layout, and size. It’s highly recommended that you embrace the enhancements in design that CSS offers, especially considering that most of your website’s visitors have short attention spans that are subject to unending cycles of dopamine.

With custom CSS, you can play around with your site’s appearance, which you can’t achieve by using WordPress’s default options. Custom CSS grants you greater control over your site’s design and appearance, allows you to create web pages that are interactive and responsive, and lets you quickly change your WordPress theme using just a couple of lines of code.

Let’s say, for instance, that you want to edit the background color that each of your posts uses so that you don’t use the same color throughout your site. You can use a custom CSS code to change a specific page or post’s background color without making changes elsewhere on your website.

You can also transform the look and feel of your product pages like has done with their time tracking and productivity tool. The designers have used custom CSS to align content and images in a way that creates a visual hierarchy and directs the attention of their readers where they want it. With that in mind, let’s cover a few ways that you can include custom CSS on your WordPress site.

Method #1: Use a theme customizer

Since the introduction of WordPress 4.7, WordPress site owners can include pieces of custom CSS code on their site using the admin area. Adding custom CSS via the WordPress admin area is straightforward, allowing you to review your changes through a live preview instantly.

To add custom CSS using WordPress’s theme customizer, you’ll need to go to your WordPress dashboard and then access Appearance –> Customize. From there, you’ll be able to access the live preview of your website and the different options available on the left-hand pane. Navigate to this pane and click the ‘Additional CSS’ tab.


You can now start adding custom CSS to your site until you’re happy with your new appearance and layout, after which you can click ‘Publish’ to finalize your changes.

Keep in mind that if you add custom CSS using WordPress’s theme customizer, the custom CSS you’ll have access to will only be available via that specific theme. To use the theme customizer with other themes, you’ll want to copy and paste your custom CSS to another theme by following the method we’ve covered in this section.

Method #2: Use a plugin

While adding custom CSS using a theme customizer only lets you save custom CSS for the currently active theme, using a plugin to add custom CSS lets you apply CSS to your site regardless of the theme you’re working with.

To add custom CSS to your WordPress site with a plugin, you’ll want to install the Simple Custom CSS plugin and activate it once it’s downloaded to your database. After you have activated the plugin, navigate to Appearance –> Custom CSS and paste in your lines of custom CSS code.


Keep in mind that you’ll need to click ‘Update Custom CSS’ once you’re finished saving and publishing the changes that you’ve made. Once you’ve done that, you’ll be able to check out your new WordPress site with its new custom CSS in action.

You can also use other plugins, like:

Method #3: Use a full-site editor (FSE)

The last method we’ll cover is using an FTE (full site editor) to add additional CSS to your WordPress site. FSEs allow you to change the design and layout of your website via the WordPress block editor — the same one you’d use if you were editing one of your site’s pages or blog posts. Remember that you’ll only be able to use the FSE if you’re working with certain themes.

Although it’s a little easier to add custom CSS to your site by using a plugin, you may — for whatever reason — not want to use a plugin to make your changes. If that’s the case, you’ll need to use the Customizer when it isn’t usable via your admin menu.

To do this, you’ll log in to your site’s administrator account. Once you’ve done that, copy and paste the following into your web browser: (remember to get rid of ‘’ and replace it with your site’s domain.

You’ll be taken to a restricted theme customizer, from which you can navigate to the left-hand menu and select the ‘Additional CSS’ tab. Clicking this ‘Additional CSS’ tab lets you input your CSS code in the area called ‘Additional CSS.’ Once you provide your code, you can save your changes by selecting the ‘Publish’ button.

illustration of tools for CSS on WordPress

Changing the CSS in WordPress isn’t that difficult

The methods we’ve outlined above are appropriate for users of all skill levels, but they’re particularly useful for beginners. If you’re confident in your abilities, you can consider adding custom CSS directly to the theme that you’re using for your site. Keep in mind that if you insert snippets of custom CSS code into your parent theme, you won’t be able to save your changes if you mistakenly update your theme before saving the changes you make.

Generally speaking, we recommend using a child theme if you’re at an intermediate or higher skill level. If you’re a beginner, you may want to consider working with a custom CSS plugin that lets you keep your snippets of custom CSS code in a place separate from your theme. This method lets you toggle back and forth between themes quickly and without having to worry that your CSS will be gone once you return.

For your next WordPress website, choose EasyWP managed WordPress hosting. Great prices, a quick setup, and a free trial should put EasyWP at the top of your list.

Source link

Read More
wpadmin September 6, 2022 0 Comments

When the Side Hustle Becomes the Constant

As a concept, freelancing refers to hiring temporary workers, such as copywriters, graphic designers, online tutors, and web developers. But not only in the IT sector. It also includes everyone from pop-up baristas and language tutors to drivers for one of the many travel apps available.

No wonder freelancing has become a primary source of income for many people as they enjoy the independence of the freelance economy.

In 2022, freelancing can mean any kind of work that goes against the traditional 9-5 structures. Covid-19 and the worry of impending recessions, to name a few global anxieties, have contributed to the current freelance climate. As a result, many flexible jobs and side hustle opportunities that seemed implausible even a decade ago have emerged.

Why Freelance Work?

The Bureau of Labor Statistics research showed that the percentage of people quitting their jobs rose from 1.6% in April 2020 to 6.4% in August 2021. The most significant shift is that many people are not moving onto a new payroll company but leaving for freelance independence.

After falling 7% in 2020, mainly due to the pandemic, the overall number of independent workers grew sharply in 2021: up 34%, to 51.1 million from 38.2 million in 2020. The larger group of part-time independents, who regularly work fewer than 15 hours per week, rose 39%, or 9.1 million, from 24.6 million to 34.1 million. The fastest growing segment of Part-Time Independent is so-called occasional independents—people who work regularly but part-time and without set hours. Their numbers rose sharply, from 15.8 million in 2020 to 23.9 million in 2021, up 51%.

With doors open to working in co-spaces, allowing networking and sharing ideas, many people get more creative. Furthermore, young people understand that they may not be able to afford a mortgage, opting for work that frees them to travel and see the world.

And so the pull for freelance makes sense; choosing one’s hours, working spaces, and clients.

Success stories such as running a boutique gym or finding a flair in design have opened doors for many niche ideas to come alive. The latter is possible through people creating their own websites to promote their businesses or hiring a web designer and keeping the freelance economy turning.

It might sound pretty simple, but the necessity of the internet in everyday life is the driving force behind freelance work culture. Remote working impacts this heavily; “In the United States alone, more than 4.7 million people work remotely at least half the time in the United States. 44% of companies do not allow remote work, and 16% of companies hire remote only workers.”

Without guaranteeing a stable and secure job as it was once known, many began to look inward at their knowledge base and how they could apply it.

Why Is the Freelance Economy Flourishing?

The development of technology, in particular, the use of apps to buy and sell goods online as well as connect customers with freelancers worldwide, has enabled more individuals to pursue their passions outside regular working hours.

Covid-19 has blurred the lines at work and helped people be more prone and start doing business online.

In many traditional workplaces, flexible work is available for at least a day or two per week. It is becoming the norm. As a result, companies uncompromising in this are deemed unattractive to prospective employees.

Data Speaks Volumes

The eCommerce industry statistics prove that the industry is booming. Let’s go into more detail:

  1. There are approximately 57 million freelancers in the US.
  2. An estimated 59% of freelancers in the US who responded to the survey are male freelancers.
  3. 86% of freelancers work from home or in coffee shops.
  4. 84% of freelancers say work lets them live the lifestyle they want.
  5. 64% of freelancers said their overall health has improved.
  6. 46% of freelancers choose their job because of the flexibility.
  7. 41% of freelancers find new work through their past clients.
  8. The US had the most demand for freelancers in 2020.
  9. The freelance industry makes up almost 5% of the US GDP.
  10. 53% of all Generation Z workers are freelancers.

Changing Landscapes, Changing Terms

In the past five years, the phrase side hustle rose from 11% to 75%, freelancing from 20% to 82%, and passive income from 28% to 75%. This Google Trends data represents search interest relative to the highest point on the chart for the given region and time.

(A value of 100 is the peak popularity for the term. A value of 50 means that the word is half as popular. A score of 0 means there was not enough data for this term)

Why Freelancing Is The Future

Recessions and global pandemics aside, the future of freelancing feels full of promise. There is constant growth in co-working spaces, with more nuanced professions, such as bespoke PR and creative web design. There is a distrust in the air with employee engagement down with more than 600 US businesses with 50-500 employees; 63.3% of companies say retaining employees is more demanding than hiring them.

News travels fast; in the younger generations, the feeling that there are possibilities lying outside the traditional workplace has spurred the freelance movement forward.

The increase has risen rapidly, and the industry keeps moving faster. In the United States alone, 58 million people regularly perform freelance work, with $1.2 trillion from freelance contributions to the United States economy.

According to McKinsey, 500 million freelancers will be working through platforms to make money online before 2030. Not only is becoming freelance a way to be completely independent with your time, resources, and skills, but these statistics show a healthy marketplace growing each year.

Source link

Read More
wpadmin September 5, 2022 0 Comments

WordPress 6.0.2 Security Update

WordPress has launched another minor release to improve its current version. This WordPress 6.0.2 update introduces 12 core and five block editor bug fixes.

Although not as many improvements as in the previous minor release, WordPress 6.0.2 patches several security vulnerabilities. So, we strongly recommend updating your WordPress website to this version as soon as possible.

WordPress 6.0.2 Security and Bug Fixes

The WordPress 6.0.2 release post notes the following three security patches:

  • SQL injection vulnerability within the Link API.
  • XSS (cross-site scripting) vulnerability on the Plugins admin screens.
  • Output-escaping issue in the the_meta() function.

In addition, a core update upgrades the moment.js Javascript library to avoid a vulnerability in the 2.29.2 version.

Other than the security patches, there are various core software and block editor bug fixes. You can find detailed information on the core bug fixes on the WordPress Trac, while the block editor fixes are available on the GitHub repository.

To make this easier for you, we’ll go through the repository and test WordPress 6.0.2 to highlight the significant fixes on this version.

Fixed Sticky Post on the Query Loop Block

A bug caused the query loop block not to display sticky posts properly. This occurs when the query loop inherits the query from the template.

For instance, when you have a sticky post and enable the inherit query settings for the query loop block, the sticky post won’t appear at the top of the query loop. The sticky posts settings in the block settings also won’t work correctly.

Block editor interface in 6.0.1 with the inherit query setting enabled, showing the sticky post note at the top of the query.

The WordPress 6.0.2 update has fixed the issue. When you enable the inherit query setting, it removes the sticky posts setting. Also, the sticky post will be displayed correctly at the top of the query.

Block editor interface in WordPress 6.0.2 with the inherit query setting enabled, showing the sticky post at the top of the query

Fixed Button Labels With Long Text

WordPress allows you to add block styles via each block’s PHP file. However, it won’t truncate a long button label when using certain languages, like Chinese, Japanese, and Korean, causing it to overflow the button space.

Block styles options in WordPress 6.0.1, showing the Japanese and Characters overflowing the button space.

The developers have updated the style sheet, and now the style button will show an ellipsis whenever the label is too long for the space.

Block styles options in WordPress 6.0.2, showing correctly truncated button labels.

Allow Remote Pattern Registration When Core Patterns Are Disabled

WordPress 6.0 introduces a feature to register remote patterns from its pattern directory using the theme.json file. It also received a bug fix in the WordPress 6.0.1 update to ensure it synchronizes perfectly with the WordPress pattern directory.

However, it still requires the core patterns to be enabled. This is contrary to what many theme authors and developers want, as they prefer to disable core patterns and use only relevant ones for their themes.

The developers have tweaked the pattern registration function so that theme authors can disable the core patterns while still registering remote patterns from the directory using the theme.json file.

While this is not a bug fix, this enhancement will improve the usability of the pattern directory, especially for theme authors.

Updating Your WordPress Version

Since WordPress 6.0.2 contains security vulnerability patches, we highly recommend updating your WordPress version as soon as possible.

You’ll see a banner on top of your WordPress admin dashboard if you’re not running the latest WordPress version. Click on Please update now, which will take you to the WordPress update page.

WordPress admin panel with the highlighted update notice banner at the top of the screen.

Alternatively, you can update your WordPress site from hPanel’s WordPress dashboard. You’ll find the WordPress version section on the bottom-right section, and the update button will be available if you’re not running the latest WordPress version.

WordPress dashboard on hPanel showing the highlighted WordPress version section at the bottom right of the screen.

We also recommend enabling automatic updates for minor releases during installation using hPanel’s auto-installer.

Source link

Read More
wpadmin September 2, 2022 0 Comments