• 0
Sign in to follow this  
Followers 0

Removing Padding from header and other sections.


Question

Posted · Report post

How do bring the padding down to 0 in different sections of PageLines Framework and DMS Pro. I have a few different sites I'm building.  ;)   I know enough to be extremely dangerous.  Help please.  Thanks in advance.

1 person likes this

Share this post


Link to post
Share on other sites

9 answers to this question

  • 0

Posted · Report post

Hi there,

 

Some section options and areas inside the DMS setup do have the option to set the padding value -

 

Other areas or to remove more specific padding/margins from inside a section will need to be done with css. For an overview on the process see http://docs.pagelines.com/customize/overriding-default-css.

 

Basically, using a web inspector tool like chrome dev tools or firebug you'll be able to see inside the page content and view which areas have the padding applied to them. You can then rewrite the css live in the editor and copy/paste back into the css/less panel inside DMS and save to effect the site. In firebug and chrome the padding/margins usually show if you scroll over the html as yellow/blue/orange highlighted sections depending on what you use, firebug or Chrome Dev tools etc.

 

I've recorded a short screencast to show you the process. http://screencast.com/t/Gr4StwO1n

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

ok great!  ill try it now.  stay tuned!  thanks!  this is awesome help.  

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

You're welcome, let us know how you get on.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

thank you so much for the video.  ill be able to breeze through dms now.  unfortunately have the same problem with PageLines Framework.  Im sure its really similar but I when I "inspect element" im able to locate the header and see the amount of padding but i dont know where to go from there.  i have a hard time locating the specific line for padding in the header.  more help please?  thanks!  

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi,

 

What I recommend is you use if you aren't already Google Chromes web dev tools, when inspecting any element in Chromes dev tools, padding is displayed as green and margin is displayed as a shade of orange. This should help you identify the class you want to target.

 

Then you can manipulate the sites padding/margin using chromes dev tools, then all you want to do then is add your changes to your custom CSS.

 

For example, let's say you want to remove the padding from the masthead section, you code would look something like this (please remember this is an example):

 

.section-masthead .content-pad { padding: 0px; }

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

ok great - now i would change that in the css.style folder on my cpanel?  also, i thought i have to use a "childs theme?"  i guess any changes will be overridden with theme updates?  sorry to be a pain.  

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi there, In DMS you can simply paste your new css changes in to a special area in the DMS control panel. See - http://screencast.com/t/HHDa3jzupxV you won't need to edit anything in c panel or via the core files.

 

There are three methods you can use for entering css changes, the css/less area, a child theme like the base theme or the customize plugin. More info on each of these can be found at http://docs.pagelines.com/customize/how-to-customize

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi everyone,

 

I have the same issue and wanted some guidance as well. Here is a link to two screenshots of my masthead using inspector:

 

https://www.dropbox.com/sh/u1spx4z7jxfrxbo/AADF6ECCqkZxeTJ2_ZoEo0RBa?dl=0

 

Wondering if I adjust the 43.4px number or the padding-top and padding-bottom 20px in the screenshot?

 

media="all"
.masthead .inner{
  1. padding-top43.4px;
}
 
Once I make the adjustment, how do I save the adjustment to the screen? Or do I cut and paste the code into the custom CSS? The "20px" code doesn't appear to indicate "masthead," so how does the CSS know it refers to the masthead?
 
Thanks for guidance! 
 
Kelly

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

kellyc214

 

As far as I can tell from your images, that padding is coming from the canvas area your Masthead has been placed in. Canvas sections have padding top/bottom control you can change via options. Try increasing there.

If that doesn't do the trick, what you will want to do is this:

 

1. Go to your Masthead section and in the styling classes field add the following with quotes "ptop-masthead"

2. Now go to your Custom panel > Custom CSS/LESS and add the following:

 

.ptop-masthead .masthead .inner {
padding-top: 100px;
}
 
3. Publish the CSS and refresh, upon reload the Masthead should have an increased padding:
 
If you do the opposite and use:
 
.ptop-masthead .masthead .inner {
padding-top: 0;
}
 
That masthead with the ptop-masthead class will have zero padding.

Hope this helps.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0