• Resolved freekers

    (@freekers)


    Hi,

    I’m trying to install the HTML ticker of giveawayoftheday.com in my sidebar, but it isn’t working at all.
    My template is widget ready but I haven’t got a clue how to get it running.

    This is the html code:

    <style type="text/css">
    	#ga_block { width: 300px; background-color: #ffffff}
    	#ga_block img { display: block; border: none; }
    	#ga_block #ga_title { font: normal 12px Verdana, sans-serif; border: none; margin: 4px 0 0 0; }
    	#ga_block #ga_title a { text-decoration: none; color: #1389B7; }
    	#ga_block #ga_text { font: normal 11px Arial, sans-serif; border: none; margin: 4px 0 0 0; overflow: auto; width: 100%; }
    	#ga_block #ga_text a { text-decoration: none; color: #000000 }
    	#ga_block #ga_text p { margin: 4px 0; }
    	#ga_block #ga_text img { display: block; position: relative; float: left; border: none; margin: 0 1em 1em 0; }
    </style>
    <script type="text/javascript">
    	var gaotd_SiteName = "My Site Name";
    </script>
    <script type="text/javascript" src="http://nl.giveawayoftheday.com/ticker/">
    </script>
    <noscript>
    <a href="http://nl.giveawayoftheday.com">Giveaway of the Day</a>
    </noscript>

    Any assistance with this would be appriciated 🙂

    Thanks !

Viewing 6 replies - 1 through 6 (of 6 total)
  • And just HOW do you try to install it?
    If you use widgets – put it in a Text Widget.
    If you are not using widgets – copy/paste it in the sidebar.php’s code.

    Thread Starter freekers

    (@freekers)

    Hi !

    I’m trying to copy/paste it in sidebar.php’s code, but it isn’t working, at all :S
    Strange, I have some experience with php/html but I can’t get it to work.

    Sidebar.php:

    <div id="sagtaraf">
       <div class="sayfalist1">
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
    
          <h1>Recent Verschenen</h1>
          <ul><?php get_archives('postbypost', 16); ?></ul>
          <h1>Archieven</h1>
          <ul><?php get_archives('monthly','12'); ?></ul>
    <?php endif; ?>
       </div>
       <div class="sayfalist2">
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
    <a href="<?php bloginfo('rss2_url'); ?>" title="RSS feed"><img src="<?php bloginfo('template_url'); ?>/images/rss.jpg" alt="rss" style="border:0;"/></a>
          <?php if (function_exists('get_flickrrss')) { ?>
          <h1>Recently Pictures</h1>
          <?php get_flickrrss(); ?>
          <?php } ?>
          <?php if (function_exists('get_recent_comments')) { ?>
          <h1>Last Comments</h1>
          <ul><?php get_recent_comments(); ?></ul>
          <?php } ?>
          <h1>Categorieën</h1>
          <ul><?php wp_list_cats('sort_column=name'); ?></ul>
          <h1>Links</h1>
          <ul>
          <?php get_links(-1, '<li>', '</li>', '', TRUE, 'url', FALSE); ?>
          </ul>
    <?php endif; ?>
       </div>
    </div>

    Thanks in advance !

    It doesn’t matter what is in the sidebar.
    Which one of the two [2] methods described by me above did you try?

    Note. As it is known, you can NOT paste it in the sidebar code IF you are using widgets: widgets override any manual code.
    Actually, you can paste it there but ONLY outside of the “dynamic” if statements!

    Thread Starter freekers

    (@freekers)

    As said before, I’m trying to copy/paste it in sidebar.php’s code, but it isn’t working, at all :S ( So I’m not using widgets )

    Thanks in advance.

    There is not even one widget active on your site, that’s what you mean?

    In that case, as I said above: put it either before the starting
    if dynamic… line or after the endif.

    Just for the record: I copied your code from above and put it in the sidebar of a local installation on my machine and it works perfectly. You are doing something wrong.

    Thread Starter freekers

    (@freekers)

    Thank you ! The tip of “put it either before the starting
    if dynamic… line or after the endif.” did the trick !
    Thanks again for the quick help !!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘HTML Ticker Installation in Sidebar’ is closed to new replies.