Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add logo to flexdashboard

I am having trouble adding my company logo to a flexdashboard output. I have looked into the issue and tried using a relative path, and resized my image to 48x48. I am still getting a broken html image when I run the document. Does anyone have any ideas of what could be wrong? This is my YAML:

title: "title"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    source_code: embed
    logo: FoodBev.png
runtime: shiny

Also, the image is in my working directory. Thanks for your help!

like image 979
ashcrashbegash Avatar asked Oct 21 '25 15:10

ashcrashbegash


1 Answers

add custom.css file to directory ----> than, edit through notepad and add the code below:

img{
     max-width:48px;
     max-height:48px;
}

Good Luck

like image 62
JonyKoren Avatar answered Oct 24 '25 06:10

JonyKoren



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!