Hello, you could use it in a widget by enabling php for widgets adding this to function.php of child theme
COPY CODE
add_filter('widget_text','execute_php',100);
function execute_php($html){
if(strpos($html,"<"."?php")!==false){
ob_start();
eval("?".">".$html);
$html=ob_get_contents();
ob_end_clean();
}
return $html;
}
And at the widget add this (you can add it inside of the button shortcode where it asks for the url )
COPY CODE
<a>">Profile</a>
If the button shortcode alreay has the “<a” just copy
COPY CODE
<?php echo bp_loggedin_user_domain(); ?>
Inside the href=” – “
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Laura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂