How to get only number of views without icon

Posted in: Newspaper
Post count: 3

Hello!

If I use echo $td_mod_single->get_views(); I will get number of views in <span> + icon.

How can I get only number of views without any html elements?

Thanks

Post count: 1341

Try Custom CSS:

/* Hide View Icon */
.td-icon-views {
display: none;
}

Post count: 20688

Hi,

That is how it it supposed to be, the span allows for design to be created for the views
https://www.screencast.com/t/ibgwxfMKsEcg
This is defined here – https://www.screencast.com/t/Myu2JQuJ

Thanks

Post count: 3

Thanks for a reply.

I would like to get only number in template inside variable.

$how_much_views = X;

Post count: 20688

I don’t know why you want to remove that span tag, you could remove it if this is required. Try it like this
https://www.screencast.com/t/PwnONEWjeJ

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.