Customize Article Display View

Posted in: Newspaper
Post count: 13

Hello,

I am trying to make author and category appear on the M6 Article Display View, under the article image and title.
Could you please help?

Thanks a lot!

Post count: 13

Hi,

I found the solution here: https://forum.tagdiv.com/topic/show-categorie-name-in-latest-articles/

You can see the result here: http://imagespourapprendre.com/

What I would like is to have the exact same display as in post headers, that is the category background color, font color and space between category and author just like here: http://imagespourapprendre.com/2014/10/plug-it-on-the-window/

Should I edit the get_category function or customize some css? Could you please help?

Thanks a lot!
Sam

Post count: 6600

Hi,

Please add this lines: http://screencast.com/t/MyGS26t3R
Let me know if it works for you.

Thanks

Post count: 13

Hello Lucian,

Thanks a lot for your answer, it works pretty well. The only problem left I’d like to solve is that the category background color doesn’t seem to be the one I chose in the theme panel.

As you can see, “technologie & Innovation” is green on the homepage: http://imagespourapprendre.com/

While it should be red just like on the article: http://imagespourapprendre.com/2014/10/plug-it-on-the-window/

Could you please help on this?

Thanks again!
Sam

Post count: 6600

Hi,

Please replace the content of your td_module_6.php file with this one: http://pastebin.com/NMmr1nnk
Hope this helps! Please make sure you make a copy of that file before you change it as if something goes wrong you can revert back to it.

Thanks

Post count: 13

It looks great! Do you think you could slightly adapt the code so that only the primary category appears? I’ve tried it myself but my knowledge in PHP is quite limited.. :s

Thanks a lot,
Sam

Post count: 6600

Hi,

Try this: http://screencast.com/t/jhn2HXq4e

Thanks

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