Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

blank space after "advertising" header on next page

  • Žiadne odpovede
  • 0 má tento problém
  • 7 zobrazení
more options

When a new page or tab opens there a large blank spaces after the header word " advertising". Why is this happening? Too much wasted screen space.

advertisement

  Then there is a lot of space after this before the next content paragraph begins.

Is it coming from this setting?

advertisement

<script class="dfp-script">

   // The original ad position name.
   var tag_placeholder = 'js-dfp-tag-articlecontent2';
   if (typeof definedSlots !== 'undefined' && definedSlots) {
     if (definedSlots[tag_placeholder]) {
       if ((!dfpSettings.single_request) || (tag_placeholder == singleRequestSlot)) {
         sra_msg = (dfpSettings.single_request) ? '(1st slot only for SRA)' : ;

         console.log("display " + sra_msg + ": " + tag_placeholder);
         googletag.cmd.push(function() {
           // Load the ad.
           googletag.display(tag_placeholder);
         });
       }
     }
     else {
       // Ad not defined for this breakping, hide the slot.
       let tag_elem = document.getElementById(tag_placeholder);
       if (!isEmpty(tag_elem)) {
         // get the parent dfp block
         let parent = tag_elem.parentElement.parentElement.parentElement;
         parent.hidden = true;
       }
     }
   }

</script>


I can't make sense of this code. How to I eliminate the wasted space?

''When a new page or tab opens there a large blank spaces after the header word " advertising". Why is this happening? Too much wasted screen space.'' advertisement Then there is a lot of space after this before the next content paragraph begins. Is it coming from this setting? <div class="paragraph paragraph--type--ad paragraph--view-mode--default"> <div class="advertising"> <div class="advertising__label">advertisement</div> <div class="advertising__container"> <div id="js-dfp-tag-articlecontent2" class="dfp-tag articlecontent2"> <script class="dfp-script"> // The original ad position name. var tag_placeholder = 'js-dfp-tag-articlecontent2'; if (typeof definedSlots !== 'undefined' && definedSlots) { if (definedSlots[tag_placeholder]) { if ((!dfpSettings.single_request) || (tag_placeholder == singleRequestSlot)) { sra_msg = (dfpSettings.single_request) ? '(1st slot only for SRA)' : ''; console.log("display " + sra_msg + ": " + tag_placeholder); googletag.cmd.push(function() { // Load the ad. googletag.display(tag_placeholder); }); } } else { // Ad not defined for this breakping, hide the slot. let tag_elem = document.getElementById(tag_placeholder); if (!isEmpty(tag_elem)) { // get the parent dfp block let parent = tag_elem.parentElement.parentElement.parentElement; parent.hidden = true; } } } </script> </div> </div> </div> </div> I can't make sense of this code. How to I eliminate the wasted space?