Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to define links for social network icons on flexdashboard?

I added social icons to navbar for a flexdashboard, but there's no way to add an appropriate link for each of them.

in an R Markdown file, I added:

output: 
  flexdashboard::flex_dashboard:
      social: [ "twitter", "facebook", "linkedin" ]

How can I add links for each social network?

like image 948
Mehdi Zare Avatar asked Sep 12 '25 04:09

Mehdi Zare


2 Answers

You can do something like this:

---
title: "Manoj Kumar"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    navbar:
        - { icon: "fa-question-circle", href: "https://google.com", align: right }
        - { icon: "fa-twitter", href: "https://twitter.com/YourAccount", align: right}
        - { icon: "fa-linkedin", href: "https://www.linkedin.com/in/YourAccount", align: right}
runtime: shiny
---
like image 172
Manoj Kumar Avatar answered Sep 13 '25 18:09

Manoj Kumar


The solution I came up with so far is to use

- { icon: "fa-twitter", href: "link to my twitter account",align: right}

It works but maybe there is a better alternative out there.

like image 27
user2733968 Avatar answered Sep 13 '25 18:09

user2733968