(→Add Custom Code) |
(→Add Custom Code) |
||
| Line 35: | Line 35: | ||
# For example, to change the margin at the top of your page: You would add, body {padding-top: 15px;} | # For example, to change the margin at the top of your page: You would add, body {padding-top: 15px;} | ||
# Next, click the "Save Options" button in the upper right hand corner | # Next, click the "Save Options" button in the upper right hand corner | ||
| − | # The Custom Code is dynamic which means that it will over-write the default Pagelines CSS settings. | + | # The Custom Code is dynamic which means that it will over-write the default Pagelines CSS settings. [[File:Custom-css2.png|200px|thumb|right|alt=Custom Code|Custom Code]] |
# Remember: Proper CSS code format must be used in Custom CSS: | # Remember: Proper CSS code format must be used in Custom CSS: | ||
#navigation_rss {position: absolute; | #navigation_rss {position: absolute; | ||
| Line 43: | Line 43: | ||
color: #897567; | color: #897567; | ||
line-height: 2.5em;} | 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. | 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. | ||
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.
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.
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)
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 "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 "styles.css" From your WordPress Administration Panel: From your WordPress Administration Panel:
From your WordPress Administration Panel: