Jump to content


This topic is now archived and is closed to further replies.


Make Masthead 100% of screen width?

Recommended Posts


Hi, just switched to DMS, loving it .. have tried adding a class and some right click, inspect etc to set the css to make a masthead go full width of the screen so I can set it to have a particular background color and font color for that area but I can't seem to get it


Can anyone help me with the css required please?


Any help greatly appreciated!


This is the site I'm working on..






Share this post

Link to post
Share on other sites

Add a new Full Width Section and add your Masthead into this new section.  In the section area settings -- standard options box, add a new class (don't include the dot. before the class name...just the word like-  specialclass not-  .specialclass, then in the Custom Code (LESS/CSS) box add the new class (with the dot this time) .specialclass and give it a value for background color like this;    .specialclass {background:red;}, publish it, and refresh browser, the entire (full screen width) section containing your masthead should now be red.

Share this post

Link to post
Share on other sites

Thanks for such a quick reply!


I tried dragging in a full width section but it will only go above or below the page in general?


I cannot get it to sit in between other sections like the mastheads that I have a placed a few of underneath my post loop. I can get it to sit on top of the footer, or below the footer, or above the page under the header but not in between?


Will try experimenting further with css for the div the mashead creates and giving the masthead a class and see if I can find the right selectors and css, am guessing something to do with position: relative; width: 100% !important; z-index perhaps ??


Any suggestions welcomed!


Thanks again

Share this post

Link to post
Share on other sites



If I understand correctly, you want to have the Masthead that currently has the following text.


We take care of all your development needs


To have the blue background go full width is this correct, if that is so. I have created a doc page that has instructions on how to achieve this look.




So from the instructions on the doc above, create some custom CSS using your light blue color.


.my-light-blue {

background-color: #68b4e0;



Then once you have added the the Full Width section and inserted the Masthead into it, click on the Edit icon for the Full Width section and in the Standard Options > Styling Classes, add the following:




Then click publish and refresh, your Masthead area should now appear full width :D

Please search our forums, before posting!

Share this post

Link to post
Share on other sites

  • Similar Content

    • chamois_blanc
      By chamois_blanc+
      Shouldn't the image PL5 component be using the srcset/picture css directives to pick the correct size for an image? or it does already and I don't know how to use it? Thank you for any advice or enlightenment.
    • Dan Haddock
      By Dan Haddock
      Plugins Active and installed: 
      Akismet Anti-Spam
      Coming Soon Page & Maintenance Mode by SeedProd
      Contact Form 7
      Cookie Law Info
      DMS Professional Tools  
      Enhanced Media Library  
      Google Analytics for WordPress by MonsterInsights
      Google XML Sitemap
      Jetpack by WordPress.com
      MailChimp for WordPress
      PageLines Updater    
      Schema App Structured Data 
      Sucuri Security - Auditing, Malware Scanner and Hardening
      Uber reCaptcha    
      Yoast SEO
      Wordpress Version: 4.8.1
      Pagelines Version: 2.2.4
      Good Evening/Afternoon or Morning, 
      I am running into a problem with CSS styling not applying inside of most browsers (Safari, Firefox) when I am logged in to wordpress, and all browsers that I have tested when I am logged off and the site has been made public (Chrome, Firefox and Safari).
      As a result, I have managed to identify the probable cause. It looks as though these browsers are refusing to render my sites compiled CSS file due to it being a HTTP URL rather than HTTPS.
      I have attempted to change this URL to HTTPS in my browser, however it brings back an ERROR: File not found page - https://www.shortfilmblog.com/wp-content/uploads/pagelines/compiled-css-core-1505847507.css
      What would you suggest in this regard? Would this be resolvable from your end?
      Happy to provide any further details required.
    • Borries
      By Borries+
      I know this is not an easy problem. Maybe there is a easy solution.
      I have tryed to uses the existing solution, that I have found in the forum
      I changed the colours of my nav (simple nav) and the hover effect (a. hover).
      I really tryed to highlight the active/used link in the nav but I cant figure it out.
      I want it to be black when active.
      Any help would be appreciated. Thanks.
      http://www.marcborries.de  nav link: "Sinn & Selbst" 
    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      every since Chrome introduce scroll anchoring (see chrome://flags) blog posts on my page start scroll automatically as soon as the user scrolls down a bit. It is super annoying and I don't know exactly what triggers the incompatibility with Chrome's latest feature that is supposed to improve usability.
      Since I don't know what causes it (Pagelines, or a Plugin), I would like to disable the feature using a CSS override that Google describes as follow:
      "Scroll anchoring aims to be the default mode of behavior when launched, so that users benefit from it even on legacy content. A CSS property overflow-anchor can disable scroll anchoring in part or all of a webpage (opt out), or exclude portions of the DOM from the anchor node selection algorithm. This property supports the following values when applied to an element E:
      overflow-anchor: auto (the default value) declares that the DOM subtree rooted at E is eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E. overflow-anchor: none declares that the DOM subtree rooted at E is not eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E." Do you guys happen to know how to use that property with the ROOT element so it applies to the whole page?
    • StuLeeUK
      By StuLeeUK+
      Good morning,
      I have set up my homepage using the Elements sections, a Masthead at the top and then a selection of Heroes lower down.
      I only just realised that the Heroes set a H1, as does the Masthead.
      Is there an easy way I can change the Heroes to an H2/H3 etc so as to improve the structure of my headers, whilst keeping the Masthead as H1?
      I really don't know much at all about CSS, which is why I use Pagelines because it's just so easy to create good looking pages without too much confusion.
      page for reference is https://www.avangocouriers.co.uk