Support Forum
Hi guys,
Does SP have any plugins, or do you have any suggestions, for adding a button (with a link to a Wordpress page) next to the Member's button up at the top of forum pages?
Our forum is based on training content, and we'd like to have a link to that content page for easy access.
Doesn't have to be next to the Member's button, but we'd like it to be somewhere up in the header area or even a breadcrumb link would probably work.
Any suggestions for adding something like that to the top SP header area?
Thanks,
Pete
we have an API function for that!
function sp_AddButton($args = '', $label = '', $toolTip = '', $perm = '', $buttonID = '') { $defs = array('tagId' => $buttonID, 'tagClass' => 'spButton', 'link' => SP()->spPermalinks->get_url(), 'icon' => '', 'iconClass' => 'spIcon', 'mobileMenu' => 0, 'echo' => 1,);
is the prototype... so call it with the desired arguments from where you want the button to display... if in the header, you would add it to the spHeadDesktop.php function if using Barebones... basically, the header template file... add it where you want it to appear...
as always, we suggest creating a child theme and then updating the template file there...
Visit Cruise Talk Central and Mr Papa's World
glad to help... think you have done this sort of stuff before, so didnt provide low level details, but holler if you need a bit more...
Visit Cruise Talk Central and Mr Papa's World
Any direction would be appreciated.
We're using the default theme (no child theme) and are trying to get put a button ("SWS Lessons") next to the "Members" Button in the header that links to a regular wordpress page.
I can find spHead.php file, but I can't find spHeadDesktop.php and I'm not sure how to string together that code. I can see the code for the other buttons in the spHead.php file, but haven't been able to get it to work.
Thanks,
Pete
so, yes, if you are using the old default theme, the file is spHead.php... something like this where you want it...
sp_AddButton('tagClass=spButton spRight&link=http://yourpage.com', 'SWS Lessons', 'Visit SWS Lessons');
try that and we can customize more if needed... of course, change the url after &link to be url to your page...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)