1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ads Inside Post

Discussion in 'Bookmarking Discussions and More' started by alongxp, Feb 18, 2015.

  1. alongxp

    alongxp Active Member

    Hi,
    Its me again, sorry if i miss this similar topic previously, but i wonder how does there's an ads at post page (in the red square).
    [​IMG]
    I just realize this thing. Is it possible for me to remove it?
    just curious about it

    thank you
     
  2. valMETNG

    valMETNG Administrator Staff Member Admin

    You can either replace it with your own ads or remove it. To remove it from the list view, remove lines 37-47 from content/plugins/bookmarking/templates/bookmarking_list.php:
    Code:
      <div style="margin-left:60px;margin-bottom:30px;margin-top:-10px;">
      <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
      <!-- narrow -->
      <ins class="adsbygoogle"
      style="display:inline-block;width:728px;height:90px"
      data-ad-client="ca-pub-5634143173853305"
      data-ad-slot="1346783428"></ins>
      <script>
      (adsbygoogle = window.adsbygoogle || []).push({});
      </script>
      </div>
    To remove it from the post view, remove lines 109-119 from content/plugins/bookmarking/templates/bookmarking_post.php:
    Code:
      <div class="hidden-xs put this in plugin :)">
      <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
      <!-- narrow -->
      <ins class="adsbygoogle"
      style="display:inline-block;width:728px;height:90px"
      data-ad-client="ca-pub-5634143173853305"
      data-ad-slot="1346783428"></ins>
      <script>
      (adsbygoogle = window.adsbygoogle || []).push({});
      </script>
      </div>
     
    Sv9t, shibuya246 and alongxp like this.
  3. alongxp

    alongxp Active Member

    thank you so much for your help, really appreciate it.
     
    shibuya246 likes this.
  4. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    But make sure you copy those files into your theme folder first otherwise they will always be overwritten later.

    If you copy them into your own theme folder they will override the bookmaking plugin templates and therefore even if bookmarking templates change, your files will remain the in place.

    make
     
    valMETNG likes this.
  5. valMETNG

    valMETNG Administrator Staff Member Admin

    (slaps own hand)

    Indeed - this is very important. Sorry I forgot to mention that.
     
    shibuya246 likes this.
  6. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    Really appreciative of your assistance to everyone particularly when I can't reply straight away. Your in depth knowledge of Hotaru is great.

    Much thanks and kudos :)

     
    valMETNG likes this.
  7. andrect

    andrect New Member

    Perfect
    ;)
    Thanks a lot
     
    valMETNG likes this.

Share This Page