Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
How To Remove Login/Logout Widget
Avatar
Vic Dorfman
Member
sp_UserOfflineSmall Offline
Mar 9, 2015 - 4:43 am

Hi Simple:Press users and admins!

1. I did a forum search but couldn't find a solution on how to remove the login/logout widget from my Simple:Press forum.

Anybody know how to do this?

2. Any way to disable the tooltips that pop up when you mouse over a forum topic?

Thanks!

Vic

Vic Dorfman - Membership Site Expert

http://www.VicDorfman.com

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 9, 2015 - 5:45 am

Simple:Press is template driven so the majority of changes to the display can be made by editing the appropriate template(s) - just like a standard WordPress theme in fact. 

To ensure that your custom changes are not overwritten on a future SP update we recommend that you make a child theme which makes things a lot easier and again, echoes the WP theme framework. You might want to hold off as we will soon be releasing child theme frameworks for all our themes making it even easier to get started - and that may well happen next weekend.

As to the specific questions I assume when you say widget you just mean the login/logout button at the top of the forum. If so then this can be removed with a small edit to the spHead.php template in the /templates folder of your SP theme (or, in the case of the Reboot theme - the spHeadDesktop.php and spHeadMobile.php in their respective folders)

Find the line of code that calls the display template function called sp_LogInOutButton() that will probably look like this:

sp_LogInOutButton('tagClass=spButton spRight', __sp('Log In'), __sp('Log Out'), __sp('Log in and log out'));

and then just comment it out. You can use a hash or two slashes in front of the function call.

On the question of tooltips then it depends on whether you want to just revert the more stylised tooltips with standard browser tooltips - or - you want to remove some of them. If the first the open the file in the /templates folder of the theme named spFunctions.php and change the tooltips define at the top to false.

If you want to remove some of them or change the text then each tooltip is available in the theme templates most usually as the last parameter for the specific display template function. If you want to remove or change specific tootips then let me now which one(s) and I can help you pinpoint them. 

The full codex article on child themes is under development and we hope will be published when we release the child theme frameworks. But for now the basic information needed to make one is shown in this blog post: https://simple-press.com/simpl.....-themes/ 

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620