Recent Topic top of Categories

Go down

Solved Recent Topic top of Categories

Post by Luffy on October 27th 2014, 1:52 am

Hello,

I was wondering hot can i add the recent topic widget to the top of the categories and not to the right column of widgets.

I tried adding all the mod_recent_topic tempalte to the index_box but nothing happened.
avatar
Luffy
Manager
Manager

Male Posts : 5519
Reputation : 609
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Recent Topic top of Categories

Post by Ange Tuteur on October 27th 2014, 4:24 am

Hello MrMind,

Go to Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : In the homepage
Code:
$(function(){$('#recentTopics').prependTo('#main-content > .main:has(.boxlastpost)')});

That should add it to the top of the element that the categories are in.
avatar
Ange Tuteur
Forumaster

Male Posts : 13202
Reputation : 2918
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Recent Topic top of Categories

Post by Luffy on October 27th 2014, 2:01 pm

Thanks! Worked perfect! SOLVED!
avatar
Luffy
Manager
Manager

Male Posts : 5519
Reputation : 609
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Recent Topic top of Categories

Post by Ange Tuteur on October 27th 2014, 3:55 pm

You're welcome Smile

Topic archived
avatar
Ange Tuteur
Forumaster

Male Posts : 13202
Reputation : 2918
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum