I want image after the title in smart list ( not after description) style-7

Posted in: Newspaper
Post count: 436

So, I wanted to use smart list-7 for one of my listcle post but after publishing it, I realised that the image in the last list number was missing. On furher checking, I discovered this: https://i.imgur.com/4ElfvYZ.jpg
Actually the image was there but at the very end of the post, that was because , we need to insert ads, share button and coclusion lines to end any post and having an image after everything doesn’t make any sense.

So, there are only two solutions
1. to lift the image just after title as it looks in smart list style-1 or 2

2. To have an additional end page to put conclusion notes, share button and ads there.

Please tell me how can I lift up the image before title. I know it needs to change few codes under smart list style-7 files but I am capable to do that if you can suggest me things to change.

Please see the attached image and try to understand this issue with style-7 which needs to solve for all users who use this style format.

Thank you

Post count: 22421

Hi,

I made a few modifications to the code and it should move the image above the smartlist content. It will need further testing though. Here is the entire smartlist 7 code
http://pastebin.com/hCmLXDea
Simply replace all the code in the file with this one. here is he file you need to modify: http://screencast.com/t/71Mz57QXJf7
I hope it works well 🙂

Thanks.

Post count: 436

Hey Bogdan,

I am facing some issues with my SFTP login. As soon as I get access to it , I will quickly check your modified code .

Thank you very much 🙂

Post count: 436

Perhaps you had used smartlist 7 code from the recently updated Newspaper version which contains retina image features ( few codes used to retrieve retina image ). So, first it didn’t work for me but then I changed the code a little and only moved this file to a new place ablve // render the pagination


//adding description
if(!empty($item_array['description'])) {
$buffy .= '<span class="td-sml-description">' . $item_array['description'] . '</span>';
}

$tds_smart_list_7_title = td_util::get_option('tds_smart_list_7_title');

// ad smart list 7
$buffy .= td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'smart_list_7', 'spot_title' => $tds_smart_list_7_title));

and it worked. 🙂

Thank you.

Few more thing.

Isn’t it possible to get things in under the list in the same order as it is written .

I mean, First I write the title in H4 and hence smart list will detect that a new listicle number has started . Now I write 2 sentences and then a image and then 2 more sentences. How can I get published list in the same order.

For now, it either shows image first after the title or at the end and bring all written text at one place.

How can I position my texts at different place? Suppose for intro, I want few texts before the image and for end, I want few texts after the image.

I hope you are getting what I am trying to say.

Thank you.

Post count: 6535

Hi

To achieve the desired result you will need some customizations in smart-list structure. Currently all text is stored in $item_array['description']: http://screencast.com/t/f2zLSX9v6MT which is generated by is_description method: http://screencast.com/t/ahgRtQfK1http://screencast.com/t/XfjFCOeeCk
You will need to generate a second description and add it in html after the image to achieve the desired rezult.
This is a very complex task which requires time and good codeing skills in order to be achieved. We can’t offer customization services at the moment so if really need this and you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you.

Thanks!

Post count: 436

I understood that it’s a difficult task . So, I am leaving this customisation for now. Thank you. 🙂

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