Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #4587

    I would like to put a large phone number in the place of the news ticker. Can anyone please give me the code to replace in main index file? Thank you!

    #46872

    Hey,

    in index.php replace following code:

    # Here starts the code for the newsticker

    if($k_options['mainpage']['frontpage_ticker_count'] != ""){$ticker_count = $k_options['mainpage']['frontpage_ticker_count']; }else{$ticker_count = 5;}
    $query_string = "&showposts=$ticker_count";
    $query_string .= "&cat=".$k_options['mainpage']['ticker_cat_final'];
    query_posts($query_string);

    echo'<div id="featured_bottom">'."n";
    if($k_options['mainpage']['ticker_autorotate']==1)
    {
    echo'<div class="ticker">'."n";
    $firstitem = "class='active_ticker'"."n";

    if (have_posts()) :
    while (have_posts()) : the_post();
    echo'<span '.$firstitem.' ><a href="'.get_permalink().'"><strong>Latest News:</strong> '.get_the_title().'</a></span>'."n";
    $firstitem = "";
    endwhile;
    endif;
    echo'</div><!--end ticker-->'."n";
    }

    with:

    # Here starts the code for the newsticker

    echo'<div id="featured_bottom">'."n";
    echo'<div class="ticker">'."n";
    $firstitem = "class='active_ticker'"."n";

    echo'<span '.$firstitem.' ><h2><strong>MY HEADLINE</strong></h2></span>'."n";
    echo'</div><!--end ticker-->'."n";

    #46873

    Thanks, Dude! Love the theme and service!

    #46874

    Glad that I could help you :)

    #46875

    Hey Dude, that didn’t work out so well… see http://diversdenpcb.com. I’m not a coder, but I see it took out the “featured bottom” class… please advise. Thanks again!

    #46876

    sorry, that didn’t work when I added <div id=”featured_bottom”> to the code you gave me. Thought it did for a second, but then blew up in browser. any suggestions?

    #46877

    Hi Dude, I had to change it back to original code; please let me know how to make this change in the ticker class without it affecting the featured bottom. Thanks!

    #46878

    Hey,

    I adjusted the instructions above. Please replace “MY HEADLINE” with your text.

    #46879

    awesome! that did it! Thank you!

    #46880

    Glad that I could help you :)

    #46881

    It worked for me to. But the text colour turned white. How du i change that?

    #46882

    Hi,

    could you link to your page and specify which text we’re talking about? Thanks :)

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Replace news ticker with static H2 copy?’ is closed to new replies.