There are lots of powerful things you can do with the WordPress editor
If you’ve gotten pretty comfortable with all the basics of writing in WordPress, then you may enjoy some more advanced tips about the types of things you can do!
As with the last post about the editor, you’ll want to be actually editing this post as you read it so that you can see all the cool stuff we’re using.
As well as bold and italics, you can also use some other special formatting in the editor when the need arises, for example:
Code elements can be created in the editor by switching the text style to Preformatted. Code is formatted by wrapping any word or words in pre tags, <pre>like this</pre>
. Larger snippets of code can be displayed across multiple lines like this:
.my-link {
text-decoration: underline;
}
One neat trick which you can use in WordPress to distinguish between different types of images is to add a class value to the image itself from the Advanced Settings tab, and then target images containing the class with special styling. For example:
which is styled with…
img.full-width {
max-width: 100vw;
}
This creates full-bleed images in the Corporate Pro theme, which stretch beyond their usual boundaries right up to the edge of the window. Every theme handles these types of things slightly differently, but it’s a great trick to play with if you want to have a variety of image sizes and styles.
Perhaps the best parts of the WordPress editor is that you’re never limited to just WYSIWYG. You can write HTML directly in the WordPress editor and it will just work as HTML usually does. No limits! Here’s a standard YouTube embed code as an example:
Drilling fluids play a prominent role in the extraction of oil and gas. To ensure…
Drilling muds are oil- or water-based suspensions that are used in drilling oil and natural…
Oil and gas companies are recognizing that is profitable to seek sustainability through proactive solutions…
In the wake of strict waste disposal regulations and increasingly stiff competition in the energy…
If you’re not tracking the right metrics, you’re leaving money on the table! -…
The oil and gas industry is currently facing a dilemma over the concerns raised on…
View Comments