Jump to content

Archived

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

appappnost

Remove padding above and below header

Recommended Posts

appappnost    1
appappnost

Website URL: http://www.buddyflip.com/
Framework Version: 1.1.4
WordPress Version: 3.8
Plugins in Use:
DMS Professional Tools
Server/Host: your-site.com
Screenshots: Attached
Details: I have a "Media Box" with an image in it that I'm using in the Header of this site - and - I'd like to make the image go all the way to the top of the browser - and - I'd like to eliminate the padding beneath it - so that the nav bar is right up against the header image ... But - nothing that I've tried is working ... Any help would be appreciated.

 

Thanks!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

Add the following to your custom CSS:

 

#mediaboxuihxqp .the-media p {
margin: 0;
}
 
Also, you will need to edit the code you have used in the MediaBox to add your link and image.
 
At the moment you most likely have something like this:
 
<img style="border:0;" src="http://www.buddyflip.com/wp-content/uploads/2013/12/bf-header.png" alt="Buddy Flip" width="910" height="159">
</a>

Replace it with this:

 

<a href="http://www.buddyflip.com/"><img style="border:0;" src="http://www.buddyflip.com/wp-content/uploads/2013/12/bf-header.png" alt="Buddy Flip" width="910" height="159"></a>
 
Wordpress loves adding <p> or <br /> tags when you add a new line to text, code or shortcodes, this can cause some problems with output especially with HTML and shortcodes. Having your code all one line reduces this issue.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
appappnost    1
appappnost

Hi Danny - 

 

Thanks for your reply!

 

I added :

 

#mediaboxuihxqp .the-media p {

margin: 0;
}
 
to the custom CSS - and - also edited the code you have used in the MediaBox - and - neither seems to have done the trick ...
 
I'm stumped.
 
I'll keep on playing with it today to see if I can figure anything else out.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

The custom CSS from what I can see hasn't been added or loaded. I think what has happened is that you have come upon the issue that has effected a number of other users too.

Basically, what happens is you configure a section or in your case add custom CSS, then click publish, refresh and the custom CSS hasn't taken effect. This is a known issue and has been resolved and will be included in an upcoming patch 1.2.

 

For the moment, you can do this band aid fix.

What you need to do is this:

 

When you have added your custom CSS or configured a sections options, move your mouse cursor to either a different option field or in regards to adding custom CSS, click outside of the editor area. This will then trigger the Saving progression, you can confirm this by viewing the saving progression icon next to the Publish button. Once this saving progression expires, click the publish button and then refresh your site, your custom CSS should now be working as intended.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
appappnost    1
appappnost

Ah!

 

This will probably help to fix both of my issues ...

 

Although - I did it - and - no dice ...

 

Any idea when patch 1.2 will come out? 

 

I'm supposed to use Chrome - too - right?

 

I'm just glad that I'm not going crazy - adding code and nothing happening ... That is a minor relief!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

You should use DMS Visual Editor with Chrome, we do not support other browsers when using the Visual Editor, even though you can trick the browser to think its a different browser.

When using the DMS visual editor you should always use Google Chrome, its the best browser by a country mile.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
appappnost    1
appappnost

I totally agree about Chrome being the best ... It's the only browser that I use (unless I have to test something) ...

 

So - with the CSS not updating - is the theme caching the old code? I tried the work around that you laid out - but - it didn't "unclog" the CSS pipes and allow for the new code to come through ... Any other suggestions?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

If that suggestion didn't work, then it could well be plugin related. I only encounter the issue with CSS/LESS not saving every now and again, its not frequent like it is for some users.

 

So if the suggestion on the other topic hasn't resolved your issue, then its likely either a plugin or your custom code has some errors. 

 

What I would do is remove all your custom CSS and then add the code I provided above and see if it works, if it does then you could have errors in your code which is preventing anything after that error from working.

  • Like 1

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
toddlo    3
toddlo

I'm having the same issue with mediabox. Interestingly enough, I don't have the same issue with the sliders. I have applied the fix, but it didn't work. I am using the dms editor in Chrome incognito mode to eliminate extension conflict. The site I'm working on is here; http://kcuthriell.wpengine.com/

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Toddlo, the padding for that area is coming from the class .pl-area-wrap  .pl-bg-cover both of which have 20px

 

http://screencast.com/t/Jln1nDisBu

 

Try the following to override the inline styles. Should look like this, flush to the top - http://screencast.com/t/62X8Zy83

 

.pl-area-wrap  .pl-bg-cover {

    padding-bottom: 0 !important;
    padding-top: 0 !important;
}
  • Like 1

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
appappnost    1
appappnost

Howdy - on the initial site from this post (Website URL: http://www.buddyflip.com/) - I was able to to get the header to go flush against the top of the page - but - still haven't been able to get rid of the space between the top of the nav and the bottom of the header image ... Here is a link to a screenshot. 

 

http://www.screencast.com/t/wyXbaNHp

 

 

I just want the top of the nav to be flush with the bottom of the header image.

 

Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Basically, all sections contain some kind of padding/margin, the issue with your image and navigation not being aligned up, is due to there being padding top on the navbar section. To remove that padding top, use the following code.

 

#site .section-navbar .pl-section-pad {
padding-top: 0;
}

We do not provide extensive CSS support, so in future I highly recommend you inspect your site and elements using Google Chromes web dev tools. In this tool, padding is displayed as a green and margin is displayed as orange, so its easy to distinguish between the two. If you're new to the Chromes web dev tools, I recommend you check out the Code School online tutoring, which is awesome - http://discover-devtools.codeschool.com/
  • Like 1

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • MissT
      By MissT+
      Hi there,
      I've got an issue with 3 websites built with DMS since I migrated them from http to https that I need help with please.
      When any changes are made - e.g. new posts added or existing posts amended - certain sections of the live site seem to break e.g. image headers hang and don't load (b/g on canvas section), sliders hang and don't load (Revslider), flipper section doesn't load.
      Logging in and then clicking 'Edit the site using DMS' seems to fix the problem. Often if I try to open up another browser window to edit the site / re publish I'm unable to as the page wont load / hangs while trying to load.
      Any ideas how to fix this? On a couple of the sites I've installed a caching plugin as I thought it might be a loading speed issue but it's still happening.
      Website URL's can be provided privately.
      Many thanks in advance.
    • jeomiland
      By jeomiland+
      Hi
      I found this topic
      which talks about a similar issue I am having, but a little different. Hope someone can help me out.
      Best way to see the problem is to view http://cassclayton.com/ on Safari (Mac) compared to Firefox or Chrome. You will see the banner just under the fixed menubar has a gap between the menubar and top of the banner. Looking at Inspector, I found:
      <div class="fixed-top-pusher" style="height: 62px;"></div>
      <script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
      and indeed it seems the jquery is not always working consistently. For instance, if you simply refresh the page in Safari, it will loose the gap and all looks fine, so is it a browser cache issue that is interacting with the jquery? I do have W3 Total Cache installed. There must be a way to tell the code to make sure jquery is up and running and available to do it's majic?
      And perhaps there is just a better way to do this banner? Originally I tried several DMS sections and used the banner image as background, etc... Kept running into problems with resizing and the left/right parts of the image were getting chopped off. It is important the whole image show, so currently I just use a NextBox section with this code:
      <img src="[pl_site_url]/wp-content/uploads/2015/12/CassClayton-blues-tribute-banner.jpg" width="100%" />
      and it looks the way it should. Is there a better way to place a banner graphic under a fixed navbar and make sure the whole banner graphic displays regardless of screensize?
       
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
    • kwaoru
      By kwaoru
      Hi,
      I desperately need to deactivate the responsive function on mobile for reasons. It looks so messy with the responsive look on mobile and not navigating or informative at all as it is. 
      I searched for solutions online and tries some of those that I found but nothing worked out. Also I found a previous post on this forum says that this theme pagelines DMS is not meant to be build to deactivate the responsive function... 
      Also tried with widget such as WPtouch to edit the mobile look a little more informative but as I am using "single page" theme on pagelines, the frontpage(main page) never appears on those app.
      Seems like not compatible?
      If there is no way to deactivate responsive function or I'll have to recreate another page just dedicated for a mobile page? or change the theme completely and build a page from scratch?
      I have been searching for this for two days already...
      Could anyone wise and kind out there, please help me?
       
      Thanks,
×