GeoDirectory Documentation (DO NOT REMOVE)

Customizing your style

This article explains how you can create new CSS rules to change the style of your site.

Most browsers have a built-in code inspector, for example FireFox has Firebug, Internet Explorer and Chrome have Developer Tools.

For the example below, we will use Chrome’s Developer Tools to change the footer background color on the GeoDirectory Demo.

  1. Open the Chrome browser to the web page where we want to change the style of an element.
  2. Right click on the footer area element we want to change [Step 1 in the image below – we are right clicking on the footer].
  3. From the pop-up menu, choose Inspect element. If the code inspector is not open yet, it will open.
  4. If the element is not highlighted yet, we click on it to make sure it is [Step 2 and 3 – highlight the footer style].
  5. We can continue to select ‘Inspect’ until the element we want is highlighted in the code[Step 4 – in this case it shows that the footer class has a background color specified].
  6. The code inspector will also show you in which file you can find the code [Step 5].
    Turn off GD Booster before checking your CSS.
  7. The CSS code is displayed, and we click on the rule to change the background color; double click starts the editing. In this case we will change the background color to red [Step 6 in the second image].
  8. If the CSS code is correct, the web page will adjust to show your change [The footer is now red].
  9. Use the mouse to highlight the CSS code and copy it to your clipboard; proceed to add it to your site. You can add custom CSS to GeoDirectory at GeoDirectory > Design > Scripts > CSS Custom Code, or use anotherplugin or even add that code to the stylesheet of your child theme at WP Admin > Appearance > Editor and locate style.css in your child theme.
  10. Add the code .footer {background-color:red;}, and save. That will update your site.

Hints

How to add CSS, PHP, and Javascript Snippets to your site

Useful resources

Using child themes http://codex.wordpress.org/Child_Themes
CSS tutorial http://www.w3schools.com/css/
Using FireFox Page Inspector https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector
Using Chrome Dev Tools https://developer.chrome.com/devtools/docs/elements-styles
Using Internet Explorer F12 developer tools http://msdn.microsoft.com/library/ie/bg182326
SiteOrigin CSS Plugin https://wordpress.org/plugins/so-css/