SiteOrigin CSS – Plugin
What is CSS
CSS, which stands for Cascading Style Sheets, is a way for elements of your page to be displayed. In WordPress when you add a theme, the creator of the theme includes a Style sheet named style.css that controls the aspects of your website. This includes things like font color, spacing, layout and much, much more. If we have a theme that we generally like, but want to make small tweaks there are programs that will help us do just that. Today we are going to cover the SiteOrigin CSS plugin and how we can use it to increase the wow factor of your website.
Installation of SiteOrigin CSS
To install the “SiteOrigin CSS” plugin, first make sure you are signed into your WordPress Admin account. On the left sidebar locate plugins and then select “Add New”. Search for “SiteOrigin CSS”. For more information on installing plugins check out How to install WordPress Plugins. The plugin should look like the example below.
Navigating SiteOrigin CSS
Now that the plugin is installed we can access it from the admin sidebar. It is located in Appearance > Customize CSS. After opening the plugin you will see a window like the example below.
On this page we have 2 sections. The white area is where your saved CSS code is placed. If you are a CSS champ you can enter those changes here, but we’re going to walk you through the steps if you don’t have an understanding of CSS and show you just how easy it is. Now on the top right you will see 2 buttons. The “Visual” and “Expanded” editor. For now click on the eye button which will take us to the Visual editor.
Visual Editor
The “Visual Editor” is divided up into 3 main sections that we will cover in detail below. On the “Left Column” we have the declaration controls. On the “Right Column” we have 2 sections. On the top half we have a visual inspector that will display your website and on the bottom half we have code inspector. By default your homepage will load when you enter the visual editor, but there is an address bar that we can navigate to a different page on your website.
Making CSS Adjustments
Next we are going to select an individual item to make adjustments. In the Visual Editor select just about anything, but for our example we are going to change the color of our title to purple.
- First when we opened up the visual editor we landed on our home page. We need to navigate to one of our posts, then copy and paste the URL in the box so we can navigate to this page. When finished press enter.
- We are going to click on the words “Example Page”
- When we do, it will generate a list of elements that were selected. There may be more than one. Don’t worry if you select the wrong one and the results are not what you are expecting. It is easy to correct a mistake, as we will go over below.
- For our list we are going to select the element “h1.hero-title”.
- Note : If you want to dive in a little further when making your selection, most web-browsers will allow you to inspect the elements of a website. To do this open up a new tab or browser, navigate to your page and right-click in the body. From the pop up menu you should see something like “View Page Source”, click it. Scroll through the page source until you locate the area you are trying to change. When you find it you should have a hint of what element to select. Again if you select the wrong one you can remove your change easily.
- Now if we look on the left toolbar we will notice that what we selected is also displayed. We are now ready to edit the element.
- Next select the text tab, below it you will see the text color. Click the box to the right to change the text color, and because this is a visual editor, you will see the results on the right window.
- If you are pleased with the changes you’ve made, click the check box above the “Layout” tab. Then you will be brought back to the text editor.
- Awesome! You now should see your CSS code displayed. Our final step is to click the “Save CSS”.
- Note: This change does impact all pages that references this CSS element. Next we will show you how to undo your changes and make a CSS edit on a single page.
Undo a CSS Edit
To undo an edit, we first need to make sure we are on the “Basic Editor”. Your CSS code should be displayed, as pictured above. Delete the lines of code that were added and click the “Save CSS” button.
CSS Edit on a Single Page
If we need to make a CSS edit page specific, then we first need to find the Post ID. For step by step instructions on how to find the Post ID check out How to Locate the Page or Post ID. Once we have located the Post ID, we need to add “.postid-(postid#)” in front of the CSS Edit. This will tell the CSS to only make this adjustment on that particular page. Make sure to click the “Save CSS” button to save your edit.
Other Options in the CSS Visual Editor
As shown above, we’ve walked through changing the text color of our post title. There are many other options that we can change with WordOrigins CSS. These are listed below.
Text Tab
- Text Color – As shown above, this will allow us to change the text color.
- Font Size – Adjusts the size of your font.
- Line Height – Adjusts how high the line will appear.
- Font Width – Thickness of the font, can be adjusted by percentage or set to bold.
- Font Style – Changes the font style like italicize.
- Text Decoration – Allows adjustments like underline or strike-through.
- Font Variant – Allows Small Caps.
- Text Transform – Set the text to all caps or all lower case.
- Font Family – Change to a different font (premium upgrade).
- Text Align – Align text Left, Right or Center.
- Text Indent – Adds indentation on the text.
- Letter Spacing – Adds spacing between each letter.
- Word Spacing – Adds extra spacing between words.
- White Space – Controls how the white space around your text is handled.
- Text Shadow – This box adds a text shadow that you manually input using the [(Font Spacing X) (Font Spacing Y) (Font Color Code)]. For example, if you wanted to add a black shadow, our input is (-3px 3px #000000).
Decoration
- Background Color – Changes the background color of an element.
- Background Image – Add a background image in the element that you can choose from your Media Library.
- Background Position – Adjusts the position of the background added.
- Background Repeat – Repeats the background image if needed.
- Background Size – Change the background size.
- Box Shadow – Adds a box shadow. This also has to be manually imputed the same as the “Text Shadow” above. If you wanted to add a black shadow for your box you would input (-3px 3px #000000).
- Opacity – Sets the opacity of the element from 0 to 1 where 0 = 0% and 1 = 100%.
- Borders – Allows you to set a border around the element, then you can style it with thickness and color.
Layout
- Margin – Set a margin for the element top,bottom, left, right or all. Then set the pixel thickness of this margin.
- Padding – Set the padding of the contents within the element.
- Position – Set the position that is used for an element.
- Absolute Position – Sets the position next to its nearest relative.
- Width – Set how wide an element can be.
- Height – Set a fixed height of an element.
- Display – Specifies the display behavior of an element. Check out Hide Image using CSS for more information.
- Float – Allows you to float the element left or right.
- Clear – Clears a floating element.
- Visibility – Will allow you to hide or collapse and element when using a table.
- Overflow – Controls what to do with the overflow of an element that won’t fit into the area.
- Overflow X – Allows you to clip or add a scroll bar for the overflow left and right.
- Overflow Y – Allows you to clip or add a scroll bar for the overflow top and bottom.
- Z-Index – Changes the stack order of positioned elements.
We would love to hear from you. Drop us a comment below and let us know if this was helpful or let us know what you would like to see featured at SundayWP.com
I wish to read even more things about it! Hi, I do believe this is
a great web site. I stumbled upon it. I will revisit yet again since i have bookmarked it. I really like what you guys are up too.
This type of clever work and exposure! Keep up the fantastic works guys I’ve included you guys
to my personal blogroll.
Excellent pieces. Keep posting such kind of info on your
page. Im really impressed by your site.
Hello there, You’ve performed an excellent job.
I will definitely digg it and personally suggest to my friends.
I’m confident they will be benefited from this website.
I have recently started a blog, the information you provide on this site
has helped me tremendously. Thank you for all of your time & work.
This is my first time pay a quick visit at here and i am really impressed
to read everthing at one place.
If you wish for to take a great deal from this article then you have to apply such
methods to your own website.
Saved as a favorite, I love your site!
Wow! Thank you! I continuously needed to write on my blog something like that.
Can I include a part of your post to my website?
That іs а really good tip especially to those new to thе blоgosphere.
Brief but very ρrecise informatіon Appreciate your ѕһaring this one.
A must read article!
It’s in
Appearance
>Custom CSS
Woah! I’m really enjoying the template/theme of this site.
It’s simple, yet effective. A lot of times it’s hard to get
that “perfect balance” between usability and visual appeal.
I must say you’ve done a very good job with this. In addition, the blog loads very fast for me on Safari.
Superb Blog!