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!
Replace news ticker with static H2 copy?
12 posts from 4 voices-
Posted 11 months ago #
-
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";Posted 11 months ago # -
Thanks, Dude! Love the theme and service!
Posted 11 months ago # -
Glad that I could help you :)
Posted 11 months ago # -
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!
Posted 11 months ago # -
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?
Posted 11 months ago # -
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!
Posted 11 months ago # -
Hey,
I adjusted the instructions above. Please replace "MY HEADLINE" with your text.Posted 11 months ago # -
awesome! that did it! Thank you!
Posted 11 months ago # -
Glad that I could help you :)
Posted 11 months ago # -
It worked for me to. But the text colour turned white. How du i change that?
Posted 3 months ago # -
Hi,
could you link to your page and specify which text we're talking about? Thanks :)
Posted 3 months ago #
Reply
You must log in to post.







