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.

Removing default navbar buttons

View previous topic View next topic Go down

Solved Removing default navbar buttons

Post by niji666 on January 14th 2015, 10:54 am

I'm trying to remove the default navbar buttons and replace them with custom ones. I have tried removing them in css with this code....

a[href="/memberlist"]{
display:none;
}


Obviously i am replacing the name of each button i am trying to remove but this code has only let me remove 2 of the buttons.


here you will see what i mean....


http://omniscience.the-talk.net/forum

niji666
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Solved Re: Removing default navbar buttons

Post by _Twisted_Mods_ on January 14th 2015, 11:51 am

you could just goto acp>display>pics management>advanced and add a image for them
and any of them you don't want to show just use

Code:
http://illiweb.com/fa/empty.gif
for the image

then goto

acp>display>headers&navigation and change your setting to display image only

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Removing default navbar buttons

Post by niji666 on January 14th 2015, 12:02 pm

Thanks, The empty.gif was already set so changing the setting to images only did the trick. Thanks so much 4 hours iv'e been trying to figure out Very good

niji666
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Solved Re: Removing default navbar buttons

Post by _Twisted_Mods_ on January 14th 2015, 12:11 pm

your welcome .. you should take a look around your acp and familiarize your self a little with it .. i know its alot of stuff to go threw but its good to know most of it for things like this

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Removing default navbar buttons

Post by niji666 on January 14th 2015, 12:29 pm

I went through everything 3 times i guess i'm just getting old and slow.lol

Iv'e just realised the buttons are still there but don't highlight until i scroll over the. How do i get rid of them permanently so there's only my custom buttons?

Apologies i marked this as solved but the buttons are invisible until i scroll over them

niji666
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Solved Re: Removing default navbar buttons

Post by _Twisted_Mods_ on January 14th 2015, 12:50 pm

try using the javascript

acp>modules>javascript

make sure javascript is on then create a new script

set it to all pages


Code:
$(function(){
$('a[href="buttonurl"]).remove();
$('a[href="buttonur"]).remove();
});



replace buttonurl with url for the button like u did for the css

you can add as many


Code:
$('a[href="buttonur"]).remove();



as you need

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Removing default navbar buttons

Post by niji666 on January 14th 2015, 6:01 pm

i can't seem to get this working. The java is turned on i create a new script and replace "buttonurl" with "home" for example. when i save the script it seems to do nothing?

niji666
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Solved Re: Removing default navbar buttons

Post by _Twisted_Mods_ on January 14th 2015, 9:23 pm

when you highlight the url it shows a link you need the end of that url
your index is just /
Code:
$('a[href="/"]).remove();

portal

Code:
$('a[href="/portal"]).remove();

and so on

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Removing default navbar buttons

Post by niji666 on January 15th 2015, 1:08 am

What do you mean by end of the url? where do i find this url? When i was changing the css before i was just replacing the name of each button in the script. is this what you mean? if so i still cant get it to work. Sorry i'm probably just missing something simple again.
Code:
$('a[href="/portal"]).remove();
i have pasted your code into the javascript and changed the name 'portal' with the corresponding button if thats correct but still nothing?

niji666
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Solved Re: Removing default navbar buttons

Post by _Twisted_Mods_ on January 15th 2015, 1:54 am

try this
Code:
$function(){
$('a[href="/memberlist"]').remove();
$('a[href="/groups"]').remove();
});

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Removing default navbar buttons

Post by niji666 on January 15th 2015, 3:20 am

Nope sorry still there. If i could find all the buttons to match ones i'm using i could just put them over the top. I can only find 4 because the url's for the rest of the buttons don't work. sorry for the inconvenience and thanks for your patience thumleft

niji666
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Solved Re: Removing default navbar buttons

Post by _Twisted_Mods_ on January 15th 2015, 3:32 am

well only thing i can think of is make me a admin acct and pm me the info and ill see if i can figure something out for you

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Removing default navbar buttons

Post by APE on January 17th 2015, 11:35 pm

is this solved ?





APE
Manager
Manager

Male Posts : 8338
Reputation : 718
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Removing default navbar buttons

Post by Derri on January 19th 2015, 1:21 am

Since this topic has been marked solved I shall move this to the archives.


Forum Rules: :Forumotion Staff: :Appeal A Warning: :FAQ: :Tips & Tricks: :Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public


Derri
Administrator
Administrator

Male Posts : 8355
Reputation : 571
Language : English & Basic French
Location : Scotland, United Kingdom

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