(→Add Custom Code) |
(→Add Custom Code) |
||
| Line 53: | Line 53: | ||
In addition to being able to add Custom CSS in the Custom CSS Panel, javascripts can be added to both the header and the footer.There is also a section to add Google asynchronous analytics code script. | In addition to being able to add Custom CSS in the Custom CSS Panel, javascripts can be added to both the header and the footer.There is also a section to add Google asynchronous analytics code script. | ||
# To add script, simply paste the desired script into the header or footer sections of the Custom CSS Section. | # To add script, simply paste the desired script into the header or footer sections of the Custom CSS Section. | ||
| − | # To add [[Glossary#Google Analytics]], simply copy the Google script from your Google Analytics account into the Google section of the panel. | + | # To add [[Glossary#Google Analytics|Google Analytics]], simply copy the Google script from your Google Analytics account into the Google section of the panel. |
# Next, click the "Save Options" button in the upper right hand corner. | # Next, click the "Save Options" button in the upper right hand corner. | ||
One of the most dynamic features of Pagelines is the ability to modify or add Custom CSS to your site.
HTML was never intended to contain tags for formatting a document.
HTML was intended to define the content of a document, like:
This is a paragraph.
When tags like , and color attributes were added to the HTML 3.2 specification, it started a nightmare for web developers. Development of large web sites, where fonts and color information were added to every single page, became a long and expensive process.
To solve this problem, the World Wide Web Consortium (W3C) created CSS.
In HTML 4.0, all formatting could be removed from the HTML document, and stored in a separate CSS file.
All browsers support CSS today.
When a webpage loads there is an order (hierarchy) by which the CSS of a page is loaded.
It is important to keep this hierarchy in mind because the CSS that loads last will take priority over any CSS loaded before it.
The below example shows how to add or modify a site's CSS. Follow similar steps for all Custom CSS. From your WordPress Administration Panel:
#navigation_rss {position: absolute;
left: 720px;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-transform: uppercase;
color: #897567;
line-height: 2.5em;}
In addition to being able to add Custom CSS in the Custom CSS Panel, javascripts can be added to both the header and the footer.There is also a section to add Google asynchronous analytics code script.
The "Custom CSS" section is a simple quick way to add custom styles to your current site design.
The PageLines Customize plugin is a more comprehensive way to customize your theme. It is a way to create child themes for your site through the plugin to add CSS but also functions, hooks and anything you want to customize your site.
Once the PageLines Customize plugin has been installed and activated, you can use the Child Editor plugin to modify the "style.css" From your WordPress Administration Panel:
From your WordPress Administration Panel:
There are a couple of FREE CSS Inspection Tools which can be used to do this. They are Firebug and Google's Chrome Inspection tool.
From Mozilla Firefox:
From Mozilla Firefox:
From Google Chrome: (The CSS Inspection Tool is built into Chrome)