• Resolved playerad

    (@playerad)


    https://usapoliticsuncut.com/

    I want to reduce the distance between the top menu and the first page excerpt.

    Ive tried to go through css code find the word padding reduce it to 0 then check the effect on the website then change it back if it hadnt worked.

    Cant seem to find the solution the them im using is:

    MH Newsdesk lite

    Ive tried adding rules and code into a custom css plugin.

    Nothing ive tried has worked. No body would want that amount of white space between the menu and first page exert. The basic theme should have this reduced.

    Ive been at this for hours.

    Any help is much appreciated!

Viewing 7 replies - 1 through 7 (of 7 total)
  • lisa

    (@contentiskey)

    “I want to reduce the distance between the top menu and the first page excerpt.”

    are you referring to the space above and below the google ad that I see displayed? maybe there is some top/bottom margin stlying built into the ad.

    are you using a plugin for ads?

    <ins class="adsbygoogle" data-ad-client="ca-pub-7876593834075617" data-ad-format="auto" data-tag-origin="pso" data-ad-slot="6184882065" data-ad-channel="WordPressPage+pso-lv-4" data-adsbygoogle-status="done" style="display: block; margin: 10px auto; height: 90px; background-color: transparent;"><ins id="aswift_1_expand" style="display:inline-table;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:1180px;background-color:transparent"><ins id="aswift_1_anchor" style="display:block;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:1180px;background-color:transparent"><iframe width="1180" height="90" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&&s.handlers,h=H&&H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&&d&&(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}" id="aswift_1" name="aswift_1" style="left:0;position:absolute;top:0;"></iframe></ins></ins></ins>

    Thread Starter playerad

    (@playerad)

    So i need to reduce the distance between the google ad under the top menu and the first page excerpt.

    Thread Starter playerad

    (@playerad)

    Yes im using the googe adsense plug in.

    But i had the problem of the white space before adding the plugin and before adding google adsense.

    Hi playerad,

    thanks for using MH Newsdesk lite.

    We highly recommend that you undo your code modifications because at the moment the layout on your website looks quite broken without proper padding.

    If you want to remove the margin below the header, you could achieve this with some CSS:

    .mh-header { margin-bottom: 0; }

    However, please keep in mind that your Google AdSense plugin might be adding margin / padding as well.

    When it comes to CSS customizations, you can always use tools like Firebug or your browsers inspection tool to inspect the particular elements, check how the CSS has been applied and then use that information for your own customizations.

    In order to add custom CSS code to your website, you should either make use of a child theme or use plugins like for example Simple Custom CSS.

    Thread Starter playerad

    (@playerad)

    How do i revert the code back to what is was previously. Is there somewhere i can download the basic code againt to revert it back?

    Thread Starter playerad

    (@playerad)

    .mh-header { margin-bottom: 0; }

    adjusting this line of code still does not push the page excerpt higher on the page.

    Like i said before this was a problem even before i added google adsense code to the website.

    How do i revert the code back to what is was previously. Is there somewhere i can download the basic code againt to revert it back?

    Yes, you could simply re-download the original theme files or delete the theme and then re-install to restore the original codebase.

    Adjusting this line of code still does not push the page excerpt higher on the page.

    The provided CSS code definitely removes the margin below the header. The other margin / padding is added by your advertisement or plugin like mentioned before in this thread.

    Please also note that it’s highly recommended to keep some white space on your website because it’s quite unusual for modern websites to have layouts without proper white space. The white space / margin below the header should be the same on your website as you can see in this demo.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘reduce padding on home page between top menu and 1st page exert.’ is closed to new replies.