The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Remove logo image from forum index but not portal

View previous topic View next topic Go down

Solved Remove logo image from forum index but not portal

Post by Smakx on December 9th 2014, 10:11 am

Hello,

Sorry if this has been covered. I would like my site logo image to appear on the portal page but not the forum index. I've been all through the AP, hope I didn't miss it. I am running phpbb3. Any help is appreciated, thanks.

Smakx
New Member

Posts : 13
Reputation : 1
Language : English

http://realmchat.forumotion.com/

Back to top Go down

Solved Re: Remove logo image from forum index but not portal

Post by Ange Tuteur on December 9th 2014, 10:26 am

Hello smakx,

Go to Administration Panel > Modules > JavaScript codes management

Make sure JS code management is enabled and create a new script.

Title : your choice
Placement : in the homepage
Paste the code below and submit :
Code:
$(function() {
  if (window.location.pathname == '/forum') document.getElementById('logo').style.display = 'none'
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Remove logo image from forum index but not portal

Post by Smakx on December 9th 2014, 10:35 am

This is very close. I also want the logo hidden when in forum threads and messages, can you help me with that? The code you gave me works for the forum index, my wording wasn't very precise.

Smakx
New Member

Posts : 13
Reputation : 1
Language : English

http://realmchat.forumotion.com/

Back to top Go down

Solved Re: Remove logo image from forum index but not portal

Post by Ange Tuteur on December 9th 2014, 10:37 am

Of course,

Replace the script by this :
Code:
$(function() {
  if (window.location.pathname != '/') document.getElementById('logo').style.display = 'none'
});

and change its placement to in all the pages

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Remove logo image from forum index but not portal

Post by Smakx on December 9th 2014, 10:45 am

Thank you! That's perfect, just what I wanted. This forum is always a great help, you guys are awesome.

Smakx
New Member

Posts : 13
Reputation : 1
Language : English

http://realmchat.forumotion.com/

Back to top Go down

Solved Re: Remove logo image from forum index but not portal

Post by Ange Tuteur on December 9th 2014, 10:58 am

You're welcome ^^

Topic archived

Have a great day Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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