Latest topics
» [GAME] What are you thinking right now?
by universecat Yesterday at 21:46

» [GAME] Animal Game
by universecat Yesterday at 21:43

» [GAME] Count to 1000 using even numbers Van-Helsing Edition
by universecat Yesterday at 21:40

» [GAME] Count to One Million!
by universecat Yesterday at 21:40

» [GAME] Last Letter Game
by universecat Yesterday at 21:39

» [GAME] Post a random picture
by SLGray Yesterday at 16:28

» Dark Mode + Another Question
by Ace 1 Yesterday at 13:31

» Hi everyone!
by skouliki Yesterday at 02:01

» Hai Guys~
by skouliki Yesterday at 01:59

» Add a login popup for the toolbar
by Ape Sun 15 Oct 2017, 13:51

» Mobile Usability Test
by Ange Tuteur Sat 14 Oct 2017, 11:20

» Chit Chat Thread
by Ange Tuteur Sat 14 Oct 2017, 11:20

» [GAME] World Snake
by SLGray Thu 12 Oct 2017, 16:12

» [GAME] Never have I ever..
by Valoish Thu 12 Oct 2017, 13:01

» Browsers & Updates
by SLGray Mon 09 Oct 2017, 12:11

Recent Tutorials
Who is online?
In total there are 8 users online :: 0 Registered, 0 Hidden and 8 Guests :: 2 Bots


[ View the whole list ]

Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Creating affiliate boxes at the bottom of the page doesn't work

View previous topic View next topic Go down

View all awards

PostGuest on Fri 23 Dec 2016, 09:05


I'm trying to create affiliate boxes at the bottom of the homepage (index), but I fail in doing so because it seems like the <div></div> trick doesn't work with the widgets in Edge ...

Plus, I'd like to know how to create them in between categories.
Ange Tuteur
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4698
Points : 9534
Reputation : 2337
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile

PostAnge Tuteur on Fri 23 Dec 2016, 11:57

Hmm.. you *might* need to add the affiliates via the templates. Admin Panel > Display > Templates > General > index_body

You could also append the affiliates via JS as well. Admin Panel > Modules > JS code management > New

Placement : In the homepage
$(function() {
  var after = $('#who_is_online')[0],
      html = '<div class="content-block">'+
              '<div class="title">Affiliates</div>'+
              '<div class="txt-content">'+
                'Affiliates go here ! :D'+

  if (after) {
    after.insertAdjacentHTML('afterend', html);

The HTML string is an example, but if you want to keep it as is, place your affiliates where
Affiliates go here ! :D
is located in the script. If any questions let me know. Smile
View all awards

PostGuest on Fri 23 Dec 2016, 14:20

No. I don't like to tamper with the templates and certainly not his. I'll be trying your solution this weekend on Saturday or next Monday if you don't mind and let you know. Smile Does this also mean <div></div> won't work on Edge, period? And if so, what alternatives do we have for the widgets? Just JS and/or editing the templates? And how do we place the affiliate boxes when we want them in between the cats?

Thanks for looking into this! Hello Hohoho

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!

Create a new account

Log in

Already have an account? No problem, log in here.

Log in

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