How to remove the link from News ticker?

Posted in: Newsmag
Post count: 53

Hi,

I don’t want any links on titles that are shown in “news ticker”. Please help on how only show the titles in news ticker without permalinks.

Thanks.

Post count: 6535

Hi

First you need a new function for the title so add this code in td_module.php file: http://screencast.com/t/8AsaIEzmOy2http://pastebin.com/Nnkq77Ev
Then you have to edit the td_module_trending_now.php and call the new function like here: http://screencast.com/t/agJmXSmOJQ Also you will need this code in theme panel > custom code > custom css:

.td_block_trending_now .entry-title {
font-family: "Droid Serif";
transition: color 0.2s cubic-bezier(0, 0, 0.58, 1) 0s;
font-size: 12px;
font-weight: normal;
line-height: 19px;
color: #444444;
font-size: 12px;
font-weight: normal;
line-height: 19px;
color: #444444;
}

Let me know how it goes.
Thanks!

Post count: 53

Hi Andrei,

Thanks for the reply. But while pasting the function in td_module.php i got the following error.

Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in wp-content/themes/Newsmag/includes/wp_booster/td_module.php on line 422

I did as you said but don’t know why this error is showing up.

Thanx

Post count: 6535

Hi

That error appear because somewhere a function is not closed. Please make sure that you added the code from pastebin exactly as i send it or just replace the entire code from td_module.php with this one:
http://pastebin.com/RZ385cSh

Thanks!

Post count: 53

Dear Andrei,

You are a real genius. I double checked all the closing tags of td_module.php before you replied me but was not able to troubleshoot. The full code solved the problem. But the custom css doesn’t work till !important is added to the last of every attribute’s value.

But solved my problem however.

Thanks a lot,
Durga.

Post count: 6535

Hi

The PHP coding can be tricky sometimes and the error can come from where you least expect it. I am glad I could help and in the end you managed to solve the problem.

Have a nice day!
Thanks for your message!

Post count: 53

Hi Andrei,

Can we change the effect of trending now to some marquee or some horizontal scroll effect??

Thanks in advance!!

Post count: 6535

Hi

The animation is controlled by js and to change it are required some customization in theme’s code. Unfortunately I can’t provide a solution for the moment, as we can’t provide custom services, sorry.

Thanks!

Post count: 9544

Also, note you can create your own loop query and use common javascript to build a completely different ticker, and insert that in a row in your layout, and just not use the one included with theme. This would be much simpler than “hacking” the theme.

Lots of options for doing this online from past decade; very common design element on news sites. Sites like JavascriptSource and others have JS you can use. Or, since jquery being loaded, a simple Ajax RSS ticker script using Jquery could easily be implemented.

Post count: 53

Hi Chris,

Can you give me some reference link about what u said?? And nice gravatar changed 😀 (y)

Post count: 9544

Hey! Sorry, I don;t have a simple answer to that; it requires a bit of work on your part. Try doing google search for stuff like “Jquery RSS ticker” (e.g., http://www.jqueryrain.com/demo/jquery-news-ticker/ ). We still use a JS/CSS/RSS ticker on one of our sites to pull news onto our service pages, where the service pages are .shtml static and news is on WP site. So, you can just load one of your topics via the built-in RSS from any of your tags, categories, authors. This was just one example where hacking the theme will drive you nuts.

Ha! Yeah, the icon was something I did as I was tired of my 20 year old “headshot” — and was playing with the South Park Studios Avatar Maker — not sure that still works.

Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic.