How to Use the Custom Code Settings

[edit] Please Note

These docs are now deprecated, we have a new Support area located here

(Difference between revisions)
(Other Features of the Custom Code Section200px|thumb|right|alt=Custom Code Panel|Custom Code Panel)
(Other Features of the Custom Code Panel200px|thumb|right|alt=Custom Code|Custom Code)
Line 20: Line 20:
 
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.
# Next, click the "Save Options" button in the upper right hand corner
+
# To add 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.

Revision as of 04:10, 18 October 2011

One of the most dynamic features of Pagelines is the ability to modify or add Custom CSS to your site.

Add Custom Code

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:

  1. Under Pagelines, select the "Custom Code" panel.
    Custom Code Panel
    Custom Code Panel
  2. In the CSS Rules box, enter the Custom CSS code you want to use to modify or add a specific CSS rule
  3. For example, to change the margin at the top of your page: You would add, body {padding-top: 15px;}
  4. Next, click the "Save Options" button in the upper right hand corner
  5. The Custom Code is dynamic which means that it will over-write the default Pagelines CSS settings.
  6. Remember: Proper CSS code format must be used in Custom CSS:

#navigation_rss {position: absolute;

       left: 720px;
       font-family: Verdana, Arial, Helvetica, sans-serif;
       text-transform: uppercase;
       color: #897567;
       line-height: 2.5em;}

Other Features of the Custom Code Panel
Custom Code
Custom Code

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.

  1. To add script, simply paste the desired script into the header or footer sections of the Custom CSS Section.
  2. To add Google Analytics, simply copy the Google script from your Google Analytics account into the Google section of the panel.
  3. Next, click the "Save Options" button in the upper right hand corner.