How to hide first Smarlist point

Posted in: Newspaper
Post count: 19

Hi,
i love smartlist templates but i have a little problem.
We use to write a preface on our smarlist article and the only way to not show this preface on all smartlist page s is the add an H3 empty tag (e Fake smartlist bullet point) at the beginning on the articles.

You can find an example here http://intraprendere.net/2066/cerchi-unidea-imprenditoriale-noi-te-ne-diamo-45/

How can i hide the first “fake smartlist bullet point” ?

Thank you, i really love your work!
G.

Post count: 22421

Hello,

Unfortunately our theme has no such option and css cannot do that so the only solution will have to be hard-coding it. You can use this code:

if ($current_item_number !=1 ) {
           $buffy .= '<div class="td-number-and-title"><h2><span class="td-sml-current-item-nr">' . $current_item_number . '</span><span class="td-sml-current-item-title">' . $item_array['title'] . '</span></h2></div>';
       }

to replace this code: http://screencast.com/t/IxWHwwXwaGKw

But there is one catch: You have to set the smartlist in ascending order for it to work. If you have it in descending order it will remove the last title instead. http://screencast.com/t/zRVBZSdea

Thank you!

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