Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/wgn/public_html/support/Sources/Load.php(225) : runtime-created function on line 3
Getting a Bootstrap Tab to go to a url link
Web Global Net Web Application & Web Development Project Center
March 21, 2025, 08:42: AM *

:
 
      
: [1]   
   |   
: Getting a Bootstrap Tab to go to a url link  ( 6374 )
0 1
admin
Administrator
******


: 239



« : February 20, 2021, 04:05: PM »

Spent about an hour looking for this answer, all the solutions we found required a JavaScript solution. But it doesn't, just add the red code to your <li> tag

Couldn't believe how simple this was to do.

<li  class="tab-btn" onclick="location.href='template.php?acct_id=<?php echo $_GET['acct_id']; ?>';">Social Media</li>


<a class="btn btn-success" href="https://www.google.com" target="_blank">Google[/url]

And use target="_blank" to open the link in a new tab.
« : February 21, 2021, 05:10: PM admin »  

The Unknown Webmaster
: [1]   
   |   
 
:  

Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is missing the copyright message for SMF so they can rectify the situation. Display of copyright is a legal requirement. For more information on this please visit the Simple Machines website.