Sidebar Banner

Discussion in '[bd] Widget Framework' started by cidrack, May 1, 2014.

  1. cidrack

    cidrack Member

    How to put a link in sidebar banner that when I click on the banner I redirect to page link?

    I used this code to put the banner:
    <img src="link/to/your/banner/image.jpg" />

    But I dont how to redirect to page link

    Sorry but I dont know the codes.... and how use this...

    Thanks.
     
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Hi there,

    If you want to link the image, put it into something like below

    Code:
    <a href="http://google.com"><img src="link/to/your/banner/image.jpg" /></a>
     
  3. cidrack

    cidrack Member

  4. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Your HTML is wrong. It should be...

    Code:
    <a href="http://www.bateriabrasil.com.br/misc/contact"><img src="http://www.bateriabrasil.com.br/recursos/imagens/testebanner.jpg" /></a>
     
  5. cidrack

    cidrack Member

    Thank You.... Now is ok... And about the adsenses that I Talked?

    Now I have active 3 adsenses in the side but only 2 work... I deleted and created again but dont work... After the upgrade inhead problem with This...

    Thanks.
     
  6. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    It may stop working due to a display order problem. Try changing the display order. If it still doesn't work, please take a screenshot of the widget list.
     
  7. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Which widgets are not working?
     
  8. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    First, you should use "forum_list" instead of "hook:forum_list_sidebar".

    Second, please paste your HTML here for me to check.
     
  9. cidrack

    cidrack Member

    I Didnt understand how to use forum_list if I want to put the block in the sidebar below....

    This is the code for the sidebar adsense...

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- 300 X 250 -->
    <ins class="adsbygoogle"
    style="display:inline-block;width:300px;height:250px"
    data-ad-client="ca-pub-1454635887431753"
    data-ad-slot="4936482027"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
     
  10. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Just use "forum_list" and a high display order.

    Regarding your HTML, it looks good. Are you sure it is not rendered by the add-on? Please note that, sometimes Google will not fill the ad space. I checked your site source code and found this:

    Code:
    <!-- 300 X 250 -->
    <ins class="adsbygoogle"
    style="display:inline-block;width:300px;height:250px"
    data-ad-client="ca-pub-1454635887431753"
    data-ad-slot="4936482027"></ins>
    <!-- 300 X 250 -->
    <ins class="adsbygoogle"
    style="display:inline-block;width:300px;height:250px"
    data-ad-client="ca-pub-1454635887431753"
    data-ad-slot="4936482027"></ins>
    <!-- 300 X 250 -->
    <ins class="adsbygoogle"
    style="display:inline-block;width:300px;height:250px"
    data-ad-client="ca-pub-1454635887431753"
    data-ad-slot="4936482027"></ins>
    
     
  11. cidrack

    cidrack Member

    Ok.... thanks..
     
  12. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Btw, it's recommended to put all those 3 ads into the same HTML widget.
     
  13. cidrack

    cidrack Member

    OK. Thanks. Another question..... I have one Ads in page_container_content_top.... is it possible to put one ads in the center between logo and search?
     
  14. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Where exactly? Please take a screenshot of the site and put an arrow in it.
     
  15. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    I think you can use position "hook:header_logo". Some CSS may be required to align it properly.
     
  16. cidrack

    cidrack Member

    Tryed but dont works.... or Ads was Above or Below
     
Loading...